mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mapwidget.qml: remove some redundant "map." references
Inside the Map object, properties can be referenced directly. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
		
							parent
							
								
									a8f6c99fc0
								
							
						
					
					
						commit
						3e3b4baee2
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -30,7 +30,7 @@ Item { | |||
| 		property var newZoom: 1.0 | ||||
| 
 | ||||
| 		Component.onCompleted: { | ||||
| 			map.activeMapType = map.supportedMapTypes[esriMapTypeIndexes.SATELLITE] | ||||
| 			activeMapType = supportedMapTypes[esriMapTypeIndexes.SATELLITE] | ||||
| 		} | ||||
| 
 | ||||
| 		MapItemView { | ||||
|  | @ -88,14 +88,14 @@ Item { | |||
| 		} | ||||
| 
 | ||||
| 		function animateMapTo(coord, zoom) { | ||||
| 			map.newCenter = coord | ||||
| 			map.newZoom = zoom | ||||
| 			newCenter = coord | ||||
| 			newZoom = zoom | ||||
| 			mapAnimation.restart() | ||||
| 		} | ||||
| 
 | ||||
| 		function centerOnMapLocation(mapLocation) { | ||||
| 			map.zoomLevel = map.defaultZoomOut | ||||
| 			animateMapTo(mapLocation.coordinate, map.defaultZoomIn); | ||||
| 			zoomLevel = defaultZoomOut | ||||
| 			animateMapTo(mapLocation.coordinate, defaultZoomIn); | ||||
| 			mapHelper.model.selectedUuid = mapLocation.uuid | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue