Show building numbers only at high zoom

Closes #132

See https://wiki.openstreetmap.org/wiki/MinScaleDenominator
for scale<->zoom level conversion
This commit is contained in:
Tom Russell 2018-11-21 22:05:40 +00:00
parent d61f23cb5c
commit f8e907f86d

View File

@ -2,17 +2,25 @@
<Style name="base_light"> <Style name="base_light">
<Rule> <Rule>
<PolygonSymbolizer fill="#cccccc" /> <PolygonSymbolizer fill="#cccccc" />
</Rule>
<Rule>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold" fill="#000000"> <TextSymbolizer face-name="DejaVu Sans Condensed Bold" fill="#000000">
[location_number] [location_number]
</TextSymbolizer> </TextSymbolizer>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<MinScaleDenominator>0</MinScaleDenominator>
</Rule> </Rule>
</Style> </Style>
<Style name="base_night"> <Style name="base_night">
<Rule> <Rule>
<PolygonSymbolizer fill="#303044" /> <PolygonSymbolizer fill="#303044" />
</Rule>
<Rule>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold" fill="#ffffff"> <TextSymbolizer face-name="DejaVu Sans Condensed Bold" fill="#ffffff">
[location_number] [location_number]
</TextSymbolizer> </TextSymbolizer>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<MinScaleDenominator>0</MinScaleDenominator>
</Rule> </Rule>
</Style> </Style>
<Style name="highlight"> <Style name="highlight">