Help:Map format
From semantic-mediawiki.org
| Map format | ||
|---|---|---|
| Displays queried geographical data onto an interactive map | ||
| Further Information | ||
| Provided by: | Semantic Maps | |
| Added: | 0.1 | |
| Removed: | still supported | |
| Requirements: | none | |
| Format name: | map | |
| Enabled by default:info.pngIndicates whether the result format is enabled by default upon installation of the respective extension. | yes | |
| Authors: | Jeroen De Dauw | |
| Categories: | geo | |
| Table of Contents | ||
| ||
The result format map, part of the Semantic Maps extension, can be used to display geographical data onto dynamic and interactive maps, such as Google Maps. The mapping service used for this format is the default one, which depends on configuration of the Maps and Semantic Maps extensions. There are also specific formats for each mapping service:
Parameters
| Parameter | Aliases | Type | Default | Description |
|---|---|---|---|---|
| geoservice | - | Text | geonames | The geocoding service to use to make translations between addresses and coordinates. |
| zoom | - | Whole number | no | The zoom level for the map. For maps with markers this will default to the most zoomed in level that still shows all markers. |
| width | - | Text | auto | Allows setting the width of the map. By default pixels will be assumed as unit, but you can explicitly specify one of these units: px, ex, em, %. |
| height | - | Text | 350 | Allows setting the height of the map. By default pixels will be assumed as unit, but you can explicitly specify one of these units: px, ex, em, %. |
| type | - | Text | roadmap | The map type to initially show. |
| types | - | List of text items | roadmap, satellite, hybrid, terrain | The map types that will be available via the type control. |
| layers | - | List of text items | empty | Special layers to load onto the map. |
| controls | - | List of text items | pan, zoom, type, scale, streetview | The controls to place on the map. |
| zoomstyle | - | Text | default | The style of the zoom control. |
| typestyle | - | Text | default | The style of the type control. |
| autoinfowindows | - | Yes/no | no | Automatically open all info windows after the page has loaded. |
| kml | - | List of text items | empty | KML files to load onto the map. |
| gkml | - | List of text items | empty | KML files hosted by Google to load onto the map. |
| fusiontables | - | List of text items | empty | IDs of Google Fusion Tables which should be loaded onto the map. |
| resizable | - | Yes/no | no | Makes the map resizable by dragging at it's lower right corner. |
| tilt | - | Whole number | 0 | Tilt for the Map when using Google Maps. |
| kmlrezoom | - | Yes/no | no | Rezoom the map after the KML layers have been loaded. |
| poi | - | Yes/no | yes | Show points of interest. |
| staticlocations | locations | List of text items | empty | A list of locations to add to the map together with the queried data. Like with display_points, you can add a title, description and icon per location using the tilde "~" as separator. |
| centre | center | Text | no | The centre of the map. When not provided, the map will automatically pick the optimal centre to display all markers on the map. |
| icon | - | Text | empty | Allows setting the icon used for all markers. |
| forceshow | force show | Yes/no | yes | Show the map even when there are no locations to display? |
| showtitle | show title | Yes/no | yes | Show a title in the marker info window or not. Disabling this is often usefull when using a template to format the info window content. |
| template | - | Text | no | A template to use to format the info window contents. |
| title | - | Text | empty | Allows setting text that will be displayed in the pop-ups of all markers that do not have a specific title.
When used together with label, the title will be bold and underlined. |
| label | text | Text | empty | Allows setting text that will be displayed in the pop-ups of all markers that do not have a specific label. |
Examples
Semantic Maps examples can be found on the Semantic Maps wiki.
See also
This documentation page applies to all SMW versions from 1.6.0 to the most current version.