Fixed broken roaming renderings, fix #216

This commit is contained in:
pietervdvn 2021-03-09 11:42:23 +01:00
parent c2d520c2e9
commit cb42a4fcc5

View file

@ -103,7 +103,7 @@ export default class LayoutConfig {
return new LayerConfig(layer, `${this.id}.layers[${i}]`)
});
// ALl the layers are constructed, let them share tags in piece now!
// ALl the layers are constructed, let them share tags in now!
const roaming : {r, source: LayerConfig}[] = []
for (const layer of this.layers) {
roaming.push({r: layer.GetRoamingRenderings(), source:layer});
@ -118,6 +118,17 @@ export default class LayoutConfig {
}
}
for(const layer of this.layers) {
layer.AddRoamingRenderings(
{
titleIcons:[],
iconOverlays: [],
tagRenderings: this.roamingRenderings
}
);
}
this.clustering = {
maxZoom: 16,
minNeededElements: 250