Class Map
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
io.jmix.mapsui.widget.leaflet.client.Map
- Direct Known Subclasses:
EditableMap
public class Map
extends com.google.gwt.core.client.JavaScriptObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal com.google.gwt.core.client.JavaScriptObject
final com.google.gwt.core.client.JavaScriptObject
addClickListener
(ClickListener listener) Adds click listener to map.final com.google.gwt.core.client.JavaScriptObject
addContextMenuListener
(ContextMenuListener listener) final void
addControl
(Control control) final com.google.gwt.core.client.JavaScriptObject
addDragEndListener
(DragEndListener listener) final void
final com.google.gwt.core.client.JavaScriptObject
Adds location error listener to map.final com.google.gwt.core.client.JavaScriptObject
Adds location found listener to map.final com.google.gwt.core.client.JavaScriptObject
addMoveEndListener
(MoveEndListener listener) final com.google.gwt.core.client.JavaScriptObject
addOverlayAddListener
(OverlayAddListener listener) final com.google.gwt.core.client.JavaScriptObject
final com.google.gwt.core.client.JavaScriptObject
addZoomEndListener
(ZoomEndListener listener) final void
closePopup
(Popup popup) final void
closeTooltip
(Tooltip tooltip) final LatLng
static Map
create
(com.google.gwt.dom.client.Element e, MapOptions options) Initializes Leaflet map overlay (L.Map) around given element.final void
final void
final Attribution
final LatLngBounds
final LatLng
final double
getZoom()
final Zoom
final void
final void
final void
final void
removeControl
(Control control) final void
removeLayer
(Layer layer) final void
removeListener
(com.google.gwt.core.client.JavaScriptObject listenerRegistration) Removes listener from map.final void
setBoxZoom
(boolean boxZoom) final void
setDoubleClickZoom
(boolean doubleClickZoom) final void
setDragging
(boolean dragging) final void
setKeyboard
(boolean keyboard) final void
setMaxBounds
(LatLngBounds bounds) final void
setScrollWheelZoom
(boolean scrollWheelZoom) final void
setTouchZoom
(boolean touchZoom) final void
final void
final void
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
Map
protected Map()
-
-
Method Details
-
create
Initializes Leaflet map overlay (L.Map) around given element.- Parameters:
e
- the element to the map should be renderedoptions
- options for the map- Returns:
- the created Map object
-
getZoom
public final double getZoom() -
getCenter
-
setView
-
setView
-
flyTo
-
getBounds
-
fitBounds
-
locate
-
stopLocate
public final void stopLocate() -
getAttributionControl
-
invalidateSize
public final void invalidateSize() -
addLayer
-
removeLayer
-
addLocationFoundListener
public final com.google.gwt.core.client.JavaScriptObject addLocationFoundListener(LocationFoundListener listener) Adds location found listener to map.- Parameters:
listener
- the listener- Returns:
- a handle that can be used to remove this specific listener from the map
-
addLocationErrorListener
public final com.google.gwt.core.client.JavaScriptObject addLocationErrorListener(LocationErrorListener listener) Adds location error listener to map.- Parameters:
listener
- the listener- Returns:
- a handle that can be used to remove this specific listener from the map
-
addClickListener
Adds click listener to map.- Parameters:
listener
- the listener- Returns:
- a handle that can be used to remove this specific listener from the map
-
addContextMenuListener
public final com.google.gwt.core.client.JavaScriptObject addContextMenuListener(ContextMenuListener listener) -
addControl
-
removeControl
-
addBaseLayerChangeListener
public final com.google.gwt.core.client.JavaScriptObject addBaseLayerChangeListener(BaseLayerChangeListener listener) -
addOverlayAddListener
public final com.google.gwt.core.client.JavaScriptObject addOverlayAddListener(OverlayAddListener listener) -
addOverlayRemoveListener
public final com.google.gwt.core.client.JavaScriptObject addOverlayRemoveListener(OverlayRemoveListener listener) -
addMoveEndListener
public final com.google.gwt.core.client.JavaScriptObject addMoveEndListener(MoveEndListener listener) -
addZoomEndListener
public final com.google.gwt.core.client.JavaScriptObject addZoomEndListener(ZoomEndListener listener) -
addDragEndListener
public final com.google.gwt.core.client.JavaScriptObject addDragEndListener(DragEndListener listener) -
removeListener
public final void removeListener(com.google.gwt.core.client.JavaScriptObject listenerRegistration) Removes listener from map. The listener is detected on listener registration object returned by listener addition method.- Parameters:
listenerRegistration
- the object returned by listener addition method
-
removeClickListeners
public final void removeClickListeners() -
getZoomControl
-
setMaxBounds
-
closePopup
-
closeTooltip
-
setDragging
public final void setDragging(boolean dragging) -
setBoxZoom
public final void setBoxZoom(boolean boxZoom) -
setDoubleClickZoom
public final void setDoubleClickZoom(boolean doubleClickZoom) -
setKeyboard
public final void setKeyboard(boolean keyboard) -
setScrollWheelZoom
public final void setScrollWheelZoom(boolean scrollWheelZoom) -
setTouchZoom
public final void setTouchZoom(boolean touchZoom) -
containerPointToLatLng
-