mapnik/tests/data/good_maps/marker-text-line.xml

103 lines
2.5 KiB
XML
Raw Normal View History

<Map>
<Style name="ellipse">
<Rule>
<MarkersSymbolizer
width="240"
height="240"
fill="steelblue"
fill-opacity=".7"
stroke="yellow"
stroke-width="16"
stroke-opacity=".3"
ignore-placement="true"
/>
</Rule>
</Style>
<Style name="line">
<Rule>
<LineSymbolizer
stroke="purple"
stroke-dasharray="15,5"
stroke-width="4"
stroke-opacity=".3"
stroke-linecap="round"
/>
<LineSymbolizer
stroke="darkorange"
stroke-dasharray="15,5"
stroke-width="1"
stroke-opacity=".9"
stroke-linecap="round"
/>
</Rule>
</Style>
<Style name="text">
<Rule>
<TextSymbolizer
size="25"
orientation="45"
face-name="DejaVu Sans Book"
halo-radius="2">'45˚ text'</TextSymbolizer>
</Rule>
</Style>
<Layer name="ellipse" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>ellipse</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
2.5,2.5
</Parameter>
</Datasource>
</Layer>
<Layer name="line" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>line</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
wkt
"LINESTRING(0 0, 2.5 2.5, 5 5)"
"LINESTRING(0 5, 2.5 2.5, 5 0)"
</Parameter>
</Datasource>
</Layer>
<Layer name="text" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>text</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
2,2.5
3,2.5
</Parameter>
</Datasource>
</Layer>
<!-- points to frame data view -->
<Style name="frame">
<Rule>
<PointSymbolizer />
</Rule>
</Style>
<Layer name="frame" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>frame</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
0,0
5,0
0,5
5,5
</Parameter>
</Datasource>
</Layer>
</Map>