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

Gery . gamejihou at hotmail.com
Sun May 12 02:25:02 PDT 2013


Hello Manuel,

There is a hover example in the openlayers website, is that what you need? 

Cheers,


Sent from my iRon

On May 12, 2013, at 11:12, "Manuel Reimer" <Manuel.Spam at nurfuerspam.de> wrote:

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

_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list