Help:OpenLayers format

From semantic-mediawiki.org
Jump to: navigation, search
OpenLayers format
Displays queried geographical data onto an OpenLayers map
Available languages
deenzh-hans
Further Information
Provided by: Semantic Maps
Added: 0.1
Removed: still supported
Requirements: none
Format name: openlayers
Enabled by default: 
Indicates whether the result format is enabled by default upon installation of the respective extension.
yes
Authors: Jeroen De Dauw
Categories: geo
Group:
Table of Contents

↓ INFO ↓

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.
width
number and dimensional unit 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
number and dimensional unit 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, %.
centre center text no The location on which the map should be centered
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.
icon
text empty Allows setting the icon used for all markers.
visitedicon
text empty The filename of an image to be used for marker icons after the original markers have been clicked
lines
List of lines empty Lines to display
polygons
<validator-type-mapspolygon-list> empty Polygons to display
circles
List of circles empty Circles to display
rectangles
List of rectangles empty Rectangles to display
wmsoverlay
Web Map Service overlay no Use a WMS overlay
maxzoom
whole number no The maximum zoom level
minzoom
whole number no The minimum zoom level
copycoords
yes/no no Show a dialog when clicking on a location from which its coordinates may be copied
static
yes/no no Make the map static
zoom
whole number 13 The zoom level for the map. For maps with markers this will default to the most zoomed in level that still shows all markers.
controls
list of texts layerswitcher, mouseposition, autopanzoom, scaleline, navigation The controls to place on the map.
layers
list of texts osm-mapnik, osm-cyclemap 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 its lower right corner.
overlays
text empty Overlay layers that will be available in the layer selector. These layers will be displayed on top of a normal layer, kind of like a marker.
searchmarkers
text empty Allows to search for specific markers via a field embedded into the map.
kml
list of texts empty KML files to load onto the map.
staticlocations locations, points List of locations 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.
showtitle show title yes/no yes Show a title in the marker info window or not. Disabling this is often useful when using a template to format the info window content.
hidenamespace hide namespace yes/no no Show the namespace title in the marker info window
template
text no A template to use to format the info window contents.
userparam
text empty A value passed into each template call, if a template is used
activeicon
text empty Icon to be displayed instead of default marker, when active page is equal to query result
pagelabel
yes/no no When set to "yes", all markers will have an "inlineLabel" with a link to the page containing the coordinates for the marker
ajaxcoordproperty
text empty Name of the coordinate property which is used to build the ajax query.
ajaxquery
text empty A second query that is sent via ajax to fetch additional coordinates.

Note: The parameters lines, rectangles, circles and polygons do not work in combination with semantic ask-queries.

Examples

Semantic Maps examples are available on the example pages.

See also

Geo formats

These are the geo related result formats provided by SMW and extensions to SMW.



This documentation page applies to all SMW versions from 1.6.0 to the most current version.
      Other languages: dezh-hans

Help:OpenLayers format en 1.6.0