Template:BrowseObjectWithMarker

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

Usage

{{BrowseObjectWithMarker|objecttype|objectID|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.


For example, if you want to point at a specific location on the River Saar, you can do so as

{{BrowseObjectWithMarker|relation|390393|lat=49.5013947|lon=6.5454511|zoom=15|name=Saarschleife}}
and you'll get: Browse map of Saarschleife 49°30′05.02″ N, 6°32′43.62″ E

If you do
{{BrowseObjectWithMarker|relation|390393|lat=49.5013947|lon=6.5454511|zoom=15|text=This is the Saarschleife.}}
you'll get: 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 BrowseObjectWithMarker

Displays a link to a map object with marker icon on OSM.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

type of object (node/way/relation)

Example
way
Linerequired
ID2

ID no. of the OSM object

Example
123456789
Numberrequired
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 texg ''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