forked from MapComplete/MapComplete
Add gps track line, add documentation
This commit is contained in:
parent
7b7076168f
commit
d3d51af667
18 changed files with 278 additions and 145 deletions
|
@ -3,7 +3,8 @@
|
|||
"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.",
|
||||
"minzoom": 0,
|
||||
"source": {
|
||||
"osmTags": "user:location=yes"
|
||||
"osmTags": "id=gps",
|
||||
"maxCacheAge": 0
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
|
|
21
assets/layers/gps_track/gps_track.json
Normal file
21
assets/layers/gps_track/gps_track.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"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.",
|
||||
"minzoom": 0,
|
||||
"source": {
|
||||
"osmTags": "user:location=yes",
|
||||
"maxCacheAge": 0
|
||||
},
|
||||
"name": "Your track",
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:#f00",
|
||||
"iconSize": "2,2,center",
|
||||
"location": "point"
|
||||
},
|
||||
{
|
||||
"width": 3,
|
||||
"color": "#bb000077"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -3,7 +3,8 @@
|
|||
"description": "Meta layer showing the home location of the user. The home location can be set in the [profile settings](https://www.openstreetmap.org/profile/edit) of OpenStreetMap.",
|
||||
"minzoom": 0,
|
||||
"source": {
|
||||
"osmTags": "user:home=yes"
|
||||
"osmTags": "user:home=yes",
|
||||
"maxCacheAge": 0
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
|
|
|
@ -471,12 +471,6 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"iconBadges": [
|
||||
{
|
||||
"if": "opening_hours~*",
|
||||
"then": "isOpen"
|
||||
}
|
||||
],
|
||||
"filter": [
|
||||
{
|
||||
"id": "is_open",
|
||||
|
@ -574,6 +568,12 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"iconBadges": [
|
||||
{
|
||||
"if": "opening_hours~*",
|
||||
"then": "isOpen"
|
||||
}
|
||||
],
|
||||
"location": [
|
||||
"point"
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue