Better handling of GPX-state

This commit is contained in:
Pieter Vander Vennet 2021-11-12 04:11:53 +01:00
parent 519feaa54b
commit a37a7462a2
17 changed files with 585 additions and 412 deletions

View file

@ -189,7 +189,6 @@
"it": "Si tratta di un normale defibrillatore automatico o un defibrillatore manuale riservato ai professionisti?",
"de": "Ist dies ein normaler automatischer Defibrillator oder ein manueller Defibrillator nur für Profis?"
},
"condition": {
"and": [
"access=no"

View file

@ -0,0 +1,10 @@
{
"id": "gps_location_history",
"description": "Meta layer which contains the previous locations of the user as single points. This is mainly for technical reasons, e.g. to keep match the distance to the modified object",
"minzoom": 0,
"source": {
"osmTags": "user:location=yes",
"maxCacheAge": 604800
},
"mapRendering": null
}

View file

@ -1,27 +1,32 @@
{
"id": "gps_track",
"description": "Meta layer showing the previou locations of the user. Add this to your theme and override the icon to change the appearance of the current location.",
"description": "Meta layer showing the previous locations of the user as single line. Add this to your theme and override the icon to change the appearance of the current location.",
"minzoom": 0,
"source": {
"osmTags": "user:location=yes",
"osmTags": "id=location_track",
"maxCacheAge": 0
},
"#title": {
"title": {
"render": "Your travelled path"
},
"tagRenderings": [
{
"id": "Privacy notice",
"render": {
"en": "This is the path you've travelled since this website is opened. Don't worry - this is only visible to you and no one else. Your location data is never sent off-device."
"en": "This is the path you've travelled since this website is opened. Don't worry - this is only visible to you and no one else. Your location data is never sent off-device without your permission."
}
},
"export_as_gpx"
"export_as_gpx",
"minimap",
{
"id": "delete",
"render": "{clear_location_history()}"
}
],
"#name": "Your track",
"name": "Your track",
"mapRendering": [
{
"width": 0,
"width": 3,
"color": "#bb000077"
}
]