Fix note import layers

This commit is contained in:
Pieter Vander Vennet 2023-05-24 00:29:22 +02:00
parent 0a8164c378
commit 96dc751c8c
2 changed files with 16 additions and 1 deletions

View file

@ -71,7 +71,7 @@ export default class DynamicGeoJsonTileSource extends DynamicTileSource {
if (!isWhiteListed) {
console.debug(
"Not downloading tile",
zxy,
zxy,"for layer",layer.id,
"as it is not on the whitelist"
)
return undefined

View file

@ -101,6 +101,10 @@ export default class CreateNoteImportLayer extends Conversion<LayerConfigJson, L
geoJsonZoomLevel: 10,
maxCacheAge: 0,
},
/* We need to set 'pass_all_features'
There are probably many note_import-layers, and we don't want the first one to gobble up all notes and then discard them...
*/
passAllFeatures: true,
minzoom: Math.min(12, layerJson.minzoom - 2),
title: {
render: trs(t.popupTitle, { title }),
@ -170,6 +174,17 @@ export default class CreateNoteImportLayer extends Conversion<LayerConfigJson, L
id: "nearby_images",
render: tr(t.nearbyImagesIntro),
},
{
id:"all_tags",
render: "{all_tags()}",
metacondition: {
or: [
"__featureSwitchIsDebugging=true",
"mapcomplete-show_tags=full",
"mapcomplete-show_debug=yes",
],
},
}
],
mapRendering: [
{