|
|
|
|
|
- Angle and zoom
- What is the nadir?
- Changing the tilt angle
Tilt (Property) In french: AngleInclinaison
The Tilt property gets or sets the tilt of the map displayed in a Map control. Warning: the tilt angle can only be changed if the following conditions are met: - the map is displayed in satellite mode with a sufficient zoom level,
- the map returned by Google includes the rotate and tilt buttons in the lower right corner.
Syntax <Result>: Real Tilt of the map in degrees from the nadir. <Map control>: Control name Name of the Map control used. <Map control>: Control name Name of the Map control used. <New angle>: Real New tilt of the map in degrees from the nadir. Remarks Angle and zoom The minimum angle is 0 (top view in 2D) and the maximum angle is limited according to the zoom level: - zoom < 10: maximum angle = 30 degrees.
- The maximum increases linearly from 30 to 45 degrees when 10 <= zoom <= 14..
- 14 <= zoom <= 15.5: the maximum increases linearly from 45 to 67.5 degrees.
- zoom > 15: max = 67.5 degrees.
The angle will be automatically adjusted when the zoom level is changed. What is the nadir? The nadir is the point of the celestial sphere represented by a descending vertical direction, i.e., the point of the celestial sphere "below" a particular location. It is the opposite of the zenith. Changing the tilt angle - The Tilt property allows you to change the tilt angle only in "satellite" mode for certain areas with a sufficient level of detail and zoom: the tilt button must appear on the map.. The bearing can be changed only if the tilt is set to 45.
- To change the bearing or tilt, wait until the map has been loaded in the right position, in satellite mode and with a sufficient zoom level.
- The following code will only work in the page load code. It cannot be used in the click code of a Button control, for example. This would imply trying to change the tilt and bearing before the map loads the necessary parameters:
pb is geoPosition
pb.Latitude = 49.4295387
pb.Longitude = 2.0807123
MapDisplayPosition(MAP_MyMap, pb)
MAP_MyMap.MapMode = mapModeSatellite
MAP_MyMap.Zoom = 18
MAP_MyMap.Tilt = 45
MAP_MyMap.Bearing = 90
- To change the position, mode, zoom, tilt and angle in the click code of a Button control, you must defer the tilt and bearing changes. For example:
pb is geoPosition
pb.Latitude = 49.4295387
pb.Longitude = 2.0807123
MapDisplayPosition(MAP_MyMap, pb)
MAP_MyMap.MapMode = mapModeSatellite
MAP_MyMap.Zoom = 18
nTimer is int = Timer(Timer_Callback, 10)
INTERNAL PROCEDURE Timer_Callback()
MAP_MyMap.Tilt = 45
MAP_MyMap.Bearing = 180
EndTimer(nTimer)
END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|