public interface MapViewer
extends com.haulmont.cuba.gui.components.Component, com.haulmont.cuba.gui.components.Component.BelongToFrame, com.haulmont.cuba.gui.components.Component.HasXmlDescriptor, com.haulmont.cuba.gui.components.Component.HasIcon, com.haulmont.cuba.gui.components.Component.HasCaption
Modifier and Type | Interface and Description |
---|---|
static class |
MapViewer.Type
Map types
|
com.haulmont.cuba.gui.components.Component.ActionOwner, com.haulmont.cuba.gui.components.Component.ActionsHolder, com.haulmont.cuba.gui.components.Component.Alignment, com.haulmont.cuba.gui.components.Component.BelongToFrame, com.haulmont.cuba.gui.components.Component.Buffered, com.haulmont.cuba.gui.components.Component.ChildEditableController, com.haulmont.cuba.gui.components.Component.Collapsable, com.haulmont.cuba.gui.components.Component.Container, com.haulmont.cuba.gui.components.Component.ContextHelpIconClickEvent, com.haulmont.cuba.gui.components.Component.Disposable, com.haulmont.cuba.gui.components.Component.Editable, com.haulmont.cuba.gui.components.Component.EditableChangeEvent, com.haulmont.cuba.gui.components.Component.EditableChangeListener, com.haulmont.cuba.gui.components.Component.EditableChangeNotifier, com.haulmont.cuba.gui.components.Component.ExpandedStateChangeEvent, com.haulmont.cuba.gui.components.Component.ExpandedStateChangeListener, com.haulmont.cuba.gui.components.Component.Focusable, com.haulmont.cuba.gui.components.Component.HasBorder, com.haulmont.cuba.gui.components.Component.HasButtonsPanel, com.haulmont.cuba.gui.components.Component.HasCaption, com.haulmont.cuba.gui.components.Component.HasContextHelp, com.haulmont.cuba.gui.components.Component.HasFormatter, com.haulmont.cuba.gui.components.Component.HasIcon, com.haulmont.cuba.gui.components.Component.HasInputPrompt, com.haulmont.cuba.gui.components.Component.HasNamedComponents, com.haulmont.cuba.gui.components.Component.HasOptionsStyleProvider, com.haulmont.cuba.gui.components.Component.HasPresentations, com.haulmont.cuba.gui.components.Component.HasRowsCount, com.haulmont.cuba.gui.components.Component.HasSettings, com.haulmont.cuba.gui.components.Component.HasValue, com.haulmont.cuba.gui.components.Component.HasXmlDescriptor, com.haulmont.cuba.gui.components.Component.LayoutClickEvent, com.haulmont.cuba.gui.components.Component.LayoutClickListener, com.haulmont.cuba.gui.components.Component.LayoutClickNotifier, com.haulmont.cuba.gui.components.Component.Margin, com.haulmont.cuba.gui.components.Component.MouseEventDetails, com.haulmont.cuba.gui.components.Component.OptionsStyleProvider, com.haulmont.cuba.gui.components.Component.OrderedContainer, com.haulmont.cuba.gui.components.Component.OuterMargin, com.haulmont.cuba.gui.components.Component.SecuredActionsHolder, com.haulmont.cuba.gui.components.Component.ShortcutAction, com.haulmont.cuba.gui.components.Component.ShortcutNotifier, com.haulmont.cuba.gui.components.Component.ShortcutTriggeredEvent, com.haulmont.cuba.gui.components.Component.Spacing, com.haulmont.cuba.gui.components.Component.UiPermissionAware, com.haulmont.cuba.gui.components.Component.Validatable, com.haulmont.cuba.gui.components.Component.ValueChangeEvent, com.haulmont.cuba.gui.components.Component.ValueChangeListener, com.haulmont.cuba.gui.components.Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static java.lang.String |
TAG_NAME
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addCircleCenterChangeListener(CircleCenterChangeListener listener) |
void |
addCircleClickListener(CircleClickListener listener) |
void |
addCircleCompleteListener(CircleCompleteListener listener) |
void |
addCircleDoubleClickListener(CircleDoubleClickListener listener) |
void |
addCircleOverlay(Circle circle)
Adds circle on map
|
void |
addCircleRadiusChangeListener(CircleRadiusChangeListener listener) |
void |
addCircleRightClickListener(CircleRightClickListener listener) |
void |
addHeatMapLayer(HeatMapLayer layer)
Adds heatmap layer on map.
|
void |
addImageMapType(ImageMapType imageMapType)
Adds Map type
|
void |
addInfoWindowClosedListener(InfoWindowClosedListener listener) |
void |
addLabel(Label label)
Adds label on the map.
|
void |
addMapClickListener(MapClickListener listener) |
void |
addMapInitListener(MapInitListener listener) |
void |
addMapMoveListener(MapMoveListener listener) |
void |
addMapRightClickListener(MapRightClickListener listener) |
void |
addMarker(Marker marker)
Adds marker on the map
|
Marker |
addMarker(java.lang.String caption,
GeoPoint position,
boolean draggable,
java.lang.String iconUrl)
Creates and adds marker.
|
void |
addMarkerClickListener(MarkerClickListener listener) |
void |
addMarkerDoubleClickListener(MarkerDoubleClickListener listener) |
void |
addMarkerDragListener(MarkerDragListener listener) |
void |
addMarkerRightClickListener(MarkerRightClickListener listener) |
void |
addOverlayImageMapType(ImageMapType imageMapType)
Adds image map type as overlay on top of the active map
|
void |
addPolygonClickListener(PolygonClickListener listener) |
void |
addPolygonCompleteListener(PolygonCompleteListener listener) |
void |
addPolygonEditListener(PolygonEditListener listener) |
void |
addPolygonOverlay(Polygon polygon)
Adds polygon on map
|
void |
addPolygonRightClickListener(PolygonRightClickListener listener) |
void |
addPolyline(Polyline polyline)
Adds polyline on map
|
boolean |
areKeyboardShortcutsEnabled() |
void |
clearMarkers()
Removes all the markers from map
|
void |
closeInfoWindow(InfoWindow infoWindow)
Closes given info window
|
Circle |
createCircle()
Creates circle.
|
Circle |
createCircle(GeoPoint center,
double radius)
Creates circle with given center location and radius (in meters).
|
DirectionsRequest |
createDirectionsRequest()
Creates directions request.
|
DirectionsRequest |
createDirectionsRequest(GeoPoint origin,
GeoPoint destination,
TravelMode travelMode)
Creates directions request.
|
DirectionsWaypoint |
createDirectionsWaypoint()
Creates directions waypoint.
|
DirectionsWaypoint |
createDirectionsWaypoint(GeoPoint location,
boolean stopOver)
Creates directions waypoint.
|
GeoPoint |
createGeoPoint()
Creates geo point with no coordinates
|
GeoPoint |
createGeoPoint(double latitude,
double longitude)
Creates geo point with given coordinates
|
HeatMapLayer |
createHeatMapLayer()
Creates heatmap layer.
|
ImageMapType |
createImageMapType(java.lang.String mapTypeId)
Create Image Map Type
|
ImageMapType |
createImageMapType(java.lang.String mapTypeId,
java.lang.String tileUrlCallbackJsFunction)
Create Image Map Type
Example of tile callback function for retreiving OpenStreet maps tiles:
|
ImageMapType |
createImageMapType(java.lang.String mapTypeId,
java.lang.String name,
java.lang.String tileUrlCallbackJsFunction)
Create Image Map Type
Example of tile callback function for retreiving OpenStreet maps tiles:
|
InfoWindow |
createInfoWindow()
Creates info window.
|
InfoWindow |
createInfoWindow(java.lang.String content)
Creates info window with given content.
|
InfoWindow |
createInfoWindow(java.lang.String content,
Marker anchorMarker)
Creates info window with given content and anchor marker.
|
Label |
createLabel()
Creates empty Label.
|
Label |
createLabel(java.lang.String value,
GeoPoint position)
Creates Label with given params.
|
Label |
createLabel(java.lang.String value,
GeoPoint position,
Label.ContentType contentType)
Creates Label with given params.
|
Marker |
createMarker()
Creates marker with default icon.
|
Marker |
createMarker(java.lang.String caption,
GeoPoint position,
boolean draggable)
Creates marker with given params.
|
Marker |
createMarker(java.lang.String caption,
GeoPoint position,
boolean draggable,
MarkerImage icon)
Creates marker with given params.
|
Marker |
createMarker(java.lang.String caption,
GeoPoint position,
boolean draggable,
java.lang.String iconUrl)
Creates marker with given params.
|
MarkerImage |
createMarkerImage()
Creates marker image object
|
MarkerImage |
createMarkerImage(java.lang.String url)
Creates marker image object
|
Point |
createPoint(double x,
double y)
Creates point object
|
Polygon |
createPolygon()
Creates polygon.
|
Polygon |
createPolygon(java.util.List<GeoPoint> coordinates)
Creates polygon with given coordinates for vertices.
|
Polygon |
createPolygon(java.util.List<GeoPoint> coordinates,
java.lang.String fillColor,
double fillOpacity,
java.lang.String strokeColor,
double strokeOpacity,
int strokeWeight)
Creates polygon with given params.
|
Polyline |
createPolyline()
Creates polyline.
|
Polyline |
createPolyline(java.util.List<GeoPoint> coordinates)
Creates polyline with given coordinates for vertices.
|
Polyline |
createPolyline(java.util.List<GeoPoint> coordinates,
java.lang.String strokeColor,
double strokeOpacity,
int strokeWeight)
Creates polyline with given parameters.
|
Size |
createSize(double width,
double height)
Creates size object
|
void |
fitToBounds(GeoPoint boundsNE,
GeoPoint boundsSW)
Changes map viewpoint to contain area defined by a given bounds.
|
GeoPoint |
getBoundNorthEast() |
GeoPoint |
getBoundSouthWest() |
GeoPoint |
getCenter() |
java.lang.String |
getMapType() |
java.util.Collection<Marker> |
getMarkers() |
int |
getMaxZoom() |
int |
getMinZoom() |
java.lang.String |
getRemoveMessage() |
int |
getZoom() |
boolean |
hasMarker(Marker marker) |
boolean |
isCenterBoundLimitsEnabled() |
boolean |
isDraggable() |
boolean |
isInfoWindowOpen(InfoWindow infoWindow) |
boolean |
isScrollWheelEnabled() |
boolean |
isVertexRemovingEnabled() |
boolean |
isVisibleAreaBoundLimitsEnabled() |
void |
openInfoWindow(InfoWindow infoWindow)
Opens given info window
|
void |
removeCircleCenterChangeListener(CircleCenterChangeListener listener) |
void |
removeCircleClickListener(CircleClickListener listener) |
void |
removeCircleCompleteListener(CircleCompleteListener listener) |
void |
removeCircleDoubleClickListener(CircleDoubleClickListener listener) |
void |
removeCircleOverlay(Circle circle)
Removes circle from map
|
void |
removeCircleRadiusChangeListener(CircleRadiusChangeListener listener) |
void |
removeCircleRightClickListener(CircleRightClickListener listener) |
void |
removeHeatMapLayer(HeatMapLayer layer)
Removes heatmap layer from map.
|
void |
removeImageMapType(ImageMapType imageMapType)
Removes Map Type
|
void |
removeInfoWindowClosedListener(InfoWindowClosedListener listener) |
void |
removeLabel(Label label)
Removes label from the map.
|
void |
removeMapClickListener(MapClickListener listener) |
void |
removeMapInitListener(MapInitListener listener) |
void |
removeMapMoveListener(MapMoveListener listener) |
void |
removeMapRightClickListener(MapRightClickListener listener) |
void |
removeMarker(Marker marker)
Removes marker from map
|
void |
removeMarkerClickListener(MarkerClickListener listener) |
void |
removeMarkerDoubleClickListener(MarkerDoubleClickListener listener) |
void |
removeMarkerDragListener(MarkerDragListener listener) |
void |
removeMarkerRightClickListener(MarkerRightClickListener listener) |
void |
removeOverlayImageMapType(ImageMapType imageMapType)
Removes overlay map
|
void |
removePolygonClickListener(PolygonClickListener listener) |
void |
removePolygonCompleteListener(PolygonCompleteListener listener) |
void |
removePolygonEditListener(PolygonEditListener listener) |
void |
removePolygonOverlay(Polygon polygon)
Removes polygon from map
|
void |
removePolygonRightClickListener(PolygonRightClickListener listener) |
void |
removePolygonVertex(Polygon polygon,
GeoPoint vertex)
Removes given vertex from given polygon.
|
void |
removePolyline(Polyline polyline)
Removes polyline from the map
|
void |
route(DirectionsRequest request,
DirectionsRequestCallback callback)
Method for requesting mapping service to create a route
|
void |
setCenter(GeoPoint center)
Sets map center
|
void |
setCenterBoundLimits(GeoPoint limitNE,
GeoPoint limitSW)
Sets map center possible locations bounds
|
void |
setCenterBoundLimitsEnabled(boolean enable)
Sets whether map center possible locations should be limited
|
void |
setDraggable(boolean draggable)
Sets whether user should be able to change map viewpoint by dragging the map
|
void |
setDrawingOptions(DrawingOptions drawingOptions)
Sets options for drawing mode
|
void |
setKeyboardShortcutsEnabled(boolean enabled)
Sets whether keyboard shortcuts should be enabled
|
void |
setMapType(MapViewer.Type type)
Sets map type
|
void |
setMapType(java.lang.String typeId)
Sets map type by its ID.
|
void |
setMapTypes(java.util.List<java.lang.String> mapTypeIds)
Sets map types available in map type control.
|
void |
setMaxZoom(int maxZoom)
Sets map maximum zoom
|
void |
setMinZoom(int minZoom)
Sets map minimum zoom
|
void |
setRemoveMessage(java.lang.String message)
Sets message which will be used in popup to remove polygon vertex.
|
void |
setScrollWheelEnabled(boolean enabled)
Sets whether map zoom should be editable by mouse wheel scrolling
|
void |
setSizeUndefined()
Deprecated.
Use
Component.setSizeAuto() |
void |
setVertexRemovingEnabled(boolean enabled)
Sets whether vertex removing is available or not.
|
void |
setVisibleAreaBoundLimits(GeoPoint limitNE,
GeoPoint limitSW)
Sets bounds for limiting map visible area
|
void |
setVisibleAreaBoundLimitsEnabled(boolean enabled)
Enables limiting of the visible area by a given bounds
|
void |
setZoom(int zoom)
Sets map zoom level.
|
getFrame, setFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getXmlDescriptor, setXmlDescriptor
static final java.lang.String NAME
@Deprecated static final java.lang.String TAG_NAME
void addMarkerClickListener(MarkerClickListener listener)
void removeMarkerClickListener(MarkerClickListener listener)
void addMarkerDoubleClickListener(MarkerDoubleClickListener listener)
void removeMarkerDoubleClickListener(MarkerDoubleClickListener listener)
void addMarkerDragListener(MarkerDragListener listener)
void removeMarkerDragListener(MarkerDragListener listener)
void addMarkerRightClickListener(MarkerRightClickListener listener)
void removeMarkerRightClickListener(MarkerRightClickListener listener)
void addMapMoveListener(MapMoveListener listener)
void removeMapMoveListener(MapMoveListener listener)
void addMapClickListener(MapClickListener listener)
void removeMapClickListener(MapClickListener listener)
void addMapRightClickListener(MapRightClickListener listener)
void removeMapRightClickListener(MapRightClickListener listener)
void addInfoWindowClosedListener(InfoWindowClosedListener listener)
void removeInfoWindowClosedListener(InfoWindowClosedListener listener)
void addPolygonCompleteListener(PolygonCompleteListener listener)
void removePolygonCompleteListener(PolygonCompleteListener listener)
void addPolygonEditListener(PolygonEditListener listener)
void removePolygonEditListener(PolygonEditListener listener)
void addPolygonClickListener(PolygonClickListener listener)
void removePolygonClickListener(PolygonClickListener listener)
void addPolygonRightClickListener(PolygonRightClickListener listener)
void removePolygonRightClickListener(PolygonRightClickListener listener)
void addMapInitListener(MapInitListener listener)
void removeMapInitListener(MapInitListener listener)
void addCircleClickListener(CircleClickListener listener)
void removeCircleClickListener(CircleClickListener listener)
void addCircleDoubleClickListener(CircleDoubleClickListener listener)
void removeCircleDoubleClickListener(CircleDoubleClickListener listener)
void addCircleRadiusChangeListener(CircleRadiusChangeListener listener)
void removeCircleRadiusChangeListener(CircleRadiusChangeListener listener)
void addCircleCenterChangeListener(CircleCenterChangeListener listener)
void removeCircleCenterChangeListener(CircleCenterChangeListener listener)
void addCircleCompleteListener(CircleCompleteListener listener)
void removeCircleCompleteListener(CircleCompleteListener listener)
void addCircleRightClickListener(CircleRightClickListener listener)
void removeCircleRightClickListener(CircleRightClickListener listener)
GeoPoint createGeoPoint()
GeoPoint createGeoPoint(double latitude, double longitude)
latitude
- latitudelongitude
- latitudeMarker createMarker()
addMarker(com.haulmont.charts.gui.map.model.Marker)
Marker createMarker(java.lang.String caption, GeoPoint position, boolean draggable)
addMarker(com.haulmont.charts.gui.map.model.Marker)
caption
- captionposition
- positiondraggable
- draggableMarker createMarker(java.lang.String caption, GeoPoint position, boolean draggable, java.lang.String iconUrl)
addMarker(com.haulmont.charts.gui.map.model.Marker)
caption
- captionposition
- positiondraggable
- draggableiconUrl
- icon urlMarker createMarker(java.lang.String caption, GeoPoint position, boolean draggable, MarkerImage icon)
addMarker(com.haulmont.charts.gui.map.model.Marker)
caption
- captionposition
- positiondraggable
- draggableicon
- iconPolygon createPolygon()
addPolygonOverlay(com.haulmont.charts.gui.map.model.Polygon)
Polygon createPolygon(java.util.List<GeoPoint> coordinates)
addPolygonOverlay(com.haulmont.charts.gui.map.model.Polygon)
Polygon createPolygon(java.util.List<GeoPoint> coordinates, java.lang.String fillColor, double fillOpacity, java.lang.String strokeColor, double strokeOpacity, int strokeWeight)
addPolygonOverlay(com.haulmont.charts.gui.map.model.Polygon)
Circle createCircle()
addCircleOverlay(com.haulmont.charts.gui.map.model.Circle)
Circle createCircle(GeoPoint center, double radius)
addCircleOverlay(com.haulmont.charts.gui.map.model.Circle)
Polyline createPolyline()
addPolyline(com.haulmont.charts.gui.map.model.Polyline)
Polyline createPolyline(java.util.List<GeoPoint> coordinates)
addPolyline(com.haulmont.charts.gui.map.model.Polyline)
Polyline createPolyline(java.util.List<GeoPoint> coordinates, java.lang.String strokeColor, double strokeOpacity, int strokeWeight)
addPolyline(com.haulmont.charts.gui.map.model.Polyline)
InfoWindow createInfoWindow()
openInfoWindow(com.haulmont.charts.gui.map.model.InfoWindow)
InfoWindow createInfoWindow(java.lang.String content)
openInfoWindow(com.haulmont.charts.gui.map.model.InfoWindow)
InfoWindow createInfoWindow(java.lang.String content, Marker anchorMarker)
openInfoWindow(com.haulmont.charts.gui.map.model.InfoWindow)
HeatMapLayer createHeatMapLayer()
addHeatMapLayer(com.haulmont.charts.gui.map.model.layer.HeatMapLayer)
DirectionsRequest createDirectionsRequest()
route(com.haulmont.charts.gui.map.model.directions.DirectionsRequest, com.haulmont.charts.gui.map.model.directions.DirectionsRequestCallback)
DirectionsRequest createDirectionsRequest(GeoPoint origin, GeoPoint destination, TravelMode travelMode)
route(com.haulmont.charts.gui.map.model.directions.DirectionsRequest, com.haulmont.charts.gui.map.model.directions.DirectionsRequestCallback)
origin
- location of origindestination
- location of destinationtravelMode
- type of routing requestedDirectionsWaypoint createDirectionsWaypoint()
DirectionsWaypoint createDirectionsWaypoint(GeoPoint location, boolean stopOver)
location
- locationstopOver
- if true, indicates that this waypoint is a stop between the origin and destination.
This has the effect of splitting the route into two. This value is true by default.MarkerImage createMarkerImage()
MarkerImage createMarkerImage(java.lang.String url)
url
- icon or sprites file urlSize createSize(double width, double height)
width
- widthheight
- heightPoint createPoint(double x, double y)
x
- X coordinatey
- Y coordinatevoid addHeatMapLayer(HeatMapLayer layer)
layer
- layervoid removeHeatMapLayer(HeatMapLayer layer)
layer
- layerImageMapType createImageMapType(java.lang.String mapTypeId)
mapTypeId
- id, used when you add this map in map type controlsImageMapType createImageMapType(java.lang.String mapTypeId, java.lang.String tileUrlCallbackJsFunction)
f = function f(x, y, zoom) {
return 'http://tile.openstreetmap.org/' + zoom + '/' + x + '/' + y + '.png';
}
mapTypeId
- id, used when you add this map in map type controlstileUrlCallbackJsFunction
- javascript function providing url of the tile by its coordinates and zoomImageMapType createImageMapType(java.lang.String mapTypeId, java.lang.String name, java.lang.String tileUrlCallbackJsFunction)
f = function f(x, y, zoom) {
return 'http://tile.openstreetmap.org/' + zoom + '/' + x + '/' + y + '.png';
}
mapTypeId
- id, used when you add this map in map type controlsname
- name, for map type controltileUrlCallbackJsFunction
- javascript function providing url of the tile by its coordinates and zoomvoid addImageMapType(ImageMapType imageMapType)
imageMapType
- void removeImageMapType(ImageMapType imageMapType)
imageMapType
- void addOverlayImageMapType(ImageMapType imageMapType)
imageMapType
- void removeOverlayImageMapType(ImageMapType imageMapType)
imageMapType
- void setZoom(int zoom)
zoom
- zoomint getZoom()
Marker addMarker(java.lang.String caption, GeoPoint position, boolean draggable, java.lang.String iconUrl)
caption
- captionposition
- positiondraggable
- draggableiconUrl
- icon URLvoid addMarker(Marker marker)
marker
- markervoid removeMarker(Marker marker)
marker
- markervoid clearMarkers()
boolean hasMarker(Marker marker)
marker
- markerjava.util.Collection<Marker> getMarkers()
@Deprecated void setSizeUndefined()
Component.setSizeAuto()
GeoPoint getCenter()
void setCenter(GeoPoint center)
center
- centerGeoPoint getBoundNorthEast()
addMapInitListener(com.haulmont.charts.gui.map.model.listeners.MapInitListener)
GeoPoint getBoundSouthWest()
addMapInitListener(com.haulmont.charts.gui.map.model.listeners.MapInitListener)
void addPolyline(Polyline polyline)
polyline
- polylinevoid removePolyline(Polyline polyline)
polyline
- polylinevoid addCircleOverlay(Circle circle)
circle
- circlevoid removeCircleOverlay(Circle circle)
circle
- circlevoid setVisibleAreaBoundLimitsEnabled(boolean enabled)
enabled
- enabledvoid fitToBounds(GeoPoint boundsNE, GeoPoint boundsSW)
boundsNE
- north-east coordinateboundsSW
- south-west coordinateboolean isVisibleAreaBoundLimitsEnabled()
void setVisibleAreaBoundLimits(GeoPoint limitNE, GeoPoint limitSW)
limitNE
- north-east coordinatelimitSW
- south-west coordinatevoid setMaxZoom(int maxZoom)
maxZoom
- zoomint getMaxZoom()
void setMinZoom(int minZoom)
minZoom
- zoomint getMinZoom()
boolean isDraggable()
void setDraggable(boolean draggable)
draggable
- true for draggableboolean areKeyboardShortcutsEnabled()
void setKeyboardShortcutsEnabled(boolean enabled)
enabled
- enabledboolean isScrollWheelEnabled()
void setScrollWheelEnabled(boolean enabled)
enabled
- enabledboolean isCenterBoundLimitsEnabled()
void setCenterBoundLimitsEnabled(boolean enable)
enable
- enablevoid setCenterBoundLimits(GeoPoint limitNE, GeoPoint limitSW)
limitNE
- north-east coordinatelimitSW
- south-west coordinatevoid addPolygonOverlay(Polygon polygon)
polygon
- polygonvoid removePolygonOverlay(Polygon polygon)
polygon
- polygonvoid setMapType(MapViewer.Type type)
type
- typevoid setMapType(java.lang.String typeId)
typeId
- map type idvoid setMapTypes(java.util.List<java.lang.String> mapTypeIds)
MapViewer.Type.getMapTypeId()
mapTypeIds
- map type idsjava.lang.String getMapType()
void openInfoWindow(InfoWindow infoWindow)
infoWindow
- info windowvoid closeInfoWindow(InfoWindow infoWindow)
infoWindow
- info windowboolean isInfoWindowOpen(InfoWindow infoWindow)
infoWindow
- info windowvoid setDrawingOptions(DrawingOptions drawingOptions)
drawingOptions
- drawing optionsvoid route(DirectionsRequest request, DirectionsRequestCallback callback)
request
- requestcallback
- callback objectLabel createLabel()
addLabel(Label)
.Label createLabel(java.lang.String value, GeoPoint position)
addLabel(Label)
.value
- valueposition
- positionLabel createLabel(java.lang.String value, GeoPoint position, Label.ContentType contentType)
addLabel(Label)
.value
- valueposition
- positioncontentType
- contentTypevoid addLabel(Label label)
label
- labelvoid removeLabel(Label label)
label
- labelvoid removePolygonVertex(Polygon polygon, GeoPoint vertex)
polygon
- polygonvertex
- vertexvoid setRemoveMessage(java.lang.String message)
message
- localized messagejava.lang.String getRemoveMessage()
void setVertexRemovingEnabled(boolean enabled)
enabled
- enabledboolean isVertexRemovingEnabled()