forked from MapComplete/MapComplete
		
	Preparation for delete button
This commit is contained in:
		
							parent
							
								
									41341470db
								
							
						
					
					
						commit
						1cd4745c3a
					
				
					 8 changed files with 98 additions and 30 deletions
				
			
		|  | @ -190,15 +190,16 @@ export class FilteredLayer { | |||
|                 }); | ||||
| 
 | ||||
| 
 | ||||
|                 const uiElement = self._showOnPopup(eventSource); | ||||
|                 layer.bindPopup(uiElement.Render()); | ||||
|                 layer.on("click", function (e) { | ||||
|                     console.log("Selected ", feature) | ||||
|                     self._selectedElement.setData(feature.properties); | ||||
| 
 | ||||
|                     const uiElement = self._showOnPopup(eventSource); | ||||
|                     const popup = L.popup() | ||||
|                         .setContent(uiElement.Render()) | ||||
|                         .setLatLng(e.latlng) | ||||
|                         .openOn(self._map.map); | ||||
|                     uiElement.Update(); | ||||
|                     uiElement.Activate(); | ||||
| 
 | ||||
|                     L.DomEvent.stop(e); // Marks the event as consumed
 | ||||
| 
 | ||||
|                 }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue