com.google.gwt.maps.client
Class MapTypeOptions

java.lang.Object
  extended by com.google.gwt.maps.client.MapTypeOptions

public final class MapTypeOptions
extends java.lang.Object

A container object for building a set of options to create a custom MapType.


Constructor Summary
MapTypeOptions()
           
 
Method Summary
 void setAlt(java.lang.String alt)
          Sets the alternative text to the map type returned by MapType.getAlt().
 void setErrorMessage(java.lang.String errorMessage)
          Sets the error message returned by MapType.getErrorMessage() .
 void setLinkColor(java.lang.String linkColor)
          Sets the text color returned by MapType.getLinkColor().
 void setMaxResolution(int maxResolution)
          Sets the maximum zoom level of this map type, returned by MapType.getMaximumResolution().
 void setMinResolution(int minResolution)
          Sets the minimum zoom level of this map type, returned by MapType.getMinimumResolution().
 void setRadius(int radius)
          Sets the radius of the map type given the passed Number measured in meters.
 void setShortName(java.lang.String shortName)
          Sets the short name of the map type that is returned from MapType.getName(boolean).
 void setTextColor(java.lang.String textColor)
          Sets the text color returned by MapType.getTextColor().
 void setTileSize(int tileSize)
          Set the tile size returned by MapType.getTileSize().
 void setUrlArg(java.lang.String urlArg)
          Sets the url argument of the map type that is returned from MapType.getUrlArg().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTypeOptions

public MapTypeOptions()
Method Detail

setAlt

public void setAlt(java.lang.String alt)
Sets the alternative text to the map type returned by MapType.getAlt(). Default is the empty string.

Parameters:
alt - The alternative text to display for the MapType in a User Interface component

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Sets the error message returned by MapType.getErrorMessage() . Default is the empty string.

Parameters:
errorMessage - message to display

setLinkColor

public void setLinkColor(java.lang.String linkColor)
Sets the text color returned by MapType.getLinkColor(). Default is "#7777cc".

Parameters:
linkColor - CSS specification of the text color to use for links

setMaxResolution

public void setMaxResolution(int maxResolution)
Sets the maximum zoom level of this map type, returned by MapType.getMaximumResolution(). Default is the maximum of all tile layers.

Parameters:
maxResolution - the maximum zoom level to use for this map type.

setMinResolution

public void setMinResolution(int minResolution)
Sets the minimum zoom level of this map type, returned by MapType.getMinimumResolution(). Default is the minimum of all tile layers.

Parameters:
minResolution - the minimum zoom level to use for this map type.

setRadius

public void setRadius(int radius)
Sets the radius of the map type given the passed Number measured in meters. The default value is 6378137, the equatorial radius of the Earth in meters. (Since 2.89)

Parameters:
radius - radius value in meters to use for this map.

setShortName

public void setShortName(java.lang.String shortName)
Sets the short name of the map type that is returned from MapType.getName(boolean). Default is the same as the name.

Parameters:
shortName - the short name to use for this map type.

setTextColor

public void setTextColor(java.lang.String textColor)
Sets the text color returned by MapType.getTextColor(). Default is "black".

Parameters:
textColor - CSS specification of text color to use.

setTileSize

public void setTileSize(int tileSize)
Set the tile size returned by MapType.getTileSize(). Default is 256.

Parameters:
tileSize - the size of tiles in pixels for this map type.

setUrlArg

public void setUrlArg(java.lang.String urlArg)
Sets the url argument of the map type that is returned from MapType.getUrlArg(). Default is the empty string.

Parameters:
urlArg - url argument to use for this map type.