Skip to content

Latest commit

 

History

History
80 lines (42 loc) · 2.02 KB

MapType.md

File metadata and controls

80 lines (42 loc) · 2.02 KB

See html formatted version

MapType interface

google.maps.MapType interface

This interface defines the map type, and is typically used for custom map types. Immutable.

Methods

undefined

getTile(tileCoord, zoom, ownerDocument)

Parameters: 

  • tileCoord:  Point
  • zoom:  number
  • ownerDocument:  Document

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.

undefined

releaseTile(tile)

Parameters: 

  • tile:  Node

Return Value:  None

Releases the given tile, performing any necessary cleanup. The provided tile will have already been removed from the document. Optional.

Properties

undefined

Type:  string optional

Alt text to display when this MapType's button is hovered over in the MapTypeControl. Optional.

undefined

Type:  number

The maximum zoom level for the map when displaying this MapType. Required for base MapTypes, ignored for overlay MapTypes.

undefined

Type:  number

The minimum zoom level for the map when displaying this MapType. Optional; defaults to 0.

undefined

Type:  string optional

Name to display in the MapTypeControl. Optional.

undefined

Type:  Projection optional

The Projection used to render this MapType. Optional; defaults to Mercator.

undefined

Type:  number

Radius of the planet for the map, in meters. Optional; defaults to Earth's equatorial radius of 6378137 meters.

undefined

Type:  Size

The dimensions of each tile. Required.