![]() The tilt angle is always calculated from this perpendicular axis. Look at the illustration below to see the available camera axes.Ī tilt value of 0° means that the camera's optical axis is perpendicular to the ground. Here we show the effect of changing the tilt value. In addition to the tilt value of the camera, the camera's bearing angle (see above) can be manipulated. By default, the camera is not tilted (tilt = 0°). The camera can also be used to transform the flat 2D map surface to a 3D perspective to see, for example, roads at a greater distance that may appear towards the horizon. lookAt ( new GeoCoordinates ( 52.373556, 13.114358 ), orientation, distanceInMeters ) Įffectively, for the viewer this lets the map appear rotated by 90° to the left. OrientationUpdate (bearingInDegress, tiltInDegress ) double distanceInMeters = 1000 * 7 OrientationUpdate orientation = new MapCamera. ![]() The following code rotates the camera by 90°: double bearingInDegress = 90 double tiltInDegress = 0 MapCamera. Note that the bearing axis is always perpendicular to the ground and passes through the camera, regardless of the current camera orientation. ![]() However, this will not always be the true North direction (bearing = 0°). Apparently, it is easier to orient yourself if the map's top edge points in the direction in which you want to go. This is similar to holding and rotating a paper map while hiking in a certain direction. By setting a bearing angle of 45°, as visualized in the illustration above, the map appears to the camera's eye as it rotates counter-clockwise and the direction of the bearing becomes the new upward direction on your map, pointing to the top edge of your device. 'Bearing' is a navigation term, counted in degrees, from the North in a clockwise direction.īy default, the camera has a bearing value of 0° degrees. ![]() The orientation of the map is usually specified by a bearing angle. By changing the bearing parameter of the MapCamera.OrientationUpdate(), you will have the same effect as when rotating the map. With the camera, you cannot rotate the map directly, but change the camera's orientation instead. This means that on your device, the top edge is pointing to the north of the map. From a bird's eye view looking straight-down, the map is oriented North-up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |