Openlayers >3.7 show hint / tooltip

المشرف العام

Administrator
طاقم الإدارة
I tried to figure out, how you can show map feature data, if the mouse hovers about an dedicated feature. Unfortunately the OL3.2.1 example doesn't seem to work anymore and you need to work with overlays. The popup approach seems to be to complex, just for showing an ID.

Adding an hook to the map isn't the problem, but managing all the DOM,CSS, ... seems to be tricky :-( Has anybody a snippet that summarizes the necessary elements and is know to work? The overlay example doesn't makes use of an vector layer, to extract that information...



أكثر...
 
أعلى