<p>If you download the latest OpenLayers (master from <a href="http://github.com/openlayers/openlayers">http://github.com/openlayers/openlayers</a>, you can simply give your symbolizer a 'graphic' property. If your feature attributes have e.g. a 'tooltip' attribute, the value for the 'graphic' property would be '${tooltip}'.</p>
<p>See <a href="http://openlayers.org/dev/examples/vector-features.html">http://openlayers.org/dev/examples/vector-features.html</a> for an example.</p>
<p>Andreas.</p>
<div class="gmail_quote">On May 19, 2012 6:59 PM, "Matthias Meißer" <<a href="mailto:digi_c@arcor.de">digi_c@arcor.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
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.<br>
<br>
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 <a href="http://www.openflights.org" target="_blank">www.openflights.org</a> that has exactly this behaviour, but the GraphicTitle sollution seems to be limited to icon based visualisiations, right?<br>
<br>
So how can I get the same functionality, without coding from scratch?<br>
<br>
bye<br>
Matthias<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/openlayers-<u></u>users</a><br>
</blockquote></div>