[OpenLayers-Users] Multiple labels on the same polygon
Lehtonen, Mika
mika at digikartta.net
Mon Oct 27 18:13:06 EDT 2008
Hi,
I am trying to do some labels on polygons which are in an overlay layer
on top of Google Map base layer. The polygon data is served through WMS
(Geoserver). Labels are produced in GeoServer using its own style
definition (TextSymbolizer). The problem is that larger polygons get
more than one label on them. I would prefer them to have exactly one per
polygon. If I test the polygon layer with Geoserver's OL preview,
everything is just like I would want it to be. But my html page is
something else.
I also noticed that the scale in my page when compared to scale in the
OL preview, is different. However, the SLD seem to be obeying the scale
value although the real map scale is different. Could that differ be the
key to my problems?
I will deliver further information if needed. OL is either 2.7 or the
one delivered with Geoserver 1.7.0.
- mika -
More information about the Users
mailing list