public class MapOptions extends JavaScriptObject
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_LATLNG_LAT |
static double |
DEFAULT_LATLNG_LNG |
Modifier | Constructor and Description |
---|---|
protected |
MapOptions()
This will tell the map how to render and with with what features
Use newInstance(); |
Modifier and Type | Method and Description |
---|---|
String |
getBackgroundColor()
get Color used for the background of the Map div.
|
LatLng |
getCenter()
get
LatLng |
boolean |
getDisableDefaultUi()
get Enables/disables all default UI.
|
boolean |
getDisableDoubleClickZoom()
get enables/disables zoom and center on double click.
|
boolean |
getDraggable()
get If false, prevents the map from being dragged.
|
String |
getDraggableCursor()
get The name or url of the cursor to display on a draggable object.
|
String |
getDraggingCursor()
get The name or url of the cursor to display when an object is dragging.
|
int |
getHeading()
get The heading for aerial imagery in degrees measured clockwise from
cardinal direction North.
|
boolean |
getKeyboardShortcuts()
get If false, prevents the map from being controlled by the keyboard.
|
boolean |
getMapMaker()
Gets Map Maker usage.
|
boolean |
getMapTypeControl()
get The initial enabled/disabled state of the Map type control.
|
MapTypeControlOptions |
getMapTypeControlOptions()
get The initial display options for the Map type control.
|
MapTypeId |
getMapTypeId()
Get
MapTypeId |
String |
getMapTypeIdString()
Get mapTypeId string
|
MapTypeStyle[] |
getMapTypeStyles()
get set Styles to apply to each of the default map types.
|
int |
getMaxZoom()
get maxZoom
|
int |
getMinZoom()
get The minimum zoom level which will be displayed on the map.
|
boolean |
getNoClear()
get If true, do not clear the contents of the Map div.
|
boolean |
getOverviewMapControl()
get The enabled/disabled state of the Overview Map control.
|
OverviewMapControlOptions |
getOverviewMapControlOptions()
get The display options for the Overview Map control.
|
boolean |
getPanControl()
get The enabled/disabled state of the Pan control.
|
PanControlOptions |
getPanControlOptions()
gets The display options for the Pan control.
|
boolean |
getRotateControl()
get The enabled/disabled state of the Rotate control.
|
RotateControlOptions |
getRotateControlOptions()
get set The display options for the Rotate control.
|
boolean |
getScaleControl()
get The initial enabled/disabled state of the Scale control.
|
ScaleControlOptions |
getScaleControlOptions()
get The initial display options for the Scale control.
|
boolean |
getScrollWheel()
get If false, disables scrollwheel zooming on the map.
|
boolean |
getStreetViewControl()
get set A StreetViewPanorama to display when the Street View pegman is
dropped on the map.
|
StreetViewControlOptions |
getStreetViewControlOptions()
get The initial enabled/disabled state of the Street View Pegman control.
|
int |
getTilt()
gets The angle of incidence of the map as measured in degrees from the
viewport plane to the map plane.
|
int |
getZoom()
get Map zoom level
|
boolean |
getZoomControl()
gets The enabled/disabled state of the Zoom control.
|
ZoomControlOptions |
getZoomControlOptions()
gets The display options for the Zoom control.
|
static MapOptions |
newInstance()
Create a new Instance of the MapOptions This will also create a defaults
center, mapTypeId and Zoom
|
static MapOptions |
newInstance(boolean withdefaults)
Create a new Instance of the MapOptions
|
void |
setBackgroundColor(String backgroundColor)
set Color used for the background of the Map div.
|
void |
setCenter(LatLng center)
set The initial Map center.
|
void |
setDisableDefaultUi(boolean disableDefaultUI)
set Enables/disables all default UI.
|
void |
setDisableDoubleClickZoom(boolean disableDoubleClickZoom)
set Enables/disables zoom and center on double click.
|
void |
setDraggable(boolean draggable)
set If false, prevents the map from being dragged.
|
void |
setDraggableCursor(String draggableCursor)
set The name or url of the cursor to display on a draggable object.
|
void |
setDraggingCursor(String draggingCursor)
set The name or url of the cursor to display when an object is dragging.
|
void |
setHeading(int heading)
set The heading for aerial imagery in degrees measured clockwise from
cardinal direction North.
|
void |
setKeyboardShortcuts(boolean keyboardShortcuts)
set If false, prevents the map from being controlled by the keyboard.
|
void |
setMapMaker(boolean mapMaker)
Sets Map Maker usage.
|
void |
setMapTypeControl(boolean mapTypeControl)
set The initial enabled/disabled state of the Map type control.
|
void |
setMapTypeControlOptions(MapTypeControlOptions mapTypeControlOptions)
set The initial display options for the Map type control.
|
void |
setMapTypeId(MapTypeId mapTypeId)
The initial Map
MapTypeId . |
void |
setMapTypeId(String mapTypeId)
The initial Map
MapTypeId . |
void |
setMapTypeStyles(MapTypeStyle[] styles) |
void |
setMaxZoom(int maxZoom)
set The maximum zoom level which will be displayed on the map.
|
void |
setMinZoom(int minZoom)
set The minimum zoom level which will be displayed on the map.
|
void |
setNoClear(boolean noClear)
set If true, do not clear the contents of the Map div.
|
void |
setOverviewMapControl(boolean overviewMapControl)
set The enabled/disabled state of the Overview Map control.
|
void |
setOverviewMapControlOptions(OverviewMapControlOptions overviewMapControlOptions)
set The display options for the Overview Map control.
|
void |
setPanControl(boolean panControl)
The enabled/disabled state of the Pan control.
|
void |
setPanControlOptions(PanControlOptions panControlOptions)
sets The display options for the Pan control.
|
void |
setRotateControl(boolean rotateControl)
set The enabled/disabled state of the Rotate control.
|
void |
setRotateControlOptions(RotateControlOptions rotateControlOptions)
set The display options for the Rotate control.
|
void |
setScaleControl(boolean scaleControl)
set The initial enabled/disabled state of the Scale control.
|
void |
setScaleControlOptions(ScaleControlOptions scaleControlOptions)
set The initial display options for the Scale control.
|
void |
setScrollWheel(boolean scrollWheel)
set If false, disables scrollwheel zooming on the map.
|
void |
setStreetViewControl(boolean streetViewControl)
set A StreetViewPanorama to display when the Street View Pegman is
dropped on the map.
|
void |
setStreetViewControlOptions(StreetViewControlOptions streetViewControlOptions)
The initial enabled/disabled state of the Street View Pegman control.
|
void |
setTilt(int tilt)
sets The angle of incidence of the map as measured in degrees from the
viewport plane to the map plane.
|
void |
setZoom(int zoom)
The initial Map zoom level.
|
void |
setZoomControl(boolean zoomControl)
sets The enabled/disabled state of the Zoom control.
|
void |
setZoomControlOptions(ZoomControlOptions zoomControlOptions)
sets The display options for the Zoom control.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final double DEFAULT_LATLNG_LAT
public static final double DEFAULT_LATLNG_LNG
protected MapOptions()
public static final MapOptions newInstance()
public static final MapOptions newInstance(boolean withdefaults)
withdefaults
- - [true]= setup required defaults, center, mapTypeId and Zoom.
[false]= will not use defaultspublic final void setBackgroundColor(String backgroundColor)
backgroundColor
- public final String getBackgroundColor()
public final void setCenter(LatLng center)
center
- LatLng
public final void setDisableDefaultUi(boolean disableDefaultUI)
disableDefaultUI
- public final boolean getDisableDefaultUi()
public final void setDisableDoubleClickZoom(boolean disableDoubleClickZoom)
disableDoubleClickZoom
- public final boolean getDisableDoubleClickZoom()
public final void setDraggable(boolean draggable)
draggable
- public final boolean getDraggable()
public final void setDraggableCursor(String draggableCursor)
draggableCursor
- public final String getDraggableCursor()
public final void setDraggingCursor(String draggingCursor)
draggingCursor
- public final String getDraggingCursor()
public final void setHeading(int heading)
heading
- public final int getHeading()
public final void setKeyboardShortcuts(boolean keyboardShortcuts)
keyboardShortcuts
- public final boolean getKeyboardShortcuts()
public final void setMapTypeControl(boolean mapTypeControl)
mapTypeControl
- public final boolean getMapTypeControl()
public final void setMapTypeControlOptions(MapTypeControlOptions mapTypeControlOptions)
mapTypeControlOptions
- public final MapTypeControlOptions getMapTypeControlOptions()
MapTypeControlOptions
public final void setMapTypeId(MapTypeId mapTypeId)
MapTypeId
. Required.mapTypeId
- MapTypeId
public final void setMapTypeId(String mapTypeId)
MapTypeId
. Required.mapTypeId
- Stringpublic final String getMapTypeIdString()
public final void setMaxZoom(int maxZoom)
maxZoom
- public final int getMaxZoom()
public final void setMinZoom(int minZoom)
minZoom
- public final int getMinZoom()
public final void setNoClear(boolean noClear)
noClear
- public final boolean getNoClear()
public final void setOverviewMapControl(boolean overviewMapControl)
overviewMapControl
- public final boolean getOverviewMapControl()
public final void setOverviewMapControlOptions(OverviewMapControlOptions overviewMapControlOptions)
OverviewMapControlOptions
overviewMapControlOptions
- public final OverviewMapControlOptions getOverviewMapControlOptions()
OverviewMapControlOptions
public final void setPanControl(boolean panControl)
panControl
- public final boolean getPanControl()
public final void setPanControlOptions(PanControlOptions panControlOptions)
panControlOptions
- PanControlOptions
public final PanControlOptions getPanControlOptions()
PanControlOptions
public final void setRotateControl(boolean rotateControl)
rotateControl
- public final boolean getRotateControl()
public final void setRotateControlOptions(RotateControlOptions rotateControlOptions)
rotateControlOptions
- RotateControlOptions
public final RotateControlOptions getRotateControlOptions()
RotateControlOptions
public final void setScaleControl(boolean scaleControl)
scaleControl
- public final boolean getScaleControl()
public final void setScaleControlOptions(ScaleControlOptions scaleControlOptions)
scaleControlOptions
- ScaleControlOptions
public final ScaleControlOptions getScaleControlOptions()
ScaleControlOptions
public final void setScrollWheel(boolean scrollWheel)
scrollWheel
- public final boolean getScrollWheel()
public final void setStreetViewControl(boolean streetViewControl)
streetViewControl
- public final boolean getStreetViewControl()
public final void setStreetViewControlOptions(StreetViewControlOptions streetViewControlOptions)
streetViewControlOptions
- StreetViewControlOptions
public final StreetViewControlOptions getStreetViewControlOptions()
StreetViewControlOptions
public final void setMapTypeStyles(MapTypeStyle[] styles)
public final MapTypeStyle[] getMapTypeStyles()
public final void setTilt(int tilt)
public final int getTilt()
public final void setZoom(int zoom)
zoom
- public final int getZoom()
public final void setZoomControl(boolean zoomControl)
zoomControl
- public final boolean getZoomControl()
public final void setMapMaker(boolean mapMaker)
mapMaker
- True if Map Maker tiles should be used instead of regular tiles.public final boolean getMapMaker()
public final void setZoomControlOptions(ZoomControlOptions zoomControlOptions)
zoomControlOptions
- public final ZoomControlOptions getZoomControlOptions()
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.