Plantilla:Map draw/ús/exemples
|
Un punt {{map draw | 42.526667, 3.081389}}
|
<mapframe align="right" height="300" latitude="42.526667" longitude="3.081389" width="300" zoom="9">[{"features":[{"type":"Feature","geometry":{"coordinates":[3.081389,42.526667],"type":"Point"},"properties":{"title":"Point1"}}],"type":"FeatureCollection"}]</mapframe> |
|
Amb format d'enllaç {{map draw | 42.526667, 3.081389 | type=maplink}}
{{map draw | 42.526667, 3.081389 | type=maplink | text=Cotlliure (mapa dinàmic)}}
|
<maplink latitude="42.526667" longitude="3.081389">[{"features":[{"type":"Feature","geometry":{"coordinates":[3.081389,42.526667],"type":"Point"},"properties":{"title":"Point1"}}],"type":"FeatureCollection"}]</maplink> <maplink text="Cotlliure (mapa dinàmic)">[{"features":[{"type":"Feature","geometry":{"coordinates":[3.081389,42.526667],"type":"Point"},"properties":{"title":"Point1"}}],"type":"FeatureCollection"}]</maplink> |
|
Diversos punts {{map draw
| marker-symbol=-number
| title1=Casa Milà | coordinates1=41.395278,2.161667
| title2=Ajuntament | coordinates2=41.3822,2.1775
| title3=Pl. Catalunya | coordinates3=41.386667,2.17
}}
|
<mapframe align="right" height="300" latitude="41.388739" longitude="2.1695835" width="300" zoom="13">[{"features":[{"type":"Feature","geometry":{"coordinates":[2.161667,41.395278],"type":"Point"},"properties":{"title":"Casa Milà","marker-symbol":"-number"}},{"type":"Feature","geometry":{"coordinates":[2.1775,41.3822],"type":"Point"},"properties":{"title":"Ajuntament","marker-symbol":"-number"}},{"type":"Feature","geometry":{"coordinates":[2.17,41.386667],"type":"Point"},"properties":{"title":"Pl. Catalunya","marker-symbol":"-number"}}],"type":"FeatureCollection"}]</mapframe> |
|
Una línia {{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
}}
|
<mapframe align="right" height="420" latitude="38.22357" longitude="-0.73656" width="420" zoom="10">[{"features":[{"type":"Feature","geometry":{"coordinates":[[-0.94195,38.08922],[-0.90405,38.11109],[-0.87755,38.12167],[-0.88745,38.13886],[-0.89089,38.15288],[-0.87381,38.16561],[-0.87917,38.17467],[-0.8698,38.18072],[-0.83775,38.16861],[-0.81725,38.20428],[-0.78589,38.22083],[-0.78819,38.23519],[-0.75581,38.25106],[-0.713,38.25778],[-0.70614,38.26961],[-0.66525,38.28647],[-0.65289,38.32603],[-0.61256,38.34356],[-0.55347,38.35792],[-0.53117,38.35375]],"type":"LineString"},"properties":{"title":"LineString1"}}],"type":"FeatureCollection"}]</mapframe> |
|
Un polígon {{map draw
| 18.45, -66.066667; 25.775278, -80.208889; 32.333333, -64.75; 18.45, -66.066667
| fill=#1E90FF
| text = [[Triangle de les Bermudes]]
}}
|
<mapframe align="right" height="300" latitude="25.3916665" longitude="-72.4794445" text="Triangle de les Bermudes" width="300" zoom="4">[{"features":[{"type":"Feature","geometry":{"coordinates":[[[-66.066667,18.45],[-80.208889,25.775278],[-64.75,32.333333],[-66.066667,18.45]]],"type":"Polygon"},"properties":{"title":"Polygon1","fill":"#1E90FF"}}],"type":"FeatureCollection"}]</mapframe> |
|
Un cercle {{map draw
| geotype1 = circle
| radius1 = 45000
| ids1 = Q1049092
| fill-opacity1 = 0.2
| text = [[Terratrèmol i tsunami de Sumatra de 2010|Tsunami de Sumatra de 2010]]
}}
|
Error de Lua a mw.text.lua a la línia 245: bad argument #1 to 'len' (string expected, got nil). |
|
Combinació de diferents objectes {{map draw
| zoom = 14
| align = center
| text = [[Ciutat Vella de València]] al costat del [[jardí del Túria]] amb la catedral i l'ajuntament
| 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
}}
|
<mapframe align="center" height="300" latitude="39.473151" longitude="-0.377937" text="Ciutat Vella de València al costat del jardí del Túria amb la catedral i l'ajuntament" width="300" zoom="14">[{"features":[{"type":"Feature","geometry":{"coordinates":[-0.375,39.475833],"type":"Point"},"properties":{"marker-size":"small","title":"Catedral de València","marker-color":"#4682B4","stroke-opacity":0.6,"marker-symbol":"religious-christian","description":" |
|
Àrea amb dades d'OSM {{map draw
| geotype = geoshape
| ids = Q24260,Q24269,Q24272,Q24276,Q2522163,Q24282,Q24286
| fill = #CDC9C9
| text = Parròquies d'Andorra
}}
|
<mapframe align="right" height="300" text="Parròquies d'Andorra" width="300" zoom="9">[{"properties":{"title":"geoshape1","fill":"#CDC9C9"},"type":"ExternalData","service":"geoshape","ids":"Q24260,Q24269,Q24272,Q24276,Q2522163,Q24282,Q24286"}]</mapframe> |
|
Àrea amb dades d'OSM, combinades amb àrea destacada {{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
}}
|
<mapframe align="right" frameless="1" height="300" latitude="41.7" longitude="1.7" width="300" zoom="7">[{"properties":{"title":"geoshape1","fill":"#0000CD"},"type":"ExternalData","service":"geoshape","ids":"Q12600"},{"properties":{"stroke-width":1,"fill-opacity":0.2,"title":"geomask2"},"type":"ExternalData","service":"geomask","ids":"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"}]</mapframe> |
|
Àrea amb dades d'OSM, combinada amb una àrea interior destacada {{map draw |zoom=9 |frameless=s
|geotype1=geoshape |ids1=Q11492 | fill1=#0000CD
|geotype2=geomask |ids2=Q12600 | fill-opacity2=0.2
}}
|
<mapframe align="right" frameless="1" height="300" width="300" zoom="9">[{"properties":{"title":"geoshape1","fill":"#0000CD"},"type":"ExternalData","service":"geoshape","ids":"Q11492"},{"properties":{"title":"geomask2","fill-opacity":0.2},"type":"ExternalData","service":"geomask","ids":"Q12600"}]</mapframe> |
|
Línia amb dades d'OSM {{map draw
| type = maplink
| class = no-icon
| geotype = geoline
| ids = Q25203036
| stroke = #ff0000
| text = Mapa: Carretera nacional 2 de l'Índia
}}
|
<maplink class="no-icon" text="Mapa: Carretera nacional 2 de l'Índia">[{"properties":{"stroke":"#ff0000","title":"geoline1"},"type":"ExternalData","service":"geoline","ids":"Q25203036"}]</maplink> |
|
Amb dades de Commons (vegeu c:Data:Jordan.map) i amb Q810 (Q810) (fora de la pàgina associada) {{map draw
| item = Q810
| commons = Jordan.map
}}
|
<mapframe align="right" height="300" width="300" zoom="9">[{"properties":{"title":"page1"},"type":"ExternalData","title":"Jordan.map","service":"page"}]</mapframe> |
|
Amb dades de Commons (vegeu c:Data:Riu Segre.map, on hi ha la seqüència de coordenades del curs del riu) {{map draw
| commons1 = Riu Segre.map
| coordinates2 = 42.4025, 2.1084
| title2 = Neix: Llo
| coordinates3 = 41.363656, 0.302644
| title3 = Desguàs: Ebre a Mequinensa
}}
|
<mapframe align="right" height="300" latitude="41.883078" longitude="1.205522" width="300" zoom="7">[{"properties":{"title":"page1"},"type":"ExternalData","title":"Riu Segre.map","service":"page"},{"features":[{"type":"Feature","geometry":{"coordinates":[2.1084,42.4025],"type":"Point"},"properties":{"title":"Neix: Llo"}},{"type":"Feature","geometry":{"coordinates":[0.302644,41.363656],"type":"Point"},"properties":{"title":"Desguàs: Ebre a Mequinensa"}}],"type":"FeatureCollection"}]</mapframe> |