Template:BrowseMapWithMarker

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

Usage

{{BrowseMapWithMarker|lat=X|lon=Y|zoom=Z|layers=...|text=XY|name=NN}}
  • layers is optional.
  • text has a higher priority; if not given, name is used.


Examples:

  • {{BrowseMapWithMarker|lat=49.5013947|lon=6.5454511|zoom=15|name=Saarschleife}}
Browse map of Saarschleife 49°30′05.02″ N, 6°32′43.62″ E
  • {{BrowseMapWithMarker|lat=49.5013947|lon=6.5454511|zoom=15|text=This is the Saarschleife.}}
This is the Saarschleife. 49°30′05.02″ N, 6°32′43.62″ E


TemplateData

This is the TemplateData for this template used by VisualEditor.
TemplateData for BrowseMapWithMarker

Displays a link to OSM map at a specified position with marker icon.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
lattitudelat

lattitude of the marker and center of the map

Example
39.95677
Numberrequired
longitudelon

longitude of the marker and center of the map

Example
-89.55158
Numberrequired
zoomzoom

Zoom setting of the map view

Default
12
Example
16
Numbersuggested
tile layer (map style)layers

For optional selection of an alternative tile layer (C=CycleMap/H=Humanitarian/O=ÖPNVKarte/T=TransportMap/Y=CyclOSM)

Example
H
Linesuggested
texttext

For a free text that will be shown as link.

Example
This is the Route 66.
Lineoptional
namename

Name of the linked target on the map that is shown behind the default link text ''Browse map of''.

Example
Route 66
Linesuggested

Translation

The default words that are put in front of name ( "Browse map of" ) are taken from Template:PlaceLang.

There is an automatic translation into the page's language if the translation exists in Template:PlaceLang.

See also