google.maps.MapType
interface
This interface defines the map type, and is typically used for custom map types. Immutable.
| Methods | |
|---|---|
getTile |
getTile(tileCoord, zoom, ownerDocument)Parameters:
Return Value:
NodeReturns a tile for the given tile coordinate (x, y) and zoom level. This tile will be appended to the given ownerDocument. Not available for base map types. |
releaseTile |
releaseTile(tile)Parameters:
Return Value: None
Releases the given tile, performing any necessary cleanup. The provided tile will have already been removed from the document. Optional. |
| Properties | |
|---|---|
alt |
Type:
string optionalAlt text to display when this MapType's button is hovered over in the MapTypeControl. Optional. |
maxZoom |
Type:
numberThe maximum zoom level for the map when displaying this MapType. Required for base MapTypes, ignored for overlay MapTypes. |
minZoom |
Type:
numberThe minimum zoom level for the map when displaying this MapType. Optional; defaults to 0. |
name |
Type:
string optionalName to display in the MapTypeControl. Optional. |
projection |
Type:
Projection optionalThe Projection used to render this MapType. Optional; defaults to Mercator. |
radius |
Type:
numberRadius of the planet for the map, in meters. Optional; defaults to Earth's equatorial radius of 6378137 meters. |
tileSize |
Type:
SizeThe dimensions of each tile. Required. |