Maps
From Wiki of Jeroen De Dauw
This page contains examples of the usage of the Maps MediaWiki extension.
Maps is the MediaWiki extension that provides the ability to visualize geographic data with dynamic, JavaScript based, mapping API's such as Google Maps and OpenLayers in your wiki pages. It has build in support for geocoding, displaying maps, displaying markers, adding pop-ups, and more. Maps allows extensive customization of your maps, either per map, or via a general setting affecting all maps on your wiki.
| Maps: |
Examples • Sandbox • Google Maps • Yahoo! Maps • OpenLayers • OpenStreetMap • Discussion • Documentation |
Contents |
Maps examples
Showing a basic map
Displaying a map with centre specified in float coordinate notation.
{{
#display_map:
55.7557860, 37.6176330
}}
One point
Displaying a single point with float coordinate notation.
{{
#display_point:
55.7557860, 37.6176330
}}
Displaying a single address.
{{
#display_point:
Moscow, Russia
}}
Multiple points
Displaying multiple points using address notation.
{{
#display_points:
Moscow, Russia;
New York;
Brussels
}}
Displaying multiple points using different notations.
{{
#display_points:
55°45′06″N 37°37′04″E;
New York;
40.446195, -79.948862
}}
Point specific data
Point specific data in the format Address or location~Title~Label~Icon
{{
#display_points:
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
}}
Mapping service
Map using the default mapping service (you can change the default).
{{
#display_point:
Moscow, Russia
}}
Map using the googlemaps service.
{{
#display_point:
Moscow, Russia
| service=googlemaps
}}
Map using the yahoomaps service.
{{
#display_point:
Moscow, Russia
| service=yahoomaps
}}
Map using the openlayers service.
{{
#display_point:
Moscow, Russia
| service=openlayers
}}
Map using the openstreetmap service.
{{
#display_point:
Moscow, Russia
| service=openstreetmap
}}
General map properties
Setting the with and height of a map.
{{
#display_point:
Moscow, Russia
| width=500
| height=300
}}
Setting the centre and zoom of a map.
{{
#display_point:
Moscow, Russia
| centre=Brussels
| zoom=2
}}
Setting the icon for all markers.
{{
#display_points:
Moscow, Russia;New York City; Brussels, Belgium
| icon=Green_marker.png
}}
Nested geocoding
Displaying a Yahoo! Map with an address geocoded via the geonames service.
{{
#display_point:
{{geocode:Moscow, Russia|geonames}}
| service=yahoomaps
| height=500
| width=800
}}
See also
| Maps: |
Examples • Sandbox • Google Maps • Yahoo! Maps • OpenLayers • OpenStreetMap • Discussion • Documentation |