The following map types are supported in Google Maps API:
The map type is specified either within the Map properties object, with the mapTypeId property:
var mapOptions = {
center:new google.maps.LatLng(51.508742,-0.120850),
zoom:7,
mapTypeId: google.maps.MapTypeId.HYBRID
};
Or by calling the map's setMapTypeId() method:
map.setMapTypeId(google.maps.MapTypeId.HYBRID);
The map types SATELLITE and HYBRID support a 45° perspective imagery view for certain locations (only at high zoom levels).
If you zoom into a location with 45° imagery view, the map will automatically alter the perspective view. In addition, the map will add:
Note: Zooming out from a map with 45° imagery will revert each of these changes, and the original map is displayed.
The following example shows a 45° perspective view of Palazzo Ducale in Venice, Italy:
var mapOptions = {
center:myCenter,
zoom:18,
mapTypeId:google.maps.MapTypeId.HYBRID
};
You can disable 45° perspective view by calling setTilt(0) on the Map object:
map.setTilt(0);
Tip: To enable 45° perspective view at a later point, call setTilt(45).
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!