Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
102 lines (86 sloc) 3.28 KB
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "zoom_scales.xml.inc">
%entities;
]>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="#c4dff6" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Datasource name="osm">
<Parameter name="dbname">osm</Parameter>
<Parameter name="extent">-20037508.34 -20037508.34 20037508.34 20037508.34</Parameter>
<Parameter name="geometry_field">way</Parameter>
<Parameter name="type">postgis</Parameter>
<Parameter name="max_size">200</Parameter>
</Datasource>
<Style name="polygon" filter-mode="first" >
<Rule>
&maxscale_zoom14;
<PolygonSymbolizer clip="true" smooth="0"/>
</Rule>
</Style>
<Style name="line" filter-mode="first" >
<Rule>
&maxscale_zoom12;
<LineSymbolizer clip="true"/>
</Rule>
</Style>
<Style name="roads" filter-mode="first" >
<Rule>
&maxscale_zoom0;
&minscale_zoom12;
<LineSymbolizer clip="true" simplify-algorithm="visvalingam-whyatt" simplify-tolerance="300" />
</Rule>
</Style>
<Style name="point" filter-mode="first" >
<Rule>
&maxscale_zoom10;
<PointSymbolizer />
</Rule>
</Style>
<Style name="city" filter-mode="first" >
<Rule>
<Filter>[place]='city'</Filter>
&maxscale_zoom0;
&minscale_zoom10;
<PointSymbolizer/>
</Rule>
</Style>
<Layer name="polygon"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>polygon</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_polygon where osm_id > 0) as osm_polygon</Parameter>
</Datasource>
</Layer>
<Layer name="line"
status="on"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>line</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_line where osm_id > 0) as osm_line</Parameter>
</Datasource>
</Layer>
<Layer name="roads"
status="on"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>roads</StyleName>
<Datasource base="osm">
<Parameter name="table">(select name,highway,oneway,ref,way from planet_osm_roads where osm_id > 0 and highway='motorway') as roads</Parameter>
</Datasource>
</Layer>
<Layer name="point"
status="on"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>point</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_point where osm_id > 0) as points</Parameter>
</Datasource>
</Layer>
<Layer name="city"
status="on"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>city</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_point where osm_id > 0 and place='city') as city</Parameter>
</Datasource>
</Layer>
</Map>