Closed (works as designed)
Project:
Openlayers
Version:
6.x-2.0-alpha9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2011 at 19:13 UTC
Updated:
5 Aug 2011 at 21:26 UTC
Thanks for this fantastic module. I've got it working pretty well, but I'm missing one common feature of maps (particularly maps of the ancient world--my field). I need to be able to place text labels on the map that are always visible (as long as the layer is displayed), i.e. are not popups or tooltips but appear as a flat label on the map. Is there any way to do this? I haven't been able to find any tutorials for it online, and it doesn't seem to be in the documentation.
Thanks.
Comments
Comment #1
tmcw commentedYou'll need to make points (probably individually as nodes, rather than via OpenLayers CCK) and set the text label property of the style you use on the map. You can use the same interface to set points to not display an actual point, so that it's just a label.
Note: OpenLayers doesn't do strong point-positioning logic: labels won't behave as well as rendered labels do. If your data is relatively static and you want things to be fast in old browsers, you'll probably need to render a layer with TileCache, TileLite, etc.
Comment #2
zzolo commentedThis is available in the styles UI.