Hide docking_station bicycle rentals on lower zoom to prevent them flooding the map

This commit is contained in:
pietervdvn 2022-02-25 15:38:48 +01:00
parent dd647715a8
commit 86351f30f4
3 changed files with 38 additions and 7 deletions

View file

@ -2,7 +2,7 @@ import {Utils} from "../Utils";
export default class Constants {
public static vNumber = "0.16.3";
public static vNumber = "0.16.4";
public static ImgurApiKey = '7070e7167f0a25a'
public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85"

View file

@ -6,6 +6,8 @@
},
"source": {
"osmTags": {
"and": [
{
"or": [
"amenity=bicycle_rental",
"bicycle_rental~*",
@ -13,6 +15,8 @@
"rental~.*bicycle.*"
]
}
]
}
},
"minzoom": 12,
"title": {

View file

@ -203,7 +203,34 @@
"bike_repair_station-valves"
]
},
"bicycle_rental",
{
"builtin": [
"bicycle_rental"
],
"override": {
"id": "charging_station_non_docking",
"minzoom": 14,
"source": {
"osmTags": {
"and+": [
"bicycle_rental!=docking_station"
]
}
}
}
},
{
"#": "All bicycle rental at a high zoom level, to avoid duplicates",
"builtin": "bicycle_rental",
"override": {
"name": null,
"filter": {
"sameAs": "charging_station_non_docking"
},
"minzoom": 18
}
},
{
"builtin": "playground",
"override": {