Created
April 2, 2015 18:15
-
-
Save malcolmrh/c8aaf822e8c933449ad6 to your computer and use it in GitHub Desktop.
If geoserver polygons are small it's nice to have a centroid point that is really big when zoomed out. Remember painter's rendering order.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Rule> | |
<MinScaleDenominator>1500000</MinScaleDenominator> | |
<PointSymbolizer> | |
<Geometry> | |
<ogc:Function name="centroid"> | |
<ogc:PropertyName>geom</ogc:PropertyName> | |
</ogc:Function> | |
</Geometry> | |
<Graphic> | |
<Mark> | |
<WellKnownName>circle</WellKnownName> | |
<Fill> | |
<CssParameter name="fill">#F5FF3B</CssParameter> | |
</Fill> | |
</Mark> | |
<Size>18</Size> | |
</Graphic> | |
</PointSymbolizer> | |
</Rule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment