[OpenLayers-Users] Tooltip for vectorlayer icons

Matthias Meißer digi_c at arcor.de
Sat May 19 09:58:19 PDT 2012


Hi,

I'm working on a map, that get's geoJSON data for a vector layer using 
an simple REST API server. As I only display the labels on demand and a 
the density of vector points can get quiet high, I like to display a 
usual native tooltiptext (aka hint). So if the mousepointer get's over 
an item, a small text appears that displays a custom text.

Unfortunately it doesn't seem so easy to realise? I found a lot of old 
code snippets, that implement it by hand using hover event listeners. On 
the other side there is www.openflights.org that has exactly this 
behaviour, but the GraphicTitle sollution seems to be limited to icon 
based visualisiations, right?

So how can I get the same functionality, without coding from scratch?

bye
Matthias


More information about the Users mailing list