Help:OpenLayers format
From semantic-mediawiki.org
| OpenLayers format | ||
|---|---|---|
| Displays queried geographical data onto an OpenLayers map | ||
| Further Information | ||
| Provided by: | Semantic Maps | |
| Added: | 0.1 | |
| Removed: | still supported | |
| Requirements: | none | |
| Format name: | openlayers | |
| 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 openlayers, part of the Semantic Maps extension, can be used to display geographical data onto OpenLayers maps.
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, %. |
| controls | - | List of text items | layerswitcher, mouseposition, autopanzoom, scaleline, navigation | The controls to place on the map. |
| layers | - | List of text items | osm-mapnik, osm-cyclemap, osmarender | The layers that will be available in the layer selector. The first layer will be shown when the map loads. |
| resizable | - | Yes/no | no | Makes the map resizable by dragging at it's lower right corner. |
| 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
Geo formats
These are the geo related result formats provided by SMW and extensions to SMW.
- Google Maps format
- KML format
- Map format
- OpenLayers format
- Yahoo! Maps format
This documentation page applies to all SMW versions from 1.6.0 to the most current version.