Mal:Map draw
| Denne malen benytter seg av Lua: |
Formål
[rediger kilde]Mal for å tegne objekter på et kart med interessepunkter, linjer eller polygoner. Ved å klikke på det utvides det dynamiske kartet til fullskjerm, og man får informasjon om hvert av objektene.
Denne malen er et hjelpemiddel for å bygge geoJSON-syntaksen til Kartographer-utvidelsen med en fleksibel parameterstruktur. Noen verdier kan beregnes automatisk eller hentes fra Wikidata.
Parametre
[rediger kilde]{{map draw
|type= |latitude= |longitude= |zoom=
|height= |width= |text= |align= |frameless= |class= |item=
|coordinates= |title= |description= |image=
|marker-color= |marker-size= |marker-symbol=
|stroke= |stroke-width= |stroke-opacity=
|fill= |fill-opacity=
|geotype= |ids=
|geotype1=Point |coordinates1/ids1= |marker-color1= |marker-size1= |marker-symbol1= |title1/description1/image1=
|geotype2=LineString |coordinates2/ids2= |stroke2= |stroke-width2= |stroke-opacity2= |title2/description2/image2=
|geotype3=Polygon |coordinates3/ids3= |fill3= |fill-opacity3= |stroke3= |stroke-width3= |stroke-opacity3= |title3/description3/image3=
|geotype4=circle |radius4/radiuskm4 = |coordinates4/ids4= |edges4 |turn= |fill4= |fill-opacity4= |stroke4= |stroke-width4= |stroke-opacity4= |title4/description4/image4=
|geotype5=geoshape/geomask/geoline |ids5= |fill5= |fill-opacity5= |stroke5= |stroke-width5= |stroke-opacity5= |title5= |description5= |image5=
|geotype6=page |commons6=
|geotype7=named |from7=
|...
}}
marker-symbol: se denne siden for ulike kartmarkører.
Eksempler
[rediger kilde]|
Et punkt {{map draw | 78.2139, 15.8698}}
|
|
|
Med lenkeformat {{map draw | 78.2139, 15.8698 | type=maplink}}
{{map draw | 78.2139, 15.8698 | type=maplink | text=OpenStreetMap}}
|
|
|
Flere punkter {{map draw
| marker-symbol=-number
| title1=Det kongelige slott | coordinates1=59.917148,10.727479
| title2=Stortinget | coordinates2=59.913,10.740021
| title3=Oslo domkirke | coordinates3=59.912537,10.747062
}}
|
|
|
En linje {{map draw | 38.08922, -0.94195; 38.11109, -0.90405; 38.12167, -0.87755; 38.13886, -0.88745; 38.15288, -0.89089; 38.16561, -0.87381; 38.17467, -0.87917; 38.18072, -0.8698; 38.16861, -0.83775; 38.20428, -0.81725; 38.22083, -0.78589; 38.23519, -0.78819; 38.25106, -0.75581; 38.25778, -0.713; 38.26961, -0.70614; 38.28647, -0.66525; 38.32603, -0.65289; 38.34356, -0.61256; 38.35792, -0.55347; 38.35375, -0.53117
| zoom=10
| height=420 | width=420
}}
|
|
|
En polygon {{map draw
| 18.45, -66.066667; 25.775278, -80.208889; 32.333333, -64.75; 18.45, -66.066667
| fill=#1E90FF
| text = [[Bermudatriangelet]]
}}
|
|
|
En sirkel {{map draw
| geotype1 = circle
| radius1 = 45000
| ids1 = Q1049092
| fill-opacity1 = 0.2
| text = Tsunamien ved Sumatra i 2010
}}
|
|
|
Kombinasjon av ulike objekter {{map draw
| zoom = 14
| align = center
| text = Gamlebyen i València ved siden av Túriahagene (grønt). Katedralen og rådhuset markert.
| marker-size = small | marker-color = #4682B4
| title1 = Catedral de València
| image1 = Porta ferros.jpg
| marker-symbol1 = religious-christian
| coordinates1 = 39.475833, -0.375
| title2 = Ajuntament de València
| description2 = Plaça de l'Ajuntament
| marker-symbol2 = town-hall
| coordinates2 = 39.469836, -0.376989
| title3 = Jardí del Túria
| image3 = Jardines del Turia - 5. January 2006 -1.jpg
| stroke3 = #00FA9A | stroke-width3 = 20 | stroke-opacity = 0.6
| coordinates3 = 39.475830, -0.396043; 39.482210, -0.380346; 39.480546, -0.375389; 39.476483, -0.368754; 39.469836, -0.363182; 39.464092, -0.359831
| title4 = Districte de Ciutat Vella
| fill4 = #F5DEB3 | fill-opacity4 = 0.4
| coordinates4 = 39.480517, -0.382817; 39.481246, -0.380532; 39.480890, -0.378504; 39.477445, -0.371702; 39.472737, -0.366780; 39.472074, -0.368486; 39.469714, -0.371147; 39.467105, -0.374988; 39.468422, -0.380578; 39.470377, -0.383507; 39.471917, -0.384054; 39.475742, -0.384120; 39.478308, -0.383739; 39.480517, -0.382817
}}
|
|
|
Område med Wikidata /OSM-data {{map draw
| geotype = geoshape
| ids = Q24260,Q24269,Q24272,Q24276,Q2522163,Q24282,Q24286
| fill = #CDC9C9
| text = [[Andorras parròquies]]
}}
|
|
|
Område med OSM-data, kombinert med markert område {{map draw |zoom=7 |frameless=s |latitude=41.7 |longitude=1.7
|geotype1=geoshape |ids1=Q12600 | fill1=#0000CD
|geotype2=geomask |stroke-width2=1 | fill-opacity2=0.2
|ids2= Q15365,Q6904,Q15355,Q12720,Q12704,Q15352,Q15346,Q15361,Q15364,
Q12768,Q15351,Q15362,Q15348,Q15345,Q12787,Q15368,Q15354,Q12732,Q10932,
Q12752,Q12600,Q9035550,Q15367,Q12726,Q12793,Q12723,Q12719,Q12762,Q12728,
Q15377,Q15374,Q10930,Q12733,Q12727,Q12778,Q12734,Q15360,Q15376,Q12729,
Q12602,Q13948,Q14303,Q4895313
}} |
|
|
Område med OSM-data, kombinert med markert område {{map draw |zoom=9 |frameless=s
|geotype1=geoshape |ids1=Q11492 | fill1=#0000CD
|geotype2=geomask |ids2=Q12600 | fill-opacity2=0.2
}} |
|
|
Linje med OSM-data {{map draw
| type = maplink
| class = no-icon
| geotype = geoline
| ids = Q25203036
| stroke = #ff0000
| text = Kart: National Highway 2 (India)
}}
|
|
|
Med data fra Commons (se c:Data:Jordan.map) og med Jordan (Q810) (tilknyttet Wikidata-side) {{map draw
| item = Q810
| commons = Jordan.map
}}
|
|
|
Med data fra Commons (se c:Data:Riu Segre.map, hvor det er sekvensen av koordinater for elveløpet) {{map draw
| commons1 = Riu Segre.map
| coordinates2 = 42.4025, 2.1084
| title2 = Kilde: Llo
| coordinates3 = 41.363656, 0.302644
| title3 = Munning: Ebro ved Mequinensa
}}
|
|
|
Med OSM-data, koordinater for kartets midtpunkt og endret kartformat {{map draw
| latitude = 33
| longitude = 140
| height = 500
| width = 280
| zoom = 5
| geotype = geoshape
| ids = Q1490
| stroke = #ff0000
| text = Tokyo prefektur
| stroke-width = 1
| stroke-opacity = 1
| fill = #00ff00
| fill-opacity = 0.2
}}
|











