2014-02-11 04:19:53 +01:00
|
|
|
<Map
|
|
|
|
background-color="#eee"
|
|
|
|
srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
|
|
|
|
|
|
|
<Style name="bug">
|
|
|
|
<Rule>
|
|
|
|
<Filter>[id] = 'file'</Filter>
|
|
|
|
<PointSymbolizer file="[value]" />
|
|
|
|
</Rule>
|
|
|
|
<Rule>
|
|
|
|
<Filter>[id] = 'allow-overlap'</Filter>
|
|
|
|
<PointSymbolizer allow-overlap="[value]" file="../../data/images/crosshair16x16.png" />
|
|
|
|
</Rule>
|
|
|
|
<Rule>
|
|
|
|
<Filter>[id] = 'opacity'</Filter>
|
|
|
|
<PointSymbolizer opacity="[value]" file="../../data/images/crosshair16x16.png" />
|
|
|
|
</Rule>
|
|
|
|
<Rule>
|
|
|
|
<Filter>[id] = 'transform'</Filter>
|
2014-03-10 21:30:49 +01:00
|
|
|
<PointSymbolizer transform="scale([value],[value])" file="../../data/images/crosshair16x16.png" />
|
2014-02-11 04:19:53 +01:00
|
|
|
</Rule>
|
|
|
|
<Rule>
|
|
|
|
<Filter>[id] = 'ignore-placement'</Filter>
|
|
|
|
<PointSymbolizer ignore-placement="[value]" file="../../data/images/crosshair16x16.png" />
|
|
|
|
</Rule>
|
|
|
|
<Rule>
|
|
|
|
<Filter>[id] = 'comp-op'</Filter>
|
2014-04-25 06:53:17 +02:00
|
|
|
<PointSymbolizer comp-op="src-over" file="../../data/images/crosshair16x16.png" />
|
2014-02-11 04:19:53 +01:00
|
|
|
</Rule>
|
|
|
|
|
|
|
|
<Rule>
|
|
|
|
<TextSymbolizer dy='-16' face-name='DejaVu Sans Book' halo-fill='#ffffff' halo-radius='1'>[id]</TextSymbolizer>
|
|
|
|
</Rule>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style name="frame">
|
|
|
|
<Rule>
|
|
|
|
<PolygonSymbolizer />
|
|
|
|
</Rule>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
frame is a layer with a single polygon that is used to ensure that m.zoom_all() will zoom the
|
|
|
|
map to a reasonable bounding extent to make the test easy to view with tools like nik2img.py
|
|
|
|
(which calls m.zoom_all() by default). Another approach in >= Mapnik 2.3.x is to just sent a
|
|
|
|
manual `extent` for the CSV datasource.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<Layer name="frame" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
|
|
|
<StyleName>frame</StyleName>
|
|
|
|
<Datasource>
|
|
|
|
<Parameter name="type">csv</Parameter>
|
|
|
|
<Parameter name="inline">
|
|
|
|
wkt|name
|
|
|
|
Polygon((-180.0 -125.0, -180.0 125.0, 180.0 125.0, 180.0 -125.0, -180.0 -125.0))|bounds
|
|
|
|
</Parameter>
|
|
|
|
</Datasource>
|
|
|
|
</Layer>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
"bug" is a layer that should provide sample data that triggers the bug in question. It is
|
|
|
|
listed after the "frame" layer so that it renders on top and is visible.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<Layer name="bug" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
|
|
|
|
<StyleName>bug</StyleName>
|
|
|
|
<Datasource>
|
|
|
|
<Parameter name="type">csv</Parameter>
|
|
|
|
<Parameter name="inline">
|
|
|
|
id|value|wkt
|
|
|
|
file|../../data/images/crosshair16x16.png|Point(-130 -70)
|
2014-03-10 21:30:49 +01:00
|
|
|
allow-overlap|true|Point(0 -70)
|
|
|
|
opacity|.5|Point(130 -70)
|
|
|
|
transform|1.2|Point(-130 30)
|
|
|
|
ignore-placement|true|Point(0 30)
|
|
|
|
comp-op|src_over|Point(130 30)
|
2014-02-11 04:19:53 +01:00
|
|
|
</Parameter>
|
|
|
|
</Datasource>
|
|
|
|
</Layer>
|
|
|
|
|
|
|
|
</Map>
|