forked from MapComplete/MapComplete
		
	Fixed broken roaming renderings, fix #216
This commit is contained in:
		
							parent
							
								
									c2d520c2e9
								
							
						
					
					
						commit
						cb42a4fcc5
					
				
					 1 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
					@ -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});
 | 
				
			||||||
| 
						 | 
					@ -118,6 +118,17 @@ export default class LayoutConfig {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					        for(const layer of this.layers) {
 | 
				
			||||||
 | 
					            layer.AddRoamingRenderings(
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    titleIcons:[],
 | 
				
			||||||
 | 
					                    iconOverlays: [],
 | 
				
			||||||
 | 
					                    tagRenderings: this.roamingRenderings
 | 
				
			||||||
 | 
					                }  
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.clustering = {
 | 
					        this.clustering = {
 | 
				
			||||||
            maxZoom: 16,
 | 
					            maxZoom: 16,
 | 
				
			||||||
            minNeededElements: 250
 | 
					            minNeededElements: 250
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue