Maps examples/Google Maps with point specific data

From semantic-mediawiki.org
< Category:Maps examples
Maps examplesMaps examples/Google Maps with point specific data
Table of Contents

This page shows examples for basic maps rendered with Google Maps with point specific data.

syntax
The data is added in the format Location~Title~Label~Icon. If one data item is omitted it is still required to keep the data divider "~" in place, e. g. Location~Title~~Icon. If you are using the parser function every line end is indicated by the line end indicator ";".
This does not work with the OpenLayers or Leaflet service.

Examples[edit]

Using the parser function[edit]

marker uploaded to the wiki
{{#display_map:
 Moscow, Russia~Moscow~A city in Russia;
 New York~New York City;
 London~[[London]]~Capital of England~Green marker.png;
 Brussels;
 Mali~Mali~~Blue marker.png
 |service=googlemaps3
}}
Loading map...
In Maps 3.x and later, you can still use customized markers by specifying the marker files without adding the "File" name space as this example shows. See issue 51 for more information. Adding "File:Blue_marker.png" instead of "Blue_marker.png" does not work.


external source of the marker
{{#display_map:
 Moscow, Russia~Moscow~A city in Russia;
 New York~New York City;
 London~[[London]]~Capital of England~https://www.semantic-mediawiki.org/w/images/c/ce/Green_marker.png;
 Brussels;
 Mali~Mali~~https://www.semantic-mediawiki.org/w/images/6/6f/Blue_marker.png
 |service=googlemaps3
}}
Loading map...
Same as the first example but with an icon from an external source. Usually icons are pictures which have been uploaded to the wiki and are accessed the same way files are.


Using the tag[edit]

marker uploaded to the wiki
<display_map service="googlemaps3" type="terrain">
Moscow, Russia~Moscow~A city in Russia
New York~New York city
London~[[London]]~Capital of England~Green_marker.png
Brussels
Mali~Mali~~Blue_marker.png
</display_map>
Loading map...


external source of the marker
<display_map service="googlemaps3" type="terrain">
Moscow, Russia~Moscow~A city in Russia
New York~New York city
London~[[London]]~Capital of England~https://www.semantic-mediawiki.org/w/images/c/ce/Green_marker.png
Brussels
Mali~Mali~~https://www.semantic-mediawiki.org/w/images/6/6f/Blue_marker.png
</display_map>
Loading map...
Same as the first example but with an icon from an external source. Usually icons are pictures which have been uploaded to the wiki and are accessed the same way files are.


Starting June 11, 2018 the free usage of the Google Maps APIs is limited to 28,000 calls a month for dynamic maps. As soon as this monthly limit is reached no more maps will be served that month for this wiki by Google.