point97 / marine-planner

0 stars 0 forks source link

mouseover point layers #8

Open sfletche opened 10 years ago

sfletche commented 10 years ago

Mouse over interaction for single (non-clustered) points (displayName)

Note: this is lowest on the priority list, but if there is time, then I have a commit I can show you from a similar project that can help with this...

sfletche commented 10 years ago

this example from OpenLayers example page (search for 'hover') might help

http://openlayers.org/dev/examples/feature-events.html

sfletche commented 10 years ago

Also, here is an example of one of our Marine Planner applications already doing this (this should make it easy)...

http://www.mafmc.org/coral-map (password is mafmc)

The mouseover code can be found in map.js in the marco-portal repo https://github.com/Ecotrust/marco-portal/blob/next-release/media/marco/js/map.js#L347

Note: it will require these layers being changed from attribute_event = click to attribute_event = mouseover (via the django admin)

shoot me an email if you have any problems/questions