[OpenLayers-Users] Combining MousePosition and Hover Popup?
Jana Golinowski
jgolinowski at codematix.de
Mon Mar 17 06:13:29 EDT 2008
>> I want to add popups to my map on hover. Therefore I got OpenLayers.Handler.Hover.js from current svn trunk. I also added a new control (OpenLayers.Control.Hover) as the example hover-handler.html shows.
>>
>> Here's the problem: After activating this hover control the MousePosition control doesn't update anymore. I know it's because of both using map's "mousemove" event. But an event can only be used by one control, can't it?
>
> Take another look at the hover-handler.html example[1]. I just added a
> MousePosition control to it. All seems to work well (the only time the
> mouse position is not updated is if you activate the hover handler with
> stopMove true).
Your suggestion is the exact thing I tried the other day ;-)
Nevertheless thanks for your help.
Greetings, Jana.
More information about the Users
mailing list