RU:Mapweaver/Stylesheet

From OpenStreetMap Wiki
Jump to: navigation, search
Доступные языки — Mapweaver/Stylesheet
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português português do Brasil română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް

На этой странице вы найдете несколько стилей достаточных для быстрого старта. Сохраните их в текстовый файл в директории, и используйте параметр командной строки '-style=style.txt'.

Пример файла

RULE NODE
keyvalue=amenity=post_box
icon=./icons/postbox.svg
iconsize=40
toscale=10000

RULE WAY
keyvalue=highway=motorway
color=blue
size=28
label=ref
labelsize=26
labeloffset=11
bordercolor=black
bordersize=2

RULE WAY
keyvalue=highway=residential
size=5:10
color=grey
fromscale=10000
toscale=50000

RULE AREA
keyvalue=landuse=residential
color=lightgray
base=yes

Google Maps

v1 Используются итальянские таблички для дорог primary и secondary, подобно Gmaps (code [1], сохранять как shield_ita_ss_g.def)

RULE WAY
keyvalue=highway=primary
label=shield:icons/shield_ita_ss_g.def
labelsize=50
labeloffset=5
color=fffd8b
size=26
bordercolor=d8d4c8
bordersize=4
legend=yes
legendlabel=Statale

RULE WAY
keyvalue=highway=secondary
label=shield:icons/shield_ita_ss_g.def
labelsize=50
labeloffset=9
color=gold
size=26
bordercolor=orange
bordersize=4
legend=yes
legendlabel=Provinciale

RULE WAY
keyvalue=highway=tertiary
labelsize=22
labeloffset=9
color=gold
size=26
bordercolor=orange
bordersize=4
legend=yes
legendlabel=Comunale

RULE WAY
keyvalue=highway=residential
label=name
labelsize=20
labeloffset=8
color=white
size=20
bordersize=2
bordercolor=d8d4c8
toscale=10000
labelFont=sans-serif
labelSize=30

RULE AREA
keyvalue=landuse=residential
color=ebe6dc
base=yes
legend=yes
legendlabel=Area

RULE CONFIG bgcolor=f4f3f0
RULE CONFIG oceancolor=a5bfdd

Каркас

v1

Простые линии для множества элементов.

RULE WAY
keyvalue=highway=*
label=none
color=white
size=4
bordersize=0

RULE WAY
keyvalue=natural=coastline
label=none
color=white
size=4
bordersize=0

RULE WAY
keyvalue=waterway=*
label=none
color=white
size=4
bordersize=0

RULE CONFIG bgcolor=000000
RULE CONFIG oceancolor=000000


City

#
# city ruleset for mapweaver
#

RULE CONFIG scaleset=5000
RULE CONFIG pdf=1
RULE CONFIG png=1
RULE CONFIG ruler=2
RULE CONFIG rulerbackground=white
RULE CONFIG head=City guide
RULE CONFIG headsize=80
RULE CONFIG headbackground=white
RULE CONFIG footsize=30
RULE CONFIG footbackground=white
RULE CONFIG out=Mw_city.svg
RULE CONFIG wns=4

RULE NODE
keyvalue=amenity=restaurant
icon=./icons/restaurant.svg
iconsize=40
toscale=10000

RULE NODE
keyvalue=place=city
size=40
labelsize=60
shape=square
legend=yes
legendlabel=Großstadt

RULE NODE
keyvalue=place=town
label=name
labelsize=45
size=30
legend=yes
legendlabel=Stadt

RULE NODE
keyvalue=place=village
size=20
labelsize=30
svgString=fill="black"
toscale=50000
legend=yes
legendlabel=Dorf

RULE NODE
keyvalue=place=suburb
size=20
labelsize=30
toscale=50000
legend=yes
legendlabel=Vorort

RULE WAY
keyvalue=highway=motorway
color=blue
size=28
label=shield:icons/shield_ger_bab.def
labelsize=60
labeloffset=11
bordercolor=black
bordersize=2
direxclude=yes

RULE WAY
keyvalue=highway=motorway_link
color=blue
size=20
bordercolor=black
bordersize=2
direxclude=yes

RULE WAY
keyvalue=highway=trunk
color=blue
size=26
label=shield:icons/shield_ger_bs.def
bordercolor=black
bordersize=4
direxclude=yes

RULE WAY
keyvalue=highway=trunk_link
color=blue
size=20
bordercolor=black
bordersize=2
direxclude=yes

RULE WAY
keyvalue=highway=primary
label=shield:icons/shield_ger_bs.def
labelsize=50
labeloffset=10
color=red
size=26
bordercolor=black
bordersize=4
legend=yes
legendlabel=Bundesstraße

