Here's a simple file that shows the problem, or a very similar one. Seems that the Vector Layers have a higher z-index and are not passing the mouse events through to the Markers(?) In any case, setting the markers' z-index above the vectors solves the problem (See the code and uncomment the section at the bottom to see the work-around.
line_test2.html - link below ethan919 wrote: > > Dear listers! > I have a problem about trigger event on firefox2.0, Currently I'm > using openlayers-2.5,and construct a marker like this: > var marker = new OpenLayers.Marker(lonlat); > marker1.events.register("mouseover", marker1, function(evt) > { > alert("test"); > Event.stop(evt); }); > markers.addMarker(marker1); > when I use IE7,there is no problem,I can see the alert window,but when I > use > firefox2.0,it seems like the event never fired,nothing happend on the > screen.Did anyone encounter the same problem,or it's just my code's > problem,Am I missing anything about events.Thanks for any kind of help! > http://www.nabble.com/file/p20725298/line_test2.html line_test2.html -- View this message in context: http://www.nabble.com/firefox-events-problem-tp14432333p20725298.html Sent from the OpenLayers Dev mailing list archive at Nabble.com. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev