-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin2.xml
48 lines (45 loc) · 2.36 KB
/
admin2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY db_settings SYSTEM "config/db_settings.inc.xml">
<!ENTITY font_settings SYSTEM "config/font_settings.inc.xml">
]>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over" background-color="transparent" minimum-version="0.7.2">
&font_settings;
<Style name="admin_simplified">
<Rule>
<MinScaleDenominator>1000000</MinScaleDenominator>
<PolygonSymbolizer fill-opacity="0.3" fill="#0000FF"/><LineSymbolizer stroke="#0000CC" stroke-width="1" stroke-opacity="0.8"/></Rule>
<Rule>
<MaxScaleDenominator>100000000</MaxScaleDenominator>
<MinScaleDenominator>1000000</MinScaleDenominator>
<TextSymbolizer size="9" fill="black" fontset-name="fontset-bold" halo-radius="1" wrap-width="10">[name]</TextSymbolizer>
<TextSymbolizer dy="-10" size="9" fill="black" fontset-name="fontset-bold" halo-radius="1" wrap-width="10">[ref]</TextSymbolizer>
</Rule>
</Style>
<Style name="admin">
<Rule>
<MaxScaleDenominator>1000000</MaxScaleDenominator>
<PolygonSymbolizer fill-opacity="0.3" fill="#0000FF"/><LineSymbolizer stroke="#0000CC" stroke-width="1" stroke-opacity="0.8"/></Rule>
<Rule>
<MaxScaleDenominator>1000000</MaxScaleDenominator>
<TextSymbolizer size="9" fill="black" fontset-name="fontset-bold" halo-radius="1" wrap-width="10">[name]</TextSymbolizer>
<TextSymbolizer dy="-10" size="9" fill="black" fontset-name="fontset-bold" halo-radius="1" wrap-width="10">[ref]</TextSymbolizer>
</Rule>
</Style>
<Layer name="admin" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
<StyleName>admin</StyleName>
<Datasource>
&db_settings;
<Parameter name="table">
(select way,admin_level,name,ref from planet_osm_polygon where boundary='administrative' and admin_level='2' ) as admin</Parameter>
</Datasource>
</Layer>
<Layer name="admin_simplified" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
<StyleName>admin_simplified</StyleName>
<Datasource>
&db_settings;
<Parameter name="table">
(select way as way,name,ref from planet_osm_polygon where boundary='administrative' and admin_level='2' ) as admin</Parameter>
</Datasource>
</Layer>
</Map>