<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=GB2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: Î¢ÈíÑźÚ; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.17940"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>maybe you ought to use popups for you features,which can easily 
control.</DIV>
<DIV>tooltip only for dom element£¬vector doesn't have I think. </DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN><SPAN style="FONT-FAMILY: ËÎÌå; COLOR: #000000; FONT-SIZE: 10.5pt">I am 
OGCer V1.0 developer and owner!<IMG 
src="cid:_Foxmail.0@302C4C3E-E15D-4B64-B637-23ED4DC49A0F"></SPAN></SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:wilhelm@geomapping.de">dwilhelm</A></DIV>
<DIV><B>Date:</B> 2012-11-29 20:34</DIV>
<DIV><B>To:</B> <A 
href="mailto:openlayers-users@lists.osgeo.org">openlayers-users</A></DIV>
<DIV><B>Subject:</B> [OpenLayers-Users] Stylemap and 
tooltip</DIV></DIV></DIV>
<DIV>
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>i'm trying to show tooltips on a vector layer using Openlayer 2.12. I saw an</DIV>
<DIV>example at http://www.openlayers.org/dev/examples/vector-features.html</DIV>
<DIV> </DIV>
<DIV>In that example a style is created with a title property and assigned</DIV>
<DIV>directly to a vector layer.</DIV>
<DIV> </DIV>
<DIV>In my code i'm using a stylemap to style a vector layer that is created</DIV>
<DIV>using some geojson:</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Adding a label in the base symbolizer of the style does work, so i tried</DIV>
<DIV>adding a title for the tooltip the same way, but that doesn't work.</DIV>
<DIV> </DIV>
<DIV>What do i need to do to add a tooltip with the foo attribute value?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>  Dirk</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>--</DIV>
<DIV>View this message in context: http://osgeo-org.1560.n6.nabble.com/Stylemap-and-tooltip-tp5019551.html</DIV>
<DIV>Sent from the OpenLayers Users mailing list archive at Nabble.com.</DIV>
<DIV>_______________________________________________</DIV>
<DIV>Users mailing list</DIV>
<DIV>Users@lists.osgeo.org</DIV>
<DIV>http://lists.osgeo.org/mailman/listinfo/openlayers-users</DIV></DIV></BODY></HTML>