RULE WAY
keyvalue=highway=primary_link
color=red
size=20
bordercolor=black
bordersize=2

RULE WAY
keyvalue=highway=secondary
label=shield:icons/shield_ger_ls.def
labelsize=50
labeloffset=9
color=orange
size=24
bordercolor=black
bordersize=4
legend=yes
legendlabel=Landstraße

RULE WAY
keyvalue=highway=secondary_link
color=orange
size=20
bordercolor=black
bordersize=2

RULE WAY
keyvalue=highway=tertiary
color=lightgreen
labelsize=22
labeloffset=9
size=24
bordercolor=black
bordersize=4
legend=yes
legendlabel=Kreisstraße

RULE WAY
keyvalue=highway=residential
label=name
labelsize=20
labeloffset=8
color=grey
size=22
bordersize=4
toscale=10000
legend=yes
legendlabel=Wohnstraße

RULE WAY
keyvalue=highway=residential
label=none
color=grey
size=5:10
bordersize=0
fromscale=10001
toscale=50000

RULE WAY
keyvalue=highway=service
label=none
color=grey
size=20
bordersize=0
toscale=10000

RULE WAY
keyvalue=highway=pedestrian
label=none
color=grey
size=20
bordersize=0
toscale=10000

RULE WAY
keyvalue=highway=living_street
label=none
color=grey
size=20
bordersize=0
toscale=10000

RULE WAY
keyvalue=highway=track
label=name
labelsize=20
color=darkgrey
size=3
labeloffset=-2
bordersize=0
toscale=10000

RULE WAY
keyvalue=highway=track
label=none
color=darkgrey
size=1
bordersize=0
fromscale=10001
toscale=50000

RULE AREA
keyvalue=landuse=residential
color=lightgray
base=yes
legend=yes
legendlabel=Wohngegend

RULE AREA
keyvalue=building=yes
color=darkgray
legend=yes
legendlabel=Gebäude

RULE AREA
keyvalue=natural=water
color=lightblue
base=yes
label=name

RULE AREA
keyvalue=natural=land
color=lightgreen
base=yes

RULE AREA
keyvalue=leisure=park
color=lightgreen
base=yes
label=name

RULE AREA
keyvalue=natural=wood
color=darkgreen
base=yes
label=name

RULE AREA
keyvalue=landuse=forest
color=darkgreen
base=yes
label=name

RULE AREA
keyvalue=landuse=farmland
color=lightgreen
base=yes
label=name

RULE AREA
keyvalue=landuse=farmyard
color=lightgreen
base=yes
label=name

RULE AREA
keyvalue=landuse=farm
color=lightgreen
base=yes
label=name

RULE AREA
keyvalue=landuse=grass
color=lightgreen
base=yes

RULE AREA
keyvalue=landuse=meadow
color=lightgreen
base=yes

RULE AREA
keyvalue=landuse=village_green
color=lightgreen
base=yes

RULE AREA
keyvalue=landuse=industrial
color=lightgray
base=yes

RULE AREA
keyvalue=landuse=commercial
color=lightgray
base=yes





RULE AREA
keyvalue=amenity=parking
icon=icons/areaParking.svg
legend=yes
legendlabel=Parkplatz


RULE AREA
keyvalue=landuse=cemetery
icon=icons/areaCemetery.svg


Places

#
# places ruleset for mapweaver
#

RULE CONFIG scaleset=50000
RULE CONFIG coords=1
RULE CONFIG coordsexp=-1
RULE CONFIG coordscolor=orange
RULE CONFIG pdf=1
RULE CONFIG png=1
RULE CONFIG ruler=2
RULE CONFIG rulerbackground=white
RULE CONFIG head=Places
RULE CONFIG headsize=80
RULE CONFIG headbackground=white
RULE CONFIG footsize=30
RULE CONFIG footbackground=white
RULE CONFIG out=places.svg
RULE CONFIG autobridge=0




RULE NODE
keyvalue=place=city
size=30
labelsize=50
shape=square
legend=yes
legendlabel=Großstadt

RULE NODE
keyvalue=place=town
label=name
labelsize=45
size=20
legend=yes
legendlabel=Stadt

RULE NODE
keyvalue=place=village
size=13
labelsize=30
svgString=fill="black"
toscale=50000
legend=yes
legendlabel=Dorf

RULE NODE
keyvalue=place=suburb
size=13
labelsize=30
toscale=50000
legend=yes
legendlabel=Vorort

RULE NODE
keyvalue=place=hamlet
size=8
labelsize=20
toscale=50000
legend=yes
legendlabel=Vorort

RULE WAY
keyvalue=highway=*
color=lightgrey
size=1
bordersize=0
label=none