Extension:Maps/OSM

OpenStreetMap examples
Since Maps is not enabled on this wiki, no examples can be shown here. You can find a list of OpenStreetMap examples here.

Controls
Parameter:

Available values: See the OpenLayers docs (the items in the menu on the left).

This parameter sets the controls that will be added to your OpenLayers map. You can add as many of the controls you want, by separating them with comma's. You can also configure the default controls (the ones that will be added when no value is provided) in the settings file.

See the OpenLayers docs for a list of available controls and their descriptions. Note that the value of the controls parameter is case insensitive, so it doesn't matter if you use capitals or only lower case letters.

Since 0.4, Maps supports the 'autopanzoom' control. When you specify this control, Maps will automatically determine if panzoom, panzoombar, or no control should be used, depending on the maps height.

Example of how to use this parameter: controls=autopanzoom,scaleline,overviewmap,keyboarddefaults

Static
Parameter:

Available values: ,

Indicates whether you want to get a static map (image) or not. For more info, see static map support. This parameter is only supported for display_map.

Mode
Parameter:

Available values:,  ,

The display mode for the map. It affects the static map data source. This parameter is only supported for display_map.

OpenStreetMap controls
The default controls for OpenStreetMap. This value will only be used when the user does not provide one. See the controls parameter for the available values.

Default:

Default map zoom
The default zoom of an OpenStreetMap map. This value will only be used when the user does not provide one.

Default:

Map name prefix
The OpenStreetMap map name prefix. It can not be identical to the one of another mapping service. Unless you know what you are doing, it's discouraged to modify this value.

Default:

OpenStreetMap usage examples
If you are using Maps and have a great example of OpenStreetMap functionality, feel free to link to it below.


 * BN's demo wiki