public class MapOptions extends MapObject
Constructor and Description |
---|
MapOptions()
Creates new MapOptions object.
|
MapOptions(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBackgroundColor()
Returns value of backgroundColor property.
|
LatLng |
getCenter()
Returns value of center property.
|
boolean |
getClickableIcons()
Returns value of disableDoubleClickZoom property.
|
boolean |
getDisableDefaultUI()
Returns value of disableDefaultUI property.
|
boolean |
getDisableDoubleClickZoom()
Returns value of disableDoubleClickZoom property.
|
boolean |
getDraggable()
Returns value of draggable property.
|
java.lang.String |
getDraggableCursor()
Returns value of draggableCursor property.
|
boolean |
getDraggingCursor()
Returns value of draggingCursor property.
|
double |
getHeading()
Returns value of heading property.
|
boolean |
getKeyboardShortcuts()
Returns value of keyboardShortcuts property.
|
boolean |
getMapMaker()
Returns value of mapMaker property.
|
boolean |
getMapTypeControl()
Returns value of mapTypeControl property.
|
MapTypeControlOptions |
getMapTypeControlOptions()
Returns value of mapTypeControlOptions property.
|
MapTypeId |
getMapTypeId()
Returns value of mapTypeId property.
|
double |
getMaxZoom()
Returns value of maxZoom property.
|
double |
getMinZoom()
Returns value of minZoom property.
|
boolean |
getNoClear()
Returns value of noClear property.
|
boolean |
getOverviewMapControl()
Returns value of overviewMapControl property.
|
OverviewMapControlOptions |
getOverviewMapControlOptions()
Returns value of overviewMapControlOptions property.
|
boolean |
getPanControl()
Returns value of panControl property.
|
PanControlOptions |
getPanControlOptions()
Returns value of panControlOptions property.
|
boolean |
getRotateControl()
Returns value of rotateControl property.
|
RotateControlOptions |
getRotateControlOptions()
Returns value of rotateControlOptions property.
|
boolean |
getScaleControl()
Returns value of scaleControl property.
|
ScaleControlOptions |
getScaleControlOptions()
Returns value of scaleControlOptions property.
|
boolean |
getScrollWheel()
Returns value of scrollWheel property.
|
StreetViewPanorama |
getStreetView()
Returns value of streetView property.
|
boolean |
getStreetViewControl()
Returns value of streetViewControl property.
|
StreetViewControlOptions |
getStreetViewControlOptions()
Returns value of streetViewControlOptions property.
|
MapTypeStyle[] |
getStyles()
Returns value of styles property.
|
double |
getTilt()
Returns value of tilt property.
|
double |
getZoom()
Returns value of zoom property.
|
boolean |
getZoomControl()
Returns value of zoomControl property.
|
ZoomControlOptions |
getZoomControlOptions()
Returns value of zoomControlOptions property.
|
void |
setBackgroundColor(java.lang.String color)
Sets new value for backgroundColor property.
|
void |
setCenter(LatLng center)
Sets new value for center property.
|
void |
setClickableIcons(boolean value)
Sets new value for disableDefaultUI property.
|
void |
setDisableDefaultUI(boolean disable)
Sets new value for disableDefaultUI property.
|
void |
setDisableDoubleClickZoom(boolean disable)
Sets new value for disableDoubleClickZoom property.
|
void |
setDraggable(boolean draggable)
Sets new value for draggable property.
|
void |
setDraggableCursor(java.lang.String cursor)
Sets new value for draggableCursor property.
|
void |
setDraggingCursor(boolean value)
Sets new value for draggingCursor property.
|
void |
setHeading(double heading)
Sets new value for heading property.
|
void |
setKeyboardShortcuts(boolean enable)
Sets new value for keyboardShortcuts property.
|
void |
setMapMaker(boolean mapMaker)
Sets new value for mapMaker property.
|
void |
setMapTypeControl(boolean value)
Sets new value for mapTypeControl property.
|
void |
setMapTypeControlOptions(MapTypeControlOptions options)
Sets new value for mapTypeControlOptions property.
|
void |
setMapTypeId(MapTypeId typeId)
Sets new value for mapTypeId property.
|
void |
setMaxZoom(double zoom)
Sets new value for maxZoom property.
|
void |
setMinZoom(double zoom)
Sets new value for minZoom property.
|
void |
setNoClear(boolean noClear)
Sets new value for noClear property.
|
void |
setOverviewMapControl(boolean value)
Sets new value for overviewMapControl property.
|
void |
setOverviewMapControlOptions(OverviewMapControlOptions options)
Sets new value for overviewMapControlOptions property.
|
void |
setPanControl(boolean value)
Sets new value for panControl property.
|
void |
setPanControlOptions(PanControlOptions options)
Sets new value for panControlOptions property.
|
void |
setRotateControl(boolean value)
Sets new value for rotateControl property.
|
void |
setRotateControlOptions(RotateControlOptions options)
Sets new value for rotateControlOptions property.
|
void |
setScaleControl(boolean value)
Sets new value for scaleControl property.
|
void |
setScaleControlOptions(ScaleControlOptions options)
Sets new value for scaleControlOptions property.
|
void |
setScrollWheel(boolean value)
Sets new value for scrollwheel property.
|
void |
setStreetView(StreetViewPanorama streetView)
Sets new value for streetView property.
|
void |
setStreetViewControl(boolean value)
Sets new value for streetViewControl property.
|
void |
setStreetViewControlOptions(StreetViewControlOptions options)
Sets new value for streetViewControlOptions property.
|
void |
setStyles(MapTypeStyle[] styles)
Sets new value for styles property.
|
void |
setTilt(double tilt)
Sets new value for tilt property.
|
void |
setZoom(double value)
Sets new value for zoom property.
|
void |
setZoomControl(boolean value)
Sets new value for zoomControl property.
|
void |
setZoomControlOptions(ZoomControlOptions options)
Sets new value for zoomControlOptions property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public MapOptions()
@Deprecated public MapOptions(Map map)
map
- owner Map objectpublic java.lang.String getBackgroundColor()
Represents color used for the background of the Map. This color will be visible when tiles have not yet loaded as the user pans. This option can only be set when the map is initialized.
setBackgroundColor(java.lang.String)
public void setBackgroundColor(java.lang.String color)
color
- new property valuegetBackgroundColor()
public LatLng getCenter()
Represents the initial Map center. Required.
setCenter(com.teamdev.jxmaps.LatLng)
public void setCenter(LatLng center)
center
- new property valuegetCenter()
public boolean getDisableDefaultUI()
Enables/disables all default UI. May be overridden individually.
setDisableDefaultUI(boolean)
public void setDisableDefaultUI(boolean disable)
disable
- new property valuegetDisableDefaultUI()
public boolean getDisableDoubleClickZoom()
Enables/disables zoom and center on double click. Enabled by default.
setDisableDoubleClickZoom(boolean)
public void setClickableIcons(boolean value)
value
- new property valuegetClickableIcons()
public boolean getClickableIcons()
setClickableIcons(boolean)
public void setDisableDoubleClickZoom(boolean disable)
disable
- new property valuegetDisableDoubleClickZoom()
public boolean getDraggable()
If false, prevents the map from being dragged. Dragging is enabled by default.
setDraggable(boolean)
public void setDraggable(boolean draggable)
draggable
- new property valuegetDraggable()
public java.lang.String getDraggableCursor()
The name or url of the cursor to display when mousing over a draggable map. This property uses the css cursor attribute to change the icon. As with the css property, you must specify at least one fallback cursor that is not a URL. For example: draggableCursor: 'url(http://www.example.com/icon.png), auto;'.
setDraggableCursor(java.lang.String)
public void setDraggableCursor(java.lang.String cursor)
cursor
- new property valuegetDraggableCursor()
public boolean getDraggingCursor()
The name or url of the cursor to display when the map is being dragged. This property uses the css cursor attribute to change the icon. As with the css property, you must specify at least one fallback cursor that is not a URL. For example: draggingCursor: 'url(http://www.example.com/icon.png), auto;'.
setDraggingCursor(boolean)
public void setDraggingCursor(boolean value)
value
- new property valuegetDraggingCursor()
public double getHeading()
Represents the heading for aerial imagery in degrees measured clockwise from cardinal direction North. Headings are snapped to the nearest available angle for which imagery is available.
setHeading(double)
public void setHeading(double heading)
heading
- new property valuegetHeading()
public boolean getKeyboardShortcuts()
If false, prevents the map from being controlled by the keyboard. Keyboard shortcuts are enabled by default.
setKeyboardShortcuts(boolean)
public void setKeyboardShortcuts(boolean enable)
enable
- new property valuegetKeyboardShortcuts()
public boolean getMapMaker()
True if Map Maker tiles should be used instead of regular tiles.
setMapMaker(boolean)
public void setMapMaker(boolean mapMaker)
mapMaker
- new property valuegetMapMaker()
public double getMaxZoom()
Contains the maximum zoom level which will be displayed on the map. If omitted, or set to null, the maximum zoom from the current map type is used instead.
setMaxZoom(double)
public void setMaxZoom(double zoom)
zoom
- new property valuegetMaxZoom()
public double getMinZoom()
Contains the minimum zoom level which will be displayed on the map. If omitted, or set to null, the minimum zoom from the current map type is used instead.
setMinZoom(double)
public void setMinZoom(double zoom)
zoom
- new property valuegetMinZoom()
public boolean getNoClear()
If true, do not clear the contents of the Map div.
setNoClear(boolean)
public void setNoClear(boolean noClear)
noClear
- new property valuegetNoClear()
public boolean getOverviewMapControl()
Contains the enabled/disabled state of the Overview Map control.
setOverviewMapControl(boolean)
public void setOverviewMapControl(boolean value)
value
- new property valuegetOverviewMapControl()
public OverviewMapControlOptions getOverviewMapControlOptions()
Represents the display options for the Overview Map control.
setOverviewMapControlOptions(com.teamdev.jxmaps.OverviewMapControlOptions)
public void setOverviewMapControlOptions(OverviewMapControlOptions options)
options
- new property valuegetOverviewMapControlOptions()
public boolean getPanControl()
Contains the enabled/disabled state of the Pan control.
setPanControl(boolean)
public void setPanControl(boolean value)
value
- new property valuegetPanControl()
public PanControlOptions getPanControlOptions()
Represents the display options for the Pan control.
setPanControlOptions(com.teamdev.jxmaps.PanControlOptions)
public void setPanControlOptions(PanControlOptions options)
options
- new property valuegetPanControlOptions()
public boolean getRotateControl()
Contains the enabled/disabled state of the Rotate control.
setRotateControl(boolean)
public void setRotateControl(boolean value)
value
- new property valuegetRotateControl()
public RotateControlOptions getRotateControlOptions()
Represents the display options for the Rotate control.
setRotateControlOptions(com.teamdev.jxmaps.RotateControlOptions)
public void setRotateControlOptions(RotateControlOptions options)
options
- new property valuegetRotateControlOptions()
public boolean getScaleControl()
Contains the initial enabled/disabled state of the Scale control.
setScaleControl(boolean)
public void setScaleControl(boolean value)
value
- new property valuegetScaleControl()
public ScaleControlOptions getScaleControlOptions()
Represents the initial display options for the Scale control.
setScaleControlOptions(com.teamdev.jxmaps.ScaleControlOptions)
public void setScaleControlOptions(ScaleControlOptions options)
options
- new property valuegetScaleControlOptions()
public boolean getScrollWheel()
If false, disables scrollwheel zooming on the map. The scrollwheel is enabled by default.
setScrollWheel(boolean)
public void setScrollWheel(boolean value)
value
- new property valuegetScrollWheel()
public StreetViewPanorama getStreetView()
Contains a StreetViewPanorama object to display when the Street View pegman is dropped on the map. If no panorama is specified, a default StreetViewPanorama will be displayed in the map's div when the pegman is dropped.
setStreetView(com.teamdev.jxmaps.StreetViewPanorama)
public void setStreetView(StreetViewPanorama streetView)
streetView
- new property valuegetStreetView()
public boolean getStreetViewControl()
Contains the initial enabled/disabled state of the Street View Pegman control. This control is part of the default UI, and should be set to false when displaying a map type on which the Street View road overlay should not appear (e.g. a non-Earth map type).
setStreetViewControl(boolean)
public void setStreetViewControl(boolean value)
value
- new property valuegetStreetViewControl()
public StreetViewControlOptions getStreetViewControlOptions()
Represents the initial display options for the Street View Pegman control.
setStreetViewControlOptions(com.teamdev.jxmaps.StreetViewControlOptions)
public void setStreetViewControlOptions(StreetViewControlOptions options)
options
- new property valuegetStreetViewControlOptions()
public MapTypeStyle[] getStyles()
Styles to apply to each of the default map types. Note that for Satellite/Hybrid and Terrain modes, these styles will only apply to labels and geometry.
setStyles(com.teamdev.jxmaps.MapTypeStyle[])
public void setStyles(MapTypeStyle[] styles)
styles
- new property valuegetStyles()
public double getTilt()
Controls the automatic switching behavior for the angle of incidence of the map. The only allowed values are 0 and 45. The value 0 causes the map to always use a 0° overhead view regardless of the zoom level and viewport. The value 45 causes the tilt angle to automatically switch to 45 whenever 45° imagery is available for the current zoom level and viewport, and switch back to 0 whenever 45° imagery is not available (this is the default behavior). 45° imagery is only available for SATELLITE and HYBRID map types, within some locations, and at some zoom levels. Note: getTilt returns the current tilt angle, not the value specified by this option. Because getTilt and this option refer to different things, do not bind() the tilt property; doing so may yield unpredictable effects.
setTilt(double)
public void setTilt(double tilt)
tilt
- new property valuegetTilt()
public double getZoom()
Contains the initial Map zoom level. Required.
setZoom(double)
public void setZoom(double value)
value
- new property valuegetZoom()
public boolean getZoomControl()
Contains the enabled/disabled state of the Zoom control.
setZoomControl(boolean)
public void setZoomControl(boolean value)
value
- new property valuegetZoomControl()
public ZoomControlOptions getZoomControlOptions()
Represents the display options for the Zoom control.
setZoomControlOptions(com.teamdev.jxmaps.ZoomControlOptions)
public void setZoomControlOptions(ZoomControlOptions options)
options
- new property valuegetZoomControlOptions()
public boolean getMapTypeControl()
Contains the initial enabled/disabled state of the Map type control.
setMapTypeControl(boolean)
public void setMapTypeControl(boolean value)
value
- new property valuegetMapTypeControl()
public MapTypeId getMapTypeId()
Contains the initial Map mapTypeId. Defaults to ROADMAP.
setMapTypeId(com.teamdev.jxmaps.MapTypeId)
public void setMapTypeId(MapTypeId typeId)
typeId
- new property valuegetMapTypeId()
public MapTypeControlOptions getMapTypeControlOptions()
Contains the initial display options for the Map type control.
setMapTypeControlOptions(com.teamdev.jxmaps.MapTypeControlOptions)
public void setMapTypeControlOptions(MapTypeControlOptions options)
options
- new property valuegetMapTypeControlOptions()