mapcomplete/assets/layers/gps_location/gps_location.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
JSON
Raw Normal View History

{
2021-11-07 15:44:22 +01:00
"id": "gps_location",
2021-11-08 02:36:01 +01:00
"description": "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.",
2021-11-07 15:44:22 +01:00
"minzoom": 0,
"source": {
2021-11-08 14:18:45 +01:00
"osmTags": "id=gps",
"maxCacheAge": 0
2021-11-07 15:44:22 +01:00
},
"mapRendering": [
{
2022-10-25 19:38:42 +02:00
"icon": {
"render": "crosshair:var(--catch-detail-color)",
2022-10-25 19:38:42 +02:00
"mappings": [
{
"if": "speed>2",
"then": "gps_arrow"
}
]
},
2021-11-07 15:44:22 +01:00
"iconSize": "40,40,center",
2022-10-25 19:38:42 +02:00
"rotation": {
"render": "0deg",
"mappings": [
{
"if": {
"and": [
"speed>2",
"heading!=NaN"
]
},
"then": "{heading}deg"
}
]
2022-10-25 19:38:42 +02:00
},
2021-11-09 19:45:26 +01:00
"location": [
"point",
"centroid"
]
2021-11-07 15:44:22 +01:00
}
]
2022-11-14 01:28:41 +01:00
}