Google Maps Type
HYBRID type Google Maps:
Google Maps - Basic Map Types
Google Maps API provides the following map types:
MapTypeId.ROADMAP
, for displaying the default road map viewMapTypeId.SATELLITE
, for displaying Google Earth satellite imagesMapTypeId.HYBRID
, for displaying a combination of normal and satellite viewsMapTypeId.TERRAIN
, for displaying maps with terrain information.
To modify the map type being used via the Map, you can set its mapTypeId property:
Or dynamically modify mapTypeId:
Google Maps - 45° Imagery
Google Maps API supports special 45° imagery for certain locations.
These high-resolution images provide perspective views in all four cardinal directions (north, south, east, west). For supported map types, these images are also available at higher zoom levels.
The existing google.maps.MapTypeId.SATELLITE and google.maps.MapTypeId.HYBRID map types support 45° perspective images at high zoom levels, if available. If you zoom in on a location that has such imagery, these map types will automatically change their view in the following ways:
- **Any existing pan controls on the map will be replaced with a compass wheel around the existing navigation controls. You can change the direction of any 45° images by dragging the compass wheel and aligning it with the nearest supported direction containing images.
- **A rotation control will intermittently display between the existing pan and zoom controls, allowing the image to be rotated around the supported directions. The rotation control only supports clockwise rotation.
- A 45° perspective image centered on the current location will replace the satellite or hybrid image. By default, such views will face north. If you zoom out, the map will revert to displaying the default satellite or hybrid image.
- The MapType control will enable a submenu toggle control to display 45° images.
Note: Zooming out on a map type displaying 45° images will revert all changes and reconstruct the original map type.
The following example shows a 45° view of the Doge's Palace in Venice, Italy:
Example
var mapProp = {
center: myCenter,
zoom: 18,
mapTypeId: google.maps.MapTypeId.HYBRID
};
Tip: Google is continuously adding 45° imagery for more cities. For the latest information, see the 45° images on Google Maps list.
Google Maps - Enabling and Disabling 45° Imagery - setTilt(0)
You can disable 45° imagery by calling setTilt(0) on the Map object. To enable 45° perspective imagery for supported map types, call setTilt(45).