mapcomplete/assets/layers/gps_location/gps_location.json

72 lines
1.7 KiB
JSON
Raw Normal View History

{
2021-11-07 15:44:22 +01:00
"id": "gps_location",
"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) (except latitude and longitude) returned by the browser, such as `speed`, `altitude`, `heading`, ....",
2023-03-24 19:21:15 +01:00
"source": "special",
"minzoom": 0,
2023-09-19 14:04:13 +02:00
"pointRendering": [
2021-11-07 15:44:22 +01:00
{
"marker": [
{
"color": "--catch-detail-color",
"icon": {
"render": "crosshair",
"mappings": [
{
"if": "speed>2",
"then": "gps_arrow"
}
]
2022-10-25 19:38:42 +02:00
}
}
],
"iconSize": "40,40",
2023-03-25 02:48:24 +01:00
"pitchAlignment": "map",
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"
],
"anchor": "center"
},
{
"marker": [
{
"color": "--catch-detail-color",
"icon": "direction"
}
],
"iconSize": {
"render": "0,0",
"mappings": [
{
"if": "alpha~*",
"then": "40,40"
}
]
},
"pitchAlignment": "map",
"rotation": "{alpha}deg",
"location": [
"point",
"centroid"
],
"anchor": "center"
2021-11-07 15:44:22 +01:00
}
2023-09-19 14:04:13 +02:00
],
"lineRendering": [],
"allowMove": false
2023-05-08 01:53:51 +02:00
}