maybe you ought to use popups for you features,which can easily control.
tooltip only for dom element,vector doesn't have I think. 




I am OGCer V1.0 developer and owner!

From: dwilhelm
Date: 2012-11-29 20:34
To: openlayers-users
Subject: [OpenLayers-Users] Stylemap and tooltip
Hello,

i'm trying to show tooltips on a vector layer using Openlayer 2.12. I saw an
example at http://www.openlayers.org/dev/examples/vector-features.html

In that example a style is created with a title property and assigned
directly to a vector layer.

In my code i'm using a stylemap to style a vector layer that is created
using some geojson:



Adding a label in the base symbolizer of the style does work, so i tried
adding a title for the tooltip the same way, but that doesn't work.

What do i need to do to add a tooltip with the foo attribute value?

Regards,
  Dirk



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Stylemap-and-tooltip-tp5019551.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

<<1662_14.gif>>

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to