forked from MapComplete/MapComplete
		
	Refactoring of GPS-location (uses featureSource too now), factoring out state, add ReplaceGeometryAction and conflation example
This commit is contained in:
		
							parent
							
								
									1db54f3c8e
								
							
						
					
					
						commit
						2484848cd6
					
				
					 37 changed files with 1035 additions and 467 deletions
				
			
		|  | @ -9,6 +9,7 @@ import {Map} from "leaflet"; | |||
| import Minimap, {MinimapObj, MinimapOptions} from "./Minimap"; | ||||
| import {BBox} from "../../Logic/BBox"; | ||||
| import 'leaflet-polylineoffset' | ||||
| import {SimpleMapScreenshoter} from "leaflet-simple-map-screenshoter"; | ||||
| 
 | ||||
| export default class MinimapImplementation extends BaseUIElement implements MinimapObj { | ||||
|     private static _nextId = 0; | ||||
|  | @ -278,4 +279,10 @@ export default class MinimapImplementation extends BaseUIElement implements Mini | |||
| 
 | ||||
|         this.leafletMap.setData(map) | ||||
|     } | ||||
|      | ||||
|     public async TakeScreenshot(){ | ||||
|         const screenshotter = new SimpleMapScreenshoter(); | ||||
|         screenshotter.addTo(this.leafletMap.data); | ||||
|         return await screenshotter.takeScreen('image') | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue