forked from MapComplete/MapComplete
		
	Feature: automatically move the camera towards the object in 360° view
This commit is contained in:
		
							parent
							
								
									01ba98a820
								
							
						
					
					
						commit
						fc33d755b6
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -149,7 +149,8 @@ | |||
|     type: "Feature", | ||||
|     geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) }, | ||||
|     properties: { | ||||
|       name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt | ||||
|       name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt, | ||||
|       focus: true | ||||
|     } | ||||
|   } | ||||
|   ] | ||||
|  |  | |||
|  | @ -60,6 +60,9 @@ export class PhotoSphereViewerWrapper { | |||
|                 yaw: (yaw - northOffs) % 360, | ||||
|                 text: f.properties.name | ||||
|             }) | ||||
|             if (f.properties.focus) { | ||||
|                 this.viewer.setYaw(yaw - northOffs) | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue