Skip to content

Latest commit

 

History

History
77 lines (76 loc) · 4.19 KB

MapType.md

File metadata and controls

77 lines (76 loc) · 4.19 KB

MapType interface

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: 
  • tileCoordPoint
  • zoomnumber
  • ownerDocumentDocument
Return Value:  Node
Returns 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: 
  • tileNode
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
Alt text to display when this MapType's button is hovered over in the MapTypeControl. Optional.
maxZoom
Type:  number
The maximum zoom level for the map when displaying this MapType. Required for base MapTypes, ignored for overlay MapTypes.
minZoom
Type:  number
The minimum zoom level for the map when displaying this MapType. Optional; defaults to 0.
name
Type:  string
Name to display in the MapTypeControl. Optional.
projection
Type:  Projection
The Projection used to render this MapType. Optional; defaults to Mercator.
radius
Type:  number
Radius of the planet for the map, in meters. Optional; defaults to Earth's equatorial radius of 6378137 meters.
tileSize
Type:  Size
The dimensions of each tile. Required.
<script src="replace_links.js"></script>