User:Lübeck/Kosmos-rules-admin

From OpenStreetMap Wiki
Jump to: navigation, search

Introduction

These rules are primary for show admin-borders.

Diese Rules habe ich erstellt um mir die Grenzen eines Bereiches anzeigen lassen zu können.

Jt sh boundary.jpg


Land Areas

Rule Name Targets Selector Template Options Comment
Coastline Way natural=coastline Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)

Water Features

Rule Name Targets Selector Template Options Comment
River Way waterway=river Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Stream Way waterway=stream Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Canal Way waterway=canal Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true)
Riverbank Area waterway=riverbank Polygon (Color=lightblue)
Land Area natural=land Polygon (Color=white)

Other Land Features

Rule Name Targets Selector Template Options Comment
Contours Way ele=* for elevation contours generated by Srtm2Osm
.Major Way ValueNum(e,"ele") % 100 = 0 Polyline (MinZoom=11, Color=#B0AD8852, Width=11:1;12:2, Curved=true) Major contours (100m ones)
.* Way Polyline (MinZoom=12, Color=#B0AD8852, Width=1, Curved=true) all other contours




Other Ways

Rule Name Targets Selector Template Options Comment
Border Way boundary=administrative
.level2 admin_level=2 Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level3 admin_level=3 Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level4 admin_level=4 Polyline (MinZoom=10, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level5 admin_level=5 Polyline (MinZoom=1, Color=green, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level6 admin_level=6 Polyline (MinZoom=1, Color=blue, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level7 admin_level=7 Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level8 admin_level=8 Polyline (MinZoom=12, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;5:5))
.level9 admin_level=9 Polyline (MinZoom=12, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;5:5))
.level10 admin_level=10 Polyline (MinZoom=12, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;5:5))