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 Details

    • Map

      protected Map()
  • Method Details

    • create

      public static Map create(com.google.gwt.dom.client.Element e, MapOptions options)
      Initializes Leaflet map overlay (L.Map) around given element.
      Parameters:
      e - the element to the map should be rendered
      options - options for the map
      Returns:
      the created Map object
    • getZoom

      public final double getZoom()
    • getCenter

      public final LatLng getCenter()
    • setView

      public final void setView(LatLng center, Double zoom)
    • setView

      public final void setView(LatLng center, Double zoom, com.google.gwt.core.client.JavaScriptObject options)
    • flyTo

      public final void flyTo(LatLng center, Double zoom)
    • getBounds

      public final LatLngBounds getBounds()
    • fitBounds

      public final void fitBounds(LatLngBounds b)
    • locate

      public final void locate(LocateOptions o)
    • stopLocate

      public final void stopLocate()
    • getAttributionControl

      public final Attribution getAttributionControl()
    • invalidateSize

      public final void invalidateSize()
    • addLayer

      public final void addLayer(Layer layer)
    • removeLayer

      public final void removeLayer(Layer layer)
    • 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

      public final com.google.gwt.core.client.JavaScriptObject addClickListener(ClickListener listener)
      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

      public final void addControl(Control control)
    • removeControl

      public final void removeControl(Control control)
    • 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

      public final Zoom getZoomControl()
    • setMaxBounds

      public final void setMaxBounds(LatLngBounds bounds)
    • closePopup

      public final void closePopup(Popup popup)
    • closeTooltip

      public final void closeTooltip(Tooltip tooltip)
    • 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

      public final LatLng containerPointToLatLng(Point p)