com.google.gwt.maps.client.maptypes
Class ImageMapTypeOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.maptypes.ImageMapTypeOptions

public class ImageMapTypeOptions
extends JavaScriptObject

This class is used to create a MapType that renders image tiles.

See ImageMapTypeOptions API Doc


Constructor Summary
protected ImageMapTypeOptions()
          use newInstance();
 
Method Summary
 String getAlt()
          get Alt text to display when this MapType's button is hovered over in the MapTypeControl.
 int getMaxZoom()
          gets The maximum zoom level for the map when displaying this MapType.
 int getMinZoom()
          gets The minimum zoom level for the map when displaying this MapType.
 String getName()
          gets Name to display in the MapTypeControl.
 double getOpacity()
          gets The opacity to apply to the tiles.
 Size getTileSize()
          gets The tile size.
static ImageMapTypeOptions newInstance()
          This class is used to create a MapType that renders image tiles.
 void setAlt(String alt)
          set 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)
          set Name to display in the MapTypeControl.
 void setOpacity(double opacity)
          The opacity to apply to the tiles.
 void setTileSize(Size size)
          sets The tile size.
 void setTileUrl(TileUrlCallBack callback)
          setup a callback to process the url creation Returns a string (URL) for given tile coordinate (x, y) and zoom level.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageMapTypeOptions

protected ImageMapTypeOptions()
use newInstance();

Method Detail

newInstance

public static final ImageMapTypeOptions newInstance()
This class is used to create a MapType that renders image tiles.


setAlt

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

Parameters:
alt -

getAlt

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


setTileUrl

public final void setTileUrl(TileUrlCallBack callback)
setup a callback to process the url creation Returns a string (URL) for given tile coordinate (x, y) and zoom level. This function should have a signature of: getTileUrl(Point, number):string

Parameters:
callback -

setMaxZoom

public final void setMaxZoom(int maxZoom)
sets The maximum zoom level for the map when displaying this MapType.

Parameters:
maxZoom -

getMaxZoom

public final int getMaxZoom()
gets The maximum zoom level for the map when displaying this MapType.


setMinZoom

public final void setMinZoom(int minZoom)
sets The minimum zoom level for the map when displaying this MapType. Optional.

Parameters:
minZoom -

getMinZoom

public final int getMinZoom()
gets The minimum zoom level for the map when displaying this MapType. Optional.


setName

public final void setName(String name)
set Name to display in the MapTypeControl.

Parameters:
name -

getName

public final String getName()
gets Name to display in the MapTypeControl.


setOpacity

public final void setOpacity(double opacity)
The opacity to apply to the tiles. The opacity should be specified as a float value between 0 and 1.0, where 0 is fully transparent and 1 is fully opaque.

Parameters:
opacity -

getOpacity

public final double getOpacity()
gets The opacity to apply to the tiles. The opacity should be specified as a float value between 0 and 1.0, where 0 is fully transparent and 1 is fully opaque.


setTileSize

public final void setTileSize(Size size)
sets The tile size.

Parameters:
size -

getTileSize

public final Size getTileSize()
gets The tile size.



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