Skip to content

Instantly share code, notes, and snippets.

@silenius
Created February 11, 2015 13:06
Show Gist options
  • Save silenius/1f4a020f35a4113cdd4d to your computer and use it in GitHub Desktop.
Save silenius/1f4a020f35a4113cdd4d to your computer and use it in GitHub Desktop.
MAP file:
#########
LAYER
NAME "mapname"
STATUS DEFAULT
TYPE POINT
TRANSFORM ll
UNITS PIXELS
FEATURE
POINTS
300 -900
END
END
END
SLD:
####
<NamedLayer>
<se:Name>mapname</se:Name>
<UserStyle>
<se:Name>mapname</se:Name>
<FeatureTypeStyle>
<se:Rule>
<se:Name>Map name</se:Name>
<se:TextSymbolizer>
<se:Label>
<se:Literal>FOO BAR TEST TEST TEST</se:Literal>
</se:Label>
<se:Fill>
<se:SvgParameter name="fill">#ff0000</se:SvgParameter>
</se:Fill>
<se:Font>
<se:SvgParameter name="font-family">vera</se:SvgParameter>
<se:SvgParameter name="font-style">normal</se:SvgParameter>
<se:SvgParameter name="font-weight">normal</se:SvgParameter>
<se:SvgParameter name="font-size">48</se:SvgParameter>
</se:Font>
</se:TextSymbolizer>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#000000</se:SvgParameter>
<se:SvgParameter name="fill-opacity">1</se:SvgParameter>
</se:Fill>
</se:Mark>
<Size>16</Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment