com.mapitz.gwt.googleMaps.client
Class GMapOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.mapitz.gwt.googleMaps.client.GMapOptions

public class GMapOptions
extends com.google.gwt.core.client.JavaScriptObject

Additional options for the GMap

Author:
aglaforge

Method Summary
static GMapOptions create()
           
 GMapType[] getMapTypes()
          mapTypes Array of GMapType Array of map types to be used by this map.
 GSize getSize()
          size GSize Sets the size in pixels of the map.
 void setMapTypes(GMapType[] array)
          mapTypes Array of GMapType Array of map types to be used by this map.
 void setSize(GSize size)
          size GSize Sets the size in pixels of the map.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static GMapOptions create()

setSize

public void setSize(GSize size)
size GSize Sets the size in pixels of the map. The container that is passed to the map constructor will be resized to the given size. By default, the map will assume the size of its container.


getSize

public GSize getSize()
size GSize Sets the size in pixels of the map. The container that is passed to the map constructor will be resized to the given size. By default, the map will assume the size of its container.


setMapTypes

public void setMapTypes(GMapType[] array)
mapTypes Array of GMapType Array of map types to be used by this map. By default, G_DEFAULT_MAP_TYPES is used. You can use this option to restrict the set of predefined map types that is displayed on the map, or to pass your own map types to the map. See also GMap2.addMapType().


getMapTypes

public GMapType[] getMapTypes()
mapTypes Array of GMapType Array of map types to be used by this map. By default, G_DEFAULT_MAP_TYPES is used. You can use this option to restrict the set of predefined map types that is displayed on the map, or to pass your own map types to the map. See also GMap2.addMapType().