mapcomplete/Docs/Layers/gps_location.md

44 lines
1.3 KiB
Markdown
Raw Normal View History

2022-01-26 21:40:38 +01:00
gps_location
2022-01-14 19:36:36 +01:00
==============
2022-01-26 21:40:38 +01:00
Meta layer showing the current location of the user. Add this to your theme and override the icon to change the
appearance of the current location. The object will always have `id=gps` and will have _all_ the properties included in
the [`Coordinates`-object](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates) returned by the
browser.
2022-01-14 19:36:36 +01:00
## Table of contents
1. [gps_location](#gps_location)
2022-01-26 21:40:38 +01:00
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
2022-01-14 19:36:36 +01:00
2022-01-26 21:40:38 +01:00
- This layer cannot be toggled in the filter view. If you import this layer in your theme, override `title` to make this
toggleable.
- Not visible in the layer selection by default. If you want to make this layer toggable, override `name`
2022-01-14 19:36:36 +01:00
[Go to the source code](../assets/layers/gps_location/gps_location.json)
2022-01-26 21:40:38 +01:00
Basic tags for this layer
2022-01-14 19:36:36 +01:00
---------------------------
Elements must have the all of following tags to be shown on this layer:
2022-01-26 21:40:38 +01:00
- <a href='https://wiki.openstreetmap.org/wiki/Key:id' target='_blank'>id</a>
=<a href='https://wiki.openstreetmap.org/wiki/Tag:id%3Dgps' target='_blank'>gps</a>
2022-01-14 19:36:36 +01:00
2022-01-26 21:40:38 +01:00
Supported attributes
2022-01-14 19:36:36 +01:00
----------------------
2022-01-26 21:40:38 +01:00
2022-01-14 19:36:36 +01:00
This document is autogenerated from assets/layers/gps_location/gps_location.json