mapcomplete/Docs/Layers/gps_location.md

52 lines
1.3 KiB
Markdown
Raw Normal View History

2022-01-14 19:36:36 +01:00
gps_location
==============
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.
## Table of contents
1. [gps_location](#gps_location)
- [Basic tags for this layer](#basic-tags-for-this-layer)
- [Supported attributes](#supported-attributes)
- 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`
[Go to the source code](../assets/layers/gps_location/gps_location.json)
Basic tags for this layer
---------------------------
Elements must have the all of following tags to be shown on this layer:
- <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>
Supported attributes
----------------------
This document is autogenerated from assets/layers/gps_location/gps_location.json