public interface MapViewer
extends com.haulmont.cuba.gui.components.Component, com.haulmont.cuba.gui.components.Component.BelongToFrame, com.haulmont.cuba.gui.components.Component.HasIcon, com.haulmont.cuba.gui.components.Component.HasCaption
Modifier and Type | Interface and Description |
---|---|
static class |
MapViewer.AbstractMapEvent |
static class |
MapViewer.CircleCenterChangeEvent
Describes circle center change event.
|
static class |
MapViewer.CircleClickEvent
Describes circle click event.
|
static class |
MapViewer.CircleCompleteEvent
Describes circle complete event.
|
static class |
MapViewer.CircleDoubleClickEvent
Describes circle double click event.
|
static class |
MapViewer.CircleRadiusChangeEvent
Describes circle radius change event.
|
static class |
MapViewer.CircleRightClickEvent
Describes circle right click event.
|
static class |
MapViewer.InfoWindowCloseEvent
Describes info window close event.
|
static class |
MapViewer.MapClickEvent
Describes map click event.
|
static class |
MapViewer.MapInitEvent
Describes map init event.
|
static class |
MapViewer.MapMoveEvent
Describes map move event.
|
static class |
MapViewer.MapRightClickEvent
Describes map right click event.
|
static class |
MapViewer.MarkerClickEvent
Describes marker click event.
|
static class |
MapViewer.MarkerDoubleClickEvent
Describes marker double click event.
|
static class |
MapViewer.MarkerDragEvent
Describes marker drag event.
|
static class |
MapViewer.MarkerRightClickEvent
Describes marker right click event.
|
static class |
MapViewer.PolygonClickEvent
Describes polygon click event.
|
static class |
MapViewer.PolygonCompleteEvent
Describes polygon complete event.
|
static class |
MapViewer.PolygonEditEvent
Describes polygon edit event.
|
static class |
MapViewer.PolygonRightClickEvent
Describes polygon right click event.
|
static class |
MapViewer.Type
Map types
|
com.haulmont.cuba.gui.components.Component.Alignment, com.haulmont.cuba.gui.components.Component.BelongToFrame, com.haulmont.cuba.gui.components.Component.Disposable, com.haulmont.cuba.gui.components.Component.Editable, com.haulmont.cuba.gui.components.Component.Focusable, com.haulmont.cuba.gui.components.Component.HasCaption, com.haulmont.cuba.gui.components.Component.HasDescription, com.haulmont.cuba.gui.components.Component.HasIcon, com.haulmont.cuba.gui.components.Component.HasXmlDescriptor, com.haulmont.cuba.gui.components.Component.OptionsStyleProvider, 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 |
---|---|
com.haulmont.bali.events.Subscription |
addCircleCenterChangeListener(java.util.function.Consumer<MapViewer.CircleCenterChangeEvent> listener)
Adds a listener to circle.
|
com.haulmont.bali.events.Subscription |
addCircleClickListener(java.util.function.Consumer<MapViewer.CircleClickEvent> listener)
Adds a listener to circle.
|
com.haulmont.bali.events.Subscription |
addCircleCompleteListener(java.util.function.Consumer<MapViewer.CircleCompleteEvent> listener)
Adds a listener to circle.
|
com.haulmont.bali.events.Subscription |
addCircleDoubleClickListener(java.util.function.Consumer<MapViewer.CircleDoubleClickEvent> listener)
Adds a listener to circle.
|
void |
addCircleOverlay(Circle circle)
Adds circle on map
|
com.haulmont.bali.events.Subscription |
addCircleRadiusChangeListener(java.util.function.Consumer<MapViewer.CircleRadiusChangeEvent> listener)
Adds a listener to circle.
|
com.haulmont.bali.events.Subscription |
addCircleRightClickListener(java.util.function.Consumer<MapViewer.CircleRightClickEvent> listener)
Adds a listener to circle.
|
void |
addHeatMapLayer(HeatMapLayer layer)
Adds heatmap layer on map.
|
void |
addImageMapType(ImageMapType imageMapType)
Adds Map type
|
com.haulmont.bali.events.Subscription |
addInfoWindowClosedListener(java.util.function.Consumer<MapViewer.InfoWindowCloseEvent> listener)
Adds a listener to info window.
|
void |
addLabel(Label label)
Adds label on the map.
|
com.haulmont.bali.events.Subscription |
addMapClickListener(java.util.function.Consumer<MapViewer.MapClickEvent> listener)
Adds a listener to map.
|
com.haulmont.bali.events.Subscription |
addMapInitListener(java.util.function.Consumer<MapViewer.MapInitEvent> listener)
Adds a listener to map.
|
com.haulmont.bali.events.Subscription |
addMapMoveListener(java.util.function.Consumer<MapViewer.MapMoveEvent> listener)
Adds a listener to map.
|
com.haulmont.bali.events.Subscription |
addMapRightClickListener(java.util.function.Consumer<MapViewer.MapRightClickEvent> listener)
Adds a listener to map.
|
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.
|
com.haulmont.bali.events.Subscription |
addMarkerClickListener(java.util.function.Consumer<MapViewer.MarkerClickEvent> listener)
Adds a listener to a marker.
|
com.haulmont.bali.events.Subscription |
addMarkerDoubleClickListener(java.util.function.Consumer<MapViewer.MarkerDoubleClickEvent> listener)
Adds a listener to a marker.
|
com.haulmont.bali.events.Subscription |
addMarkerDragListener(java.util.function.Consumer<MapViewer.MarkerDragEvent> listener)
Adds a listener to a marker.
|
com.haulmont.bali.events.Subscription |
addMarkerRightClickListener(java.util.function.Consumer<MapViewer.MarkerRightClickEvent> listener)
Adds a listener to a marker.
|
void |
addOverlayImageMapType(ImageMapType imageMapType)
Adds image map type as overlay on top of the active map
|
com.haulmont.bali.events.Subscription |
addPolygonClickListener(java.util.function.Consumer<MapViewer.PolygonClickEvent> listener)
Adds a listener to a polygon.
|
com.haulmont.bali.events.Subscription |
addPolygonCompleteListener(java.util.function.Consumer<MapViewer.PolygonCompleteEvent> listener)
Adds a listener to a polygon.
|
com.haulmont.bali.events.Subscription |
addPolygonEditListener(java.util.function.Consumer<MapViewer.PolygonEditEvent> listener)
Adds a listener to a polygon.
|
void |
addPolygonOverlay(Polygon polygon)
Adds polygon on map
|
com.haulmont.bali.events.Subscription |
addPolygonRightClickListener(java.util.function.Consumer<MapViewer.PolygonRightClickEvent> listener)
Adds a listener to a polygon.
|
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:
f = function f(x, y, zoom) {
return 'http://tile.openstreetmap.org/' + zoom + '/' + x + '/' + y + '.png';
}
|
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:
f = function f(x, y, zoom) {
return 'http://tile.openstreetmap.org/' + zoom + '/' + x + '/' + y + '.png';
}
|
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(java.util.function.Consumer<MapViewer.CircleCenterChangeEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeCircleClickListener(java.util.function.Consumer<MapViewer.CircleClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeCircleCompleteListener(java.util.function.Consumer<MapViewer.CircleCompleteEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeCircleDoubleClickListener(java.util.function.Consumer<MapViewer.CircleDoubleClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeCircleOverlay(Circle circle)
Removes circle from map
|
void |
removeCircleRadiusChangeListener(java.util.function.Consumer<MapViewer.CircleRadiusChangeEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeCircleRightClickListener(java.util.function.Consumer<MapViewer.CircleRightClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeHeatMapLayer(HeatMapLayer layer)
Removes heatmap layer from map.
|
void |
removeImageMapType(ImageMapType imageMapType)
Removes Map Type
|
void |
removeInfoWindowClosedListener(java.util.function.Consumer<MapViewer.InfoWindowCloseEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeLabel(Label label)
Removes label from the map.
|
void |
removeMapClickListener(java.util.function.Consumer<MapViewer.MapClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeMapInitListener(java.util.function.Consumer<MapViewer.MapInitEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeMapMoveListener(java.util.function.Consumer<MapViewer.MapMoveEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeMapRightClickListener(java.util.function.Consumer<MapViewer.MapRightClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeMarker(Marker marker)
Removes marker from map
|
void |
removeMarkerClickListener(java.util.function.Consumer<MapViewer.MarkerClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeMarkerDoubleClickListener(java.util.function.Consumer<MapViewer.MarkerDoubleClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeMarkerDragListener(java.util.function.Consumer<MapViewer.MarkerDragEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeMarkerRightClickListener(java.util.function.Consumer<MapViewer.MarkerRightClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removeOverlayImageMapType(ImageMapType imageMapType)
Removes overlay map
|
void |
removePolygonClickListener(java.util.function.Consumer<MapViewer.PolygonClickEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removePolygonCompleteListener(java.util.function.Consumer<MapViewer.PolygonCompleteEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removePolygonEditListener(java.util.function.Consumer<MapViewer.PolygonEditEvent> listener)
Deprecated.
Use
Subscription instead |
void |
removePolygonOverlay(Polygon polygon)
Removes polygon from map
|
void |
removePolygonRightClickListener(java.util.function.Consumer<MapViewer.PolygonRightClickEvent> listener)
Deprecated.
Use
Subscription instead |
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, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getIcon, setIcon, setIconFromSet
static final java.lang.String NAME
@Deprecated static final java.lang.String TAG_NAME
com.haulmont.bali.events.Subscription addMarkerClickListener(java.util.function.Consumer<MapViewer.MarkerClickEvent> listener)
listener
- a listener to add@Deprecated void removeMarkerClickListener(java.util.function.Consumer<MapViewer.MarkerClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addMarkerDoubleClickListener(java.util.function.Consumer<MapViewer.MarkerDoubleClickEvent> listener)
listener
- a listener to add@Deprecated void removeMarkerDoubleClickListener(java.util.function.Consumer<MapViewer.MarkerDoubleClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addMarkerDragListener(java.util.function.Consumer<MapViewer.MarkerDragEvent> listener)
listener
- a listener to add@Deprecated void removeMarkerDragListener(java.util.function.Consumer<MapViewer.MarkerDragEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addMarkerRightClickListener(java.util.function.Consumer<MapViewer.MarkerRightClickEvent> listener)
listener
- a listener to add@Deprecated void removeMarkerRightClickListener(java.util.function.Consumer<MapViewer.MarkerRightClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addMapMoveListener(java.util.function.Consumer<MapViewer.MapMoveEvent> listener)
listener
- a listener to add@Deprecated void removeMapMoveListener(java.util.function.Consumer<MapViewer.MapMoveEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addMapClickListener(java.util.function.Consumer<MapViewer.MapClickEvent> listener)
listener
- a listener to add@Deprecated void removeMapClickListener(java.util.function.Consumer<MapViewer.MapClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addMapRightClickListener(java.util.function.Consumer<MapViewer.MapRightClickEvent> listener)
listener
- a listener to add@Deprecated void removeMapRightClickListener(java.util.function.Consumer<MapViewer.MapRightClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addInfoWindowClosedListener(java.util.function.Consumer<MapViewer.InfoWindowCloseEvent> listener)
listener
- a listener to add@Deprecated void removeInfoWindowClosedListener(java.util.function.Consumer<MapViewer.InfoWindowCloseEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addPolygonCompleteListener(java.util.function.Consumer<MapViewer.PolygonCompleteEvent> listener)
listener
- a listener to add@Deprecated void removePolygonCompleteListener(java.util.function.Consumer<MapViewer.PolygonCompleteEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addPolygonEditListener(java.util.function.Consumer<MapViewer.PolygonEditEvent> listener)
listener
- a listener to add@Deprecated void removePolygonEditListener(java.util.function.Consumer<MapViewer.PolygonEditEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addPolygonClickListener(java.util.function.Consumer<MapViewer.PolygonClickEvent> listener)
listener
- a listener to add@Deprecated void removePolygonClickListener(java.util.function.Consumer<MapViewer.PolygonClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addPolygonRightClickListener(java.util.function.Consumer<MapViewer.PolygonRightClickEvent> listener)
listener
- a listener to add@Deprecated void removePolygonRightClickListener(java.util.function.Consumer<MapViewer.PolygonRightClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addMapInitListener(java.util.function.Consumer<MapViewer.MapInitEvent> listener)
listener
- a listener to add@Deprecated void removeMapInitListener(java.util.function.Consumer<MapViewer.MapInitEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addCircleClickListener(java.util.function.Consumer<MapViewer.CircleClickEvent> listener)
listener
- a listener to add@Deprecated void removeCircleClickListener(java.util.function.Consumer<MapViewer.CircleClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addCircleDoubleClickListener(java.util.function.Consumer<MapViewer.CircleDoubleClickEvent> listener)
listener
- a listener to add@Deprecated void removeCircleDoubleClickListener(java.util.function.Consumer<MapViewer.CircleDoubleClickEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addCircleRadiusChangeListener(java.util.function.Consumer<MapViewer.CircleRadiusChangeEvent> listener)
listener
- a listener to add@Deprecated void removeCircleRadiusChangeListener(java.util.function.Consumer<MapViewer.CircleRadiusChangeEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addCircleCenterChangeListener(java.util.function.Consumer<MapViewer.CircleCenterChangeEvent> listener)
@Deprecated void removeCircleCenterChangeListener(java.util.function.Consumer<MapViewer.CircleCenterChangeEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addCircleCompleteListener(java.util.function.Consumer<MapViewer.CircleCompleteEvent> listener)
listener
- a listener to add@Deprecated void removeCircleCompleteListener(java.util.function.Consumer<MapViewer.CircleCompleteEvent> listener)
Subscription
insteadcom.haulmont.bali.events.Subscription addCircleRightClickListener(java.util.function.Consumer<MapViewer.CircleRightClickEvent> listener)
listener
- a listener to add@Deprecated void removeCircleRightClickListener(java.util.function.Consumer<MapViewer.CircleRightClickEvent> listener)
Subscription
insteadGeoPoint 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(Consumer)
GeoPoint getBoundSouthWest()
addMapInitListener(Consumer)
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()