Closed (won't fix)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
OL API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
4 Sep 2009 at 00:43 UTC
Updated:
16 May 2024 at 00:50 UTC
Comments
Comment #1
phayes commentedThis sounds like a bug.
Comment #2
zzolo commentedI looked at this for a while. It's not really a bug, we are just not setting the hover to true for features:
OpenLayers example: http://openlayers.org/dev/examples/stylemap.html
Tooltips have the hover option, while popups do not. I have added this to popups, but I think this might be good to add to all vector feature styles. What do you think?
Comment #3
phayes commentedI think your fix broke things.
Now if you hover you get a pop-up. Not good!
I think what we need to do is create a "NULL" hover behavior that activates the temporary style, but doesn't fire an event.
Comment #4
phayes commentedComment #5
zzolo commentedI am going to move this to the 2.x feature request. If someone is interested in it, a patch is always welcome. But, we should keep things in scope and keep our momentum going.
Comment #6
zzolo commentedKeeping this out of the queue. This seems like a fairly overly-complicated feature that that doesnt seem to be in high demand (though would be cool). If someone wants to work on this, please feel free to start a new ticket or re-opened this one. BWPanda, if you are still looking for this feature please feel free to reopen this one.
Comment #7
sano commentedA real-world use case: a map shows ski trails. Each ski trail has some attributes, like length, elevation gain, etc... Users move cursor over a trail on the map and nothing happens (color of the trail line does not change for example), so they do not know the trails serve as triggers, therefore they never click on them to get the popup which has the info they are (likely) looking for - the trail length, buttons to edit the trail attributes, etc...
Now it would work as a workaround if it was possible to combine tooltips and popups on the same object, but it looks like that is not working either for drup 6.