forked from MapComplete/MapComplete
		
	Hide docking_station bicycle rentals on lower zoom to prevent them flooding the map
This commit is contained in:
		
							parent
							
								
									dd647715a8
								
							
						
					
					
						commit
						86351f30f4
					
				
					 3 changed files with 38 additions and 7 deletions
				
			
		| 
						 | 
					@ -2,7 +2,7 @@ import {Utils} from "../Utils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class Constants {
 | 
					export default class Constants {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public static vNumber = "0.16.3";
 | 
					    public static vNumber = "0.16.4";
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    public static ImgurApiKey = '7070e7167f0a25a'
 | 
					    public static ImgurApiKey = '7070e7167f0a25a'
 | 
				
			||||||
    public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85"
 | 
					    public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,11 +6,15 @@
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "source": {
 | 
					  "source": {
 | 
				
			||||||
    "osmTags": {
 | 
					    "osmTags": {
 | 
				
			||||||
      "or": [
 | 
					      "and": [
 | 
				
			||||||
        "amenity=bicycle_rental",
 | 
					        {
 | 
				
			||||||
        "bicycle_rental~*",
 | 
					          "or": [
 | 
				
			||||||
        "service:bicycle:rental=yes",
 | 
					            "amenity=bicycle_rental",
 | 
				
			||||||
        "rental~.*bicycle.*"
 | 
					            "bicycle_rental~*",
 | 
				
			||||||
 | 
					            "service:bicycle:rental=yes",
 | 
				
			||||||
 | 
					            "rental~.*bicycle.*"
 | 
				
			||||||
 | 
					          ]
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -203,7 +203,34 @@
 | 
				
			||||||
        "bike_repair_station-valves"
 | 
					        "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",
 | 
					      "builtin": "playground",
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue