Fixed broken roaming renderings, fix #216
This commit is contained in:
parent
c2d520c2e9
commit
cb42a4fcc5
|
@ -103,7 +103,7 @@ export default class LayoutConfig {
|
||||||
return new LayerConfig(layer, `${this.id}.layers[${i}]`)
|
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}[] = []
|
const roaming : {r, source: LayerConfig}[] = []
|
||||||
for (const layer of this.layers) {
|
for (const layer of this.layers) {
|
||||||
roaming.push({r: layer.GetRoamingRenderings(), source:layer});
|
roaming.push({r: layer.GetRoamingRenderings(), source:layer});
|
||||||
|
@ -117,6 +117,17 @@ export default class LayoutConfig {
|
||||||
layer.AddRoamingRenderings(r.r);
|
layer.AddRoamingRenderings(r.r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for(const layer of this.layers) {
|
||||||
|
layer.AddRoamingRenderings(
|
||||||
|
{
|
||||||
|
titleIcons:[],
|
||||||
|
iconOverlays: [],
|
||||||
|
tagRenderings: this.roamingRenderings
|
||||||
|
}
|
||||||
|
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
this.clustering = {
|
this.clustering = {
|
||||||
maxZoom: 16,
|
maxZoom: 16,
|
||||||
|
|
Loading…
Reference in a new issue