forked from MapComplete/MapComplete
		
	Add custom generator link in morescreen, fix #95
This commit is contained in:
		
							parent
							
								
									1625b21138
								
							
						
					
					
						commit
						5d1754bcd6
					
				
					 10 changed files with 147 additions and 30 deletions
				
			
		|  | @ -227,7 +227,10 @@ export class FilteredLayer { | |||
|                 // We monky-patch the feature element with an update-style
 | ||||
|                 feature.updateStyle = () => { | ||||
|                     if (layer.setIcon) { | ||||
|                         layer.setIcon(L.icon(self._style(feature.properties).icon)) | ||||
|                         const icon = self._style(feature.properties).icon; | ||||
|                         if (icon.iconUrl) { | ||||
|                             layer.setIcon(L.icon(icon)) | ||||
|                         } | ||||
|                     } else { | ||||
|                         self._geolayer.setStyle(function (featureX) { | ||||
|                             const style = self._style(featureX.properties); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue