Google Maps examples: Difference between revisions

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


This page lists examples. For an overview of available parameters and how to use them, see [[Customizing Google Maps]].
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 ==
== KML ==
Line 23: 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>
 
{{#display_map:center=Europe
| service=google
| height=300px
| scrollzoom=off
| gkml=https://raruto.github.io/leaflet-kmz/examples/capitals.kmz
  | zoom=3
}}
 
== Map types ==
 
<pre>
{{#display_map:center=Ben Nevis
| types=satellite, terrain
| type=terrain
| zoom=9
}}
}}
</pre>
</pre>


{{#display_map:center=derbyshire
{{#display_map:center=Ben Nevis
  | service=google
  | service=google
  | height=300px
  | height=300px
  | scrollzoom=off
  | scrollzoom=off
  | gkml=http://www.irhb.org/wiki/kml/england/counties/derbyshire.kmz
  | types=satellite, terrain
  | zoom=7
| type=terrain
  | zoom=9
}}
}}


== Markers, Polygons, Lines, etc ==
== Copy coords ==
 
Right-click on the map to copy the coordinates.
 
<pre>
{{#google_maps:Hong Kong
|copycoords=yes
|zoom=11
}}
</pre>


See [[Displaying Google Maps]]
{{#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...