forked from MapComplete/MapComplete
Merge upload GPX-tracks to OSM; split 'specialVisualisations' into multiple smaller classes
This commit is contained in:
commit
8d304f9a56
37 changed files with 1459 additions and 1057 deletions
|
@ -11,7 +11,7 @@
|
|||
"mapRendering": [
|
||||
{
|
||||
"icon": {
|
||||
"render":"crosshair:var(--catch-detail-color)",
|
||||
"render": "crosshair:var(--catch-detail-color)",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "speed>2",
|
||||
|
@ -22,12 +22,17 @@
|
|||
"iconSize": "40,40,center",
|
||||
"rotation": {
|
||||
"render": "0deg",
|
||||
"mappings": [{
|
||||
"if": {
|
||||
"and":["speed>2","heading!=NaN"]
|
||||
},
|
||||
"then": "{heading}deg"
|
||||
}]
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"speed>2",
|
||||
"heading!=NaN"
|
||||
]
|
||||
},
|
||||
"then": "{heading}deg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"location": [
|
||||
"point",
|
||||
|
@ -35,4 +40,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,11 +1,22 @@
|
|||
{
|
||||
"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,
|
||||
"minzoom": 1,
|
||||
"name": null,
|
||||
"source": {
|
||||
"osmTags": "user:location=yes",
|
||||
"#": "Cache is disabled here as these points are kept seperately",
|
||||
"maxCacheAge": 0
|
||||
},
|
||||
"mapRendering": null
|
||||
"shownByDefault": false,
|
||||
"mapRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"icon": "square:red",
|
||||
"iconSize": "5,5,center"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"id": "gps_track",
|
||||
"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.",
|
||||
"description": "Meta layer showing the previous locations of the user as single line with controls, e.g. to erase, upload or download this track. Add this to your theme and override the maprendering to change the appearance of the travelled track.",
|
||||
"minzoom": 0,
|
||||
"source": {
|
||||
"osmTags": "id=location_track",
|
||||
|
@ -22,6 +22,7 @@
|
|||
},
|
||||
"export_as_gpx",
|
||||
"export_as_geojson",
|
||||
"{upload_to_osm()}",
|
||||
"minimap",
|
||||
{
|
||||
"id": "delete",
|
||||
|
|
|
@ -270,4 +270,4 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue