Leaflet Maps examples

From Maps for MediaWiki

Leaflet maps can be customized using various parameters.

This page lists examples. For an overview of available parameters and how to use them, see Customizing Leaflet Maps.

Markers, Polygons, Lines, etc[edit | edit source]

See Displaying Leaflet maps

Layers[edit | edit source]

{{#display_map:
 |layers=OpenTopoMap,OpenStreetMap
 |zoom=1
}}
Loading map...

Note: Maps code repository → List of available layers.

Overlays[edit | edit source]

{{#display_map:Calais; Dover
 |overlaylayers=OpenSeaMap
}}
Loading map...

Fullscreen[edit | edit source]

{{#display_map:Berlin
 |fullscreen=on
}}
Loading map...

Resizable[edit | edit source]

{{#display_map:New York City
 |resizable=on
}}
Loading map...

Click target[edit | edit source]

{{#display_map:Berlin
 |clicktarget=https://www.google.com/maps/@%lat%,%long%,8z
 |zoom=8
}}
Loading map...

Image layers[edit | edit source]

{{#display_map:image layers=NewYorkSubway.jpg, NewYorkSubwaySmall.jpg }}
Loading map...
{{#display_map:image layers=NewYorkSubway.jpg | geojson=NewYorkSubway }}
Loading map...

Copy coords[edit | edit source]

Right-click on a marker to copy its coordinates.

{{#leaflet:Hong Kong; Macau
 |copycoords=yes
 |zoom=10
}}
Loading map...