com.google.gwt.maps.client.maptypes
Interface MapType


public interface MapType

This interface defines map type. This interface is typically used for base maps such as road, satellite or hybrid maps. Immutable.

See MapType API Doc


Method Summary
 String getAlt()
          gets Alt text to display when this MapType's button is hovered over in the MapTypeControl.
 Element getTile(Point tileCoord, int zoom, Document ownerDocument)
          Returns a tile for the given tile coordinate (x, y) and zoom level.
 void releaseTile(Element tile)
          Releases the given tile, performing any necessary cleanup.
 void setAlt(String alt)
          sets Alt text to display when this MapType's button is hovered over in the MapTypeControl.
 void setMaxZoom(int maxZoom)
          sets The maximum zoom level for the map when displaying this MapType.
 void setMinZoom(int minZoom)
          sets The minimum zoom level for the map when displaying this MapType.
 void setName(String name)
          sets Name to display in the MapTypeControl.
 void setProjection(Projection projection)
          sets The Projection used to render this MapType.
 void setRadius(int radius)
          sets Radius of the planet for the map, in meters.
 void setTileSize(Size tileSize)
          sets The dimensions of each tile.
 

Method Detail

getTile

Element getTile(Point tileCoord,
                int zoom,
                Document ownerDocument)
Returns a tile for the given tile coordinate (x, y) and zoom level. This tile will be appended to the given ownerDocument.

Parameters:
tileCoord -
zoom -
ownerDocument -

releaseTile

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

Parameters:
tile -

setAlt

void setAlt(String alt)
sets Alt text to display when this MapType's button is hovered over in the MapTypeControl. Optional.

Parameters:
alt -

getAlt

String getAlt()
gets Alt text to display when this MapType's button is hovered over in the MapTypeControl. Optional.


setMaxZoom

void setMaxZoom(int maxZoom)
sets The maximum zoom level for the map when displaying this MapType. Required for base MapTypes, ignored for overlay MapTypes.

Parameters:
maxZoom -

setMinZoom

void setMinZoom(int minZoom)
sets The minimum zoom level for the map when displaying this MapType. Optional; defaults to 0.

Parameters:
minZoom -

setName

void setName(String name)
sets Name to display in the MapTypeControl. Optional.

Parameters:
name -

setProjection

void setProjection(Projection projection)
sets The Projection used to render this MapType. Optional; defaults to Mercator.

Parameters:
projection -

setRadius

void setRadius(int radius)
sets Radius of the planet for the map, in meters. Optional; defaults to Earth's equatorial radius of 6378137 meters.

Parameters:
radius -

setTileSize

void setTileSize(Size tileSize)
sets The dimensions of each tile. Required.

Parameters:
tileSize -


Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.