[OpenLayers-Users] Problem with registering mouse events on markers

sjonnala sj3670 at att.com
Mon Aug 8 13:56:14 EDT 2011


Hi There,
  I registered 3 different events on a marker as follows:

        marker.events.register('click', feature, LayerDisplay.markerClick);
        marker.events.register('mouseover', feature,
LayerDisplay.mouseOver);
        marker.events.register('mouseout', feature, LayerDisplay.mouseOut);

'mouseover, mouseout' works fine. They get fired only when i did the
corresponding action. The problem is with the 'click' event. When ever i
click a marker, immediately both 'markerClick' and 'mouseOut' are getting
called. This results in 'mouseOut' removing the popup created by
'markerClick' immediately. The popup blinks and disappears. Can anyone help
on this issue.


Thanks & Regards
SatishJonnala

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-registering-mouse-events-on-markers-tp6665243p6665243.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list