[OpenLayers-Users] Combining MousePosition and Hover Popup?

Tim Schaub tschaub at openplans.org
Fri Mar 14 20:21:47 EDT 2008


Hey-

Jana Golinowski wrote:
> Hello list,
> 
> 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).

Tim

[1] http://openlayers.org/dev/examples/hover-handler.html

> 
> Any suggestions of how to solve this problem.
> 
> 
> Thanks for your ideas?
> Jana.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> !DSPAM:4033,47d9070d14701804284693!
> 




More information about the Users mailing list