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}]`) | ||||
|         }); | ||||
|          | ||||
|         // 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}); | ||||
|  | @ -117,6 +117,17 @@ export default class LayoutConfig { | |||
|                 layer.AddRoamingRenderings(r.r); | ||||
|             } | ||||
|         } | ||||
|          | ||||
|         for(const layer of this.layers) { | ||||
|             layer.AddRoamingRenderings( | ||||
|                 { | ||||
|                     titleIcons:[], | ||||
|                     iconOverlays: [], | ||||
|                     tagRenderings: this.roamingRenderings | ||||
|                 }   | ||||
|                  | ||||
|             ); | ||||
|         } | ||||
| 
 | ||||
|         this.clustering = { | ||||
|             maxZoom: 16, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue