source: subversion/applications/rendering/parking/mapnik/parking-inc-src/layer-parking-area-semi.xml.inc @ 27537

Revision 27537, 6.8 KB checked in by kdrangmeister, 2 years ago (diff)

Removed dimensions and type at PolygonPatternSymbolizer? for mapnik 2.0

Line 
1<Style name="parking-area-semi">
2    <!-- parking area: fee (new) -->
3    <Rule>
4      <Filter>[parking:condition:area] = 'ticket'</Filter>
5      &maxscale_zoom10;
6      <PolygonSymbolizer>
7        <CssParameter name="fill">&pa_fee;</CssParameter>
8        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
9      </PolygonSymbolizer>
10      <LineSymbolizer>
11        <CssParameter name="stroke">&pa_fee_stroke;</CssParameter>
12        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
13        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
14      </LineSymbolizer>
15    </Rule>
16    <Rule>
17      &maxscale_zoom16;
18      <Filter>[parking:condition:area] = 'ticket'</Filter>
19      <PolygonPatternSymbolizer file="&symbols;/parking_area_fee.png">
20        <CssParameter name="fill-opacity">&pa_stroke_opacity_semi;</CssParameter>
21      </PolygonPatternSymbolizer>
22    </Rule>
23
24    <!-- parking area: fee (old) -->
25    <Rule>
26      <Filter>[amenity] = 'parking' and [fee]='yes'</Filter>
27      &maxscale_zoom10;
28      <PolygonSymbolizer>
29        <CssParameter name="fill">&pa_fee;</CssParameter>
30        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
31      </PolygonSymbolizer>
32      <LineSymbolizer>
33        <CssParameter name="stroke">&pa_fee_stroke;</CssParameter>
34        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
35        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
36      </LineSymbolizer>
37    </Rule>
38    <Rule>
39      &maxscale_zoom16;
40      <Filter>[amenity] = 'parking' and [fee]='yes'</Filter>
41      <PolygonPatternSymbolizer file="&symbols;/parking_area_fee.png"/>
42    </Rule>
43
44    <!-- parking area: free (new) -->
45    <Rule>
46      <Filter>[parking:condition:area] = 'free'</Filter>
47      &maxscale_zoom10;
48      <PolygonSymbolizer>
49        <CssParameter name="fill">&pa_free;</CssParameter>
50        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
51      </PolygonSymbolizer>
52      <LineSymbolizer>
53        <CssParameter name="stroke">&pa_free_stroke;</CssParameter>
54        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
55        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
56      </LineSymbolizer>
57    </Rule>
58    <Rule>
59      &maxscale_zoom16;
60      <Filter>[parking:condition:area] = 'free'</Filter>
61      <PolygonPatternSymbolizer file="&symbols;/parking_area_free.png"/>
62    </Rule>
63
64    <!-- parking area: free (old) -->
65    <Rule>
66      <Filter>[amenity] = 'parking' and [fee]='no'</Filter>
67      &maxscale_zoom10;
68      <PolygonSymbolizer>
69        <CssParameter name="fill">&pa_free;</CssParameter>
70        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
71      </PolygonSymbolizer>
72      <LineSymbolizer>
73        <CssParameter name="stroke">&pa_free_stroke;</CssParameter>
74        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
75        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
76      </LineSymbolizer>
77    </Rule>
78    <Rule>
79      &maxscale_zoom16;
80      <Filter>[amenity] = 'parking' and [fee]='no'</Filter>
81      <PolygonPatternSymbolizer file="&symbols;/parking_area_free.png"/>
82    </Rule>
83
84    <!-- parking area: customers -->
85    <Rule>
86      <Filter>[parking:condition:area]='customers'</Filter>
87      &maxscale_zoom10;
88      <PolygonSymbolizer>
89        <CssParameter name="fill">&pa_customers;</CssParameter>
90        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
91      </PolygonSymbolizer>
92      <LineSymbolizer>
93        <CssParameter name="stroke">&pa_customers_stroke;</CssParameter>
94        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
95        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
96      </LineSymbolizer>
97    </Rule>
98    <Rule>
99      &maxscale_zoom16;
100      <Filter>[parking:condition:area]='customers'</Filter>
101      <PolygonPatternSymbolizer file="&symbols;/parking_area_cust.png"/>
102    </Rule>
103
104    <!-- parking area: residents -->
105    <Rule>
106      <Filter>[amenity] = 'parking' and [parking:condition:area]='residents'</Filter>
107      &maxscale_zoom10;
108      <PolygonSymbolizer>
109        <CssParameter name="fill">&pa_residents;</CssParameter>
110        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
111      </PolygonSymbolizer>
112      <LineSymbolizer>
113        <CssParameter name="stroke">&pa_residents_stroke;</CssParameter>
114        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
115        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
116      </LineSymbolizer>
117    </Rule>
118    <Rule>
119      &maxscale_zoom16;
120      <Filter>[amenity] = 'parking' and [parking:condition:area]='residents'</Filter>
121      <PolygonPatternSymbolizer file="&symbols;/parking_area_resi.png"/>
122    </Rule>
123
124    <!-- parking area: private -->
125    <Rule>
126      <Filter>[amenity] = 'parking' and [parking:condition:area]='private'</Filter>
127      &maxscale_zoom10;
128      <PolygonSymbolizer>
129        <CssParameter name="fill">&pa_private;</CssParameter>
130        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
131      </PolygonSymbolizer>
132      <LineSymbolizer>
133        <CssParameter name="stroke">&pa_private_stroke;</CssParameter>
134        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
135        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
136      </LineSymbolizer>
137    </Rule>
138    <Rule>
139      &maxscale_zoom16;
140      <Filter>[amenity] = 'parking' and [parking:condition:area]='private'</Filter>
141      <PolygonPatternSymbolizer file="&symbols;/parking_area_priv.png"/>
142    </Rule>
143
144    <Rule>
145      <ElseFilter/>
146      &maxscale_zoom10;
147      <PolygonSymbolizer>
148        <CssParameter name="fill">&pa_unknown;</CssParameter>
149        <CssParameter name="fill-opacity">&pa_fill_opacity_semi;</CssParameter>
150      </PolygonSymbolizer>
151      <LineSymbolizer>
152        <CssParameter name="stroke">&pa_unknown_stroke;</CssParameter>
153        <CssParameter name="stroke-width">&pa_stroke_width;</CssParameter>
154        <CssParameter name="stroke-opacity">&pa_stroke_opacity_semi;</CssParameter>
155      </LineSymbolizer>
156    </Rule>
157    <Rule>
158      &maxscale_zoom16;
159      <ElseFilter/>
160      <PolygonPatternSymbolizer file="&symbols;/parking_area_unkn.png"/>
161    </Rule>
162</Style>
163
164<Layer name="parking-area-semi" status="on" srs="&osm2pgsql_projection;">
165    <StyleName>parking-area-semi</StyleName>
166    <Datasource>
167      <Parameter name="table">
168      (select way,amenity,tourism,name,fee,"parking:condition:area"
169       from &prefix;_polygon
170       where
171          amenity in ('parking')
172          or tourism in ('camp_site','caravan_site','picnic_site')
173       order by z_order,way_area desc
174      ) as parking
175      </Parameter>
176      &datasource-settings;
177    </Datasource>
178</Layer>
179
Note: See TracBrowser for help on using the repository browser.