Maps examples/Google Maps with point specific data

From semantic-mediawiki.org
Jump to: navigation, search
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 ";".

NoteNote:  This does not work with the OpenLayers service.

Examples

Using the parser function

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
}}

NoteNote:  In Maps 3.x, you can still use customized markers by specifying the marker files without name space as this example shows. See issue 51 for more information.

Loading map...


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
}}
Loading map...

NoteNote:  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

marker uploaded to the wiki
<display_map 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 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>

NoteNote:  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.

Loading map...