Skip to content

Instantly share code, notes, and snippets.

@dwins
Created July 29, 2010 14:43
Show Gist options
  • Select an option

  • Save dwins/498290 to your computer and use it in GitHub Desktop.

Select an option

Save dwins/498290 to your computer and use it in GitHub Desktop.
* {
stroke: black, symbol(circle);
stroke-width: 15px;
stroke-linejoin: round;
stroke-linecap: round;
stroke-dasharray: 1 0, 5 35;
stroke-dashoffset: 0;
z-index: 0, 10;
}
:stroke {
fill: white;
size: 5;
}
<?xml version="1.0" encoding="UTF-8"?>
<sld:UserStyle xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<sld:Name>Default Styler</sld:Name>
<sld:Title/>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:LineSymbolizer>
<sld:Stroke>
<sld:CssParameter name="stroke-linecap">round</sld:CssParameter>
<sld:CssParameter name="stroke-linejoin">round</sld:CssParameter>
<sld:CssParameter name="stroke-width">15</sld:CssParameter>
<sld:CssParameter name="stroke-dasharray">1.0 0.0 </sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:LineSymbolizer>
<sld:Stroke>
<sld:GraphicStroke>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill>
<sld:CssParameter name="fill">#ffffff</sld:CssParameter>
</sld:Fill>
</sld:Mark>
<sld:Size>
<ogc:Literal>5</ogc:Literal>
</sld:Size>
</sld:Graphic>
</sld:GraphicStroke>
<sld:CssParameter name="stroke">#808080</sld:CssParameter>
<sld:CssParameter name="stroke-linecap">round</sld:CssParameter>
<sld:CssParameter name="stroke-linejoin">round</sld:CssParameter>
<sld:CssParameter name="stroke-width">15</sld:CssParameter>
<sld:CssParameter name="stroke-dasharray">5.0 35.0 </sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment