Hi, I cannot make labelX_and_YOffset work.
This is my styleMap; labelAlign works correctly, xOffset and yOffset are
properties of the json object (but also setting them explicitly with
labelXOffset: "50" doesn't work)
what am I doing wrong? I've copy-pasted many examples with no luck!
thank you in advance!
alberto
macroSitiStyleOn = new OpenLayers.StyleMap({
"default": new OpenLayers.Style({
[..omissis..]
label : "foo",
labelAlign: "lc",
labelXOffset: "${xOffset}",
labelYOffset: "${yOffset}"
})
});
macroSitiJSON = new OpenLayers.Layer.GML("Macro Siti",
"macroSitiGeoJSON.json", {
format: OpenLayers.Format.GeoJSON,
styleMap: macroSitiStyleOn
});
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users