[OpenLayers-Users] Rule - Symbolizer pointRadius on zoom
uk52rob
uk52rob at yahoo.co.uk
Wed Nov 7 08:30:33 PST 2012
Hi all,
I have a set of rules for point layers which work fine, but I would like to keep the displayed point at the same size in map units, rather than the pointRadius pixel size. If I don't do this, it will end up as a blur of points at a high scale, hence the maxScaleDenominator.
Here is an example of a current rule:
var rule1 = new OpenLayers.Rule({
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.EQUAL_TO,
property: "type",
value: "w",
}),
maxScaleDenominator: 100000,
symbolizer: {fillColor: "Green",
pointRadius: 100,
fillOpacity: 0.5,
strokeOpacity: 0,
label: "${ref}",
labelAlign: "cc",
fontColor: "#333333",
fontOpacity: 0.9,
fontFamily: "Arial",
fontSize: 14}
});
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121107/06d72c2f/attachment-0001.html>
More information about the Users
mailing list