Am 19.05.2012 19:09, schrieb Andreas Hocevar:
If you download the latest OpenLayers (master from
http://github.com/openlayers/openlayers, 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}'.
See http://openlayers.org/dev/examples/vector-features.html for an example.
Thanks Andreas, that worked fine for me! But the property is
title:'blablub' ;)
Unfortunately the newest release seems to make troubles with popups.
Matthias
On May 19, 2012 6:59 PM, "Matthias Meißer" <[email protected]
<mailto:[email protected]>> wrote:
Hi,
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.
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 www.openflights.org
<http://www.openflights.org> that has exactly this behaviour, but
the GraphicTitle sollution seems to be limited to icon based
visualisiations, right?
So how can I get the same functionality, without coding from scratch?
bye
Matthias
_________________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/__mailman/listinfo/openlayers-__users
<http://lists.osgeo.org/mailman/listinfo/openlayers-users>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users