Maps examples/Google Maps ground overlays

From semantic-mediawiki.org
< Category:Maps examples
Maps examplesMaps examples/Google Maps ground overlays

Usage of the "imageoverlays" parameter. You can add such images via the MapEditor special page.

|imageoverlays=<coord>:<coord>:<url-to-image>[~<title>~<text>/~link:<url-to-link>]; ...
You may use either the title and text options or the link option. Alternatively it is possible to add a link to the wikitext to be shown in the popup.1

Example 1 - title / text[edit]

syntax
{{#display_map: 
 |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://www.semantic-mediawiki.org/w/assets/SMW-logo.png~Semantic MediaWiki~World domination imminent!
 |centre=Europe
 |zoom=5
 |service=googlemaps3
}}
result
Loading map...

Example 2 - link[edit]

syntax
{{#display_map: 
 |imageoverlays=50.302674198227855,10.70068359375:49.01553629578961,8.382568359375:https://www.semantic-mediawiki.org/w/assets/SMW-logo.png~~/~link:https://sandbox.semantic-mediawiki.org/wiki/Issue/M/450
 |centre=Europe
 |zoom=5
 |service=googlemaps3
}}
result
Loading map...

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.

References

  1. ^  Maps: GitHub issue gh:m:3100