Google Maps examples: Difference between revisions

From Maps for MediaWiki
mNo edit summary
mNo edit summary
(5 intermediate revisions by the same user not shown)
Line 27: Line 27:


<pre>
<pre>
{{#display_map:center=derbyshire
{{#display_map:center=Europe
  | gkml=http://www.irhb.org/wiki/kml/england/counties/derbyshire.kmz
  | gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz
  | zoom=7
  | zoom=3
}}
}}
</pre>
</pre>


{{#display_map:center=derbyshire
{{#display_map:center=Europe
  | service=google
  | service=google
  | height=300px
  | height=300px
  | scrollzoom=off
  | scrollzoom=off
  | gkml=http://www.irhb.org/wiki/kml/england/counties/derbyshire.kmz
  | gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz
  | zoom=7
  | zoom=3
}}
}}


Line 58: Line 58:
  | type=terrain
  | type=terrain
  | zoom=9
  | zoom=9
}}
== Copy coords ==
Right-click on the map to copy the coordinates.
<pre>
{{#google_maps:Hong Kong
|copycoords=yes
|zoom=11
}}
</pre>
{{#google_maps:Hong Kong
|copycoords=yes
|height=300px
|scrollzoom=off
|zoom=11
}}
}}

Revision as of 12:22, 18 March 2022

Google maps can be customized using various parameters.

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

Markers, Polygons, Lines, etc

See Displaying Google Maps

KML

{{#display_map:center=Berlin
 | kml=BerlinDistricts.kml
 | zoom=9
}}
Loading map...

GKML

{{#display_map:center=Europe
 | gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz
 | zoom=3
}}
Loading map...

Map types

{{#display_map:center=Ben Nevis
 | types=satellite, terrain
 | type=terrain
 | zoom=9
}}
Loading map...

Copy coords

Right-click on the map to copy the coordinates.

{{#google_maps:Hong Kong
 |copycoords=yes
 |zoom=11
}}
Loading map...