[OpenLayers-Users] How to get a "title" to all lines of a vector layer?

Manuel Reimer Manuel.Spam at nurfuerspam.de
Sun May 12 02:11:55 PDT 2013


Hello,

I want to get a small "tooltip" if someone hovers over the line of a vector 
layer, I added to my map.

If I use "DOM Inspector" in Firefox and manually hack the polyline, created by 
OpenLayers, to contain a "title" attribute, then I get what I want.

What do I have to do to get OpenLayers to add the "title" attribute 
automatically to all polylines in my layer?

Yours

Manuel



More information about the Users mailing list