forked from MapComplete/MapComplete
		
	Enable caching, add different background
This commit is contained in:
		
							parent
							
								
									9b2e93ddb0
								
							
						
					
					
						commit
						2c9f737cbd
					
				
					 2 changed files with 51 additions and 4 deletions
				
			
		| 
						 | 
					@ -608,7 +608,9 @@
 | 
				
			||||||
    "sources": []
 | 
					    "sources": []
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    "authors": ["Hannah Declerck"],
 | 
					    "authors": [
 | 
				
			||||||
 | 
					      "Hannah Declerck"
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
    "path": "filter.svg",
 | 
					    "path": "filter.svg",
 | 
				
			||||||
    "license": "CC0",
 | 
					    "license": "CC0",
 | 
				
			||||||
    "sources": []
 | 
					    "sources": []
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,6 +24,7 @@
 | 
				
			||||||
  "startZoom": 12,
 | 
					  "startZoom": 12,
 | 
				
			||||||
  "widenFactor": 0.05,
 | 
					  "widenFactor": 0.05,
 | 
				
			||||||
  "socialImage": "",
 | 
					  "socialImage": "",
 | 
				
			||||||
 | 
					  "defaultBackgroundId": "CartoDB.Positron",
 | 
				
			||||||
  "layers": [
 | 
					  "layers": [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "builtin": [
 | 
					      "builtin": [
 | 
				
			||||||
| 
						 | 
					@ -35,7 +36,10 @@
 | 
				
			||||||
            "+and": [
 | 
					            "+and": [
 | 
				
			||||||
              "operator~.*[nN]atuurpunt.*"
 | 
					              "operator~.*[nN]atuurpunt.*"
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
          }
 | 
					          },
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "minzoom": "8",
 | 
					        "minzoom": "8",
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
| 
						 | 
					@ -53,7 +57,10 @@
 | 
				
			||||||
            "+and": [
 | 
					            "+and": [
 | 
				
			||||||
              "operator~.*[nN]atuurpunt.*"
 | 
					              "operator~.*[nN]atuurpunt.*"
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
          }
 | 
					          },
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "minzoom": "8",
 | 
					        "minzoom": "8",
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
| 
						 | 
					@ -71,7 +78,10 @@
 | 
				
			||||||
            "+and": [
 | 
					            "+and": [
 | 
				
			||||||
              "operator~.*[nN]atuurpunt.*"
 | 
					              "operator~.*[nN]atuurpunt.*"
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
          }
 | 
					          },
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "minzoom": "13",
 | 
					        "minzoom": "13",
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
| 
						 | 
					@ -95,6 +105,11 @@
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
        "minzoom": "15",
 | 
					        "minzoom": "15",
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
          "render": "circle:#FE6F32;./assets/themes/natuurpunt/toilets.svg",
 | 
					          "render": "circle:#FE6F32;./assets/themes/natuurpunt/toilets.svg",
 | 
				
			||||||
          "mappings": [
 | 
					          "mappings": [
 | 
				
			||||||
| 
						 | 
					@ -116,6 +131,11 @@
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
        "minzoom": "15",
 | 
					        "minzoom": "15",
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
          "render": "circle:#FE6F32;./assets/themes/natuurpunt/birdhide.svg"
 | 
					          "render": "circle:#FE6F32;./assets/themes/natuurpunt/birdhide.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -127,6 +147,11 @@
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
        "minzoom": "16",
 | 
					        "minzoom": "16",
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
          "render": "circle:#FE6F32;./assets/themes/natuurpunt/picnic_table.svg"
 | 
					          "render": "circle:#FE6F32;./assets/themes/natuurpunt/picnic_table.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -138,6 +163,11 @@
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
        "minzoom": "16",
 | 
					        "minzoom": "16",
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
          "render": "circle:#FE6F32;./assets/themes/natuurpunt/drips.svg"
 | 
					          "render": "circle:#FE6F32;./assets/themes/natuurpunt/drips.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -160,6 +190,11 @@
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
        "minzoom": "18",
 | 
					        "minzoom": "18",
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
          "render": "circle:#FE6F32;./assets/themes/natuurpunt/watermill.svg"
 | 
					          "render": "circle:#FE6F32;./assets/themes/natuurpunt/watermill.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -171,6 +206,11 @@
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
        "minzoom": "18",
 | 
					        "minzoom": "18",
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
          "render": "circle:#FE6F32;./assets/themes/natuurpunt/parking.svg"
 | 
					          "render": "circle:#FE6F32;./assets/themes/natuurpunt/parking.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					@ -182,6 +222,11 @@
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "override": {
 | 
					      "override": {
 | 
				
			||||||
        "minzoom": "18",
 | 
					        "minzoom": "18",
 | 
				
			||||||
 | 
					        "source": {
 | 
				
			||||||
 | 
					          "geoJson": "https://pietervdvn.github.io/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
 | 
				
			||||||
 | 
					          "geoJsonZoomLevel": 12,
 | 
				
			||||||
 | 
					          "isOsmCache": true
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "icon": {
 | 
					        "icon": {
 | 
				
			||||||
          "render": "circle:#FE6F32;./assets/themes/natuurpunt/information_board.svg"
 | 
					          "render": "circle:#FE6F32;./assets/themes/natuurpunt/information_board.svg"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue