[OpenLayers-Users] Labels on WFS layers

Luís de Sousa luis.a.de.sousa at gmail.com
Fri Mar 5 16:02:19 EST 2010


Hello everyone,

I'm trying to set labels on a point layer using code like this:

wfs2.style = OpenLayers.Util.applyDefaults(
            {
                strokeColor: "#008000",
                fillColor: "#FFFF00",
                strokeWidth: "2.0",
                label: "${someAtribute}",
                fontColor: "#FF0000"
             }

I don't get any errors at runtime, but no label appears. What am I missing?

Thanks,

Luís
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100305/92119f2d/attachment.html


More information about the Users mailing list