Maps

From Wiki of Jeroen De Dauw

Jump to:navigation, search

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 extension logo

Contents

Maps examples

Showing a basic map

Displaying a map with centre specified in float coordinate notation.

{{
#display_map:
55.7557860, 37.6176330
}}

Photos
Videos
Wikipedia
Webcams

One point

Displaying a single point with float coordinate notation.

{{
#display_point:
55.7557860, 37.6176330
}}

Photos
Videos
Wikipedia
Webcams

Displaying a single address.

{{
#display_point:
Moscow, Russia
}}

Photos
Videos
Wikipedia
Webcams

Multiple points

Displaying multiple points using address notation.

{{
#display_points:
Moscow, Russia;
New York;
Brussels
}}

Photos
Videos
Wikipedia
Webcams

Displaying multiple points using different notations.

{{
#display_points:
55°45′06″N 37°37′04″E;
New York;
40.446195, -79.948862
}}

Photos
Videos
Wikipedia
Webcams

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

Photos
Videos
Wikipedia
Webcams

Mapping service

Map using the default mapping service (you can change the default).

{{
#display_point:
Moscow, Russia
}}

Photos
Videos
Wikipedia
Webcams

Map using the googlemaps service.

{{
#display_point:
Moscow, Russia
| service=googlemaps
}}

Photos
Videos
Wikipedia
Webcams

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

Photos
Videos
Wikipedia
Webcams

Setting the centre and zoom of a map.

{{
#display_point:
Moscow, Russia
| centre=Brussels
| zoom=2
}}

Photos
Videos
Wikipedia
Webcams

Setting the icon for all markers.

{{
#display_points:
Moscow, Russia;New York City; Brussels, Belgium
| icon=Green_marker.png
}}

Photos
Videos
Wikipedia
Webcams

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

Retrieved from "http://wiki.bn2vs.com/Maps"
Navigation
Add data
Extension examples
Toolbox