Quickfix: disable optimazation which blocks loading dynamic tiles

This commit is contained in:
pietervdvn 2021-10-12 16:39:36 +02:00
parent e67c3a2eec
commit e530eba55a
3 changed files with 6 additions and 2 deletions

View file

@ -46,7 +46,8 @@ export default class DynamicGeoJsonTileSource extends DynamicTileSource {
if(whitelist !== undefined){ if(whitelist !== undefined){
const isWhiteListed = whitelist.get(zxy[1])?.has(zxy[2]) const isWhiteListed = whitelist.get(zxy[1])?.has(zxy[2])
if(!isWhiteListed){ if(!isWhiteListed){
return undefined; console.log("Not whitelisted:",zxy, isWhiteListed, whitelist)
// return undefined;
} }
} }

View file

@ -34,7 +34,7 @@
"hideFromOverview": true, "hideFromOverview": true,
"clustering": { "clustering": {
"#": "Disable clustering for this theme", "#": "Disable clustering for this theme",
"maxZoom": 0 "maxZoom": 1
}, },
"layers": [ "layers": [
{ {

View file

@ -63,6 +63,9 @@ if (path !== "index.html" && path !== "") {
defaultLayout = QueryParameters.GetQueryParameter("layout", defaultLayout, "The layout to load into MapComplete").data; defaultLayout = QueryParameters.GetQueryParameter("layout", defaultLayout, "The layout to load into MapComplete").data;
let layoutToUse: LayoutConfig = AllKnownLayouts.allKnownLayouts.get(defaultLayout.toLowerCase()); let layoutToUse: LayoutConfig = AllKnownLayouts.allKnownLayouts.get(defaultLayout.toLowerCase());
if(layoutToUse.id === "natuurpunt"){
localStorage.clear()
}
const userLayoutParam = QueryParameters.GetQueryParameter("userlayout", "false", "If not 'false', a custom (non-official) theme is loaded. This custom layout can be done in multiple ways: \n\n- The hash of the URL contains a base64-encoded .json-file containing the theme definition\n- The hash of the URL contains a lz-compressed .json-file, as generated by the custom theme generator\n- The parameter itself is an URL, in which case that URL will be downloaded. It should point to a .json of a theme"); const userLayoutParam = QueryParameters.GetQueryParameter("userlayout", "false", "If not 'false', a custom (non-official) theme is loaded. This custom layout can be done in multiple ways: \n\n- The hash of the URL contains a base64-encoded .json-file containing the theme definition\n- The hash of the URL contains a lz-compressed .json-file, as generated by the custom theme generator\n- The parameter itself is an URL, in which case that URL will be downloaded. It should point to a .json of a theme");