Im facing the same problem, it seems that firefox is not registering the events
did somebody fixed this? thanks in advance. Fred van Beelen wrote: > > I have the same problem in FF. IE it works OK! > Can't see the problem (Firebug). > > Regards, > Fred van Beelen (BICT) > www.waterwegwijzer.nl > > > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Namens Cranio > Verzonden: vrijdag 25 januari 2008 13:52 > Aan: [email protected] > Onderwerp: Re: [OpenLayers-Users] Bug with custom markers? > > > > Thanks, I already spotted this by having a look at the source code, and > mod'd my code to: > > feature = new OpenLayers.Feature(gmap,ll,{icon:new > OpenLayers.Icon('icon.png',size,offset)}); > > but still mouse clicks are not recognized. > Any other clue or similar issues out there? > >> function aM(icon,lon,lat,id) >> { >> var ll = gmap.forwardMercator(lon,lat); >> feature = new OpenLayers.Feature(gmap,ll); >> var marker = feature.createMarker(); >> marker.icon=icon; // <--- I HAD TO DO THIS WAY CUZ I USED >> feature.createMarker ... MAYBE I SHOULDN'T? > > Correct, you shouldn't. Instead, the third property of your Feature() > object should be a 'data' hash with an icon variable: > Feature(gmap, ll, {icon:new OpenLayers.Icon()}) > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > [email protected] http://openlayers.org/mailman/listinfo/users > > > > -- > View this message in context: > http://www.nabble.com/Bug-with-custom-markers--tp15085502p15087111.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > [email protected] http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Bug-with-custom-markers--tp15085502p19113987.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
