forked from MapComplete/MapComplete
		
	Merge develop
This commit is contained in:
		
						commit
						1010b159e5
					
				
					 87 changed files with 2292 additions and 718 deletions
				
			
		|  | @ -44,7 +44,6 @@ export default class Minimap extends BaseUIElement { | |||
|         const self = this; | ||||
|         // @ts-ignore
 | ||||
|         const resizeObserver = new ResizeObserver(_ => { | ||||
|             console.log("Change in size detected!") | ||||
|             self.InitMap(); | ||||
|             self.leafletMap?.data?.invalidateSize() | ||||
|         }); | ||||
|  | @ -53,7 +52,7 @@ export default class Minimap extends BaseUIElement { | |||
|         return wrapper; | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
|      | ||||
|     private InitMap() { | ||||
|         if (this._constructedHtmlElement === undefined) { | ||||
|             // This element isn't initialized yet
 | ||||
|  | @ -82,7 +81,9 @@ export default class Minimap extends BaseUIElement { | |||
|             scrollWheelZoom: this._allowMoving, | ||||
|             doubleClickZoom: this._allowMoving, | ||||
|             keyboard: this._allowMoving, | ||||
|             touchZoom: this._allowMoving | ||||
|             touchZoom: this._allowMoving, | ||||
|             zoomAnimation: this._allowMoving, | ||||
|             fadeAnimation: this._allowMoving | ||||
|         }); | ||||
| 
 | ||||
|         map.setMaxBounds( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue