Package | Description |
---|---|
net.java.html.leaflet |
Leaflet API for Java built around the
Map class. |
Modifier and Type | Method and Description |
---|---|
Map |
Map.addDragEndListener(DragEndEvent.Type type,
DragEndListener listener)
Adds a drag end listener to a particular drag end event type of the
object.
|
Map |
Map.addErrorListener(ErrorEvent.Type type,
ErrorListener listener)
Adds a error listener to a particular error event type of the object.
|
Map |
Map.addEventListener(Event.Type type,
EventListener listener)
Adds a event listener to a particular event type of the object.
|
Map |
Map.addLayer(ILayer layer)
Adds the given layer to the map.
|
Map |
Map.addLayerListener(LayerEvent.Type type,
LayerListener listener)
Adds a layer listener to a particular layer event type of the object.
|
Map |
Map.addLocationListener(LocationEvent.Type type,
LocationListener listener)
Adds a location listener to a particular location event type of the
object.
|
Map |
Map.addMouseListener(MouseEvent.Type type,
MouseListener listener)
Adds a mouse listener to a particular mouse event type of the object.
|
Map |
Map.addPopupListener(PopupEvent.Type type,
PopupListener listener)
Adds a popup listener to a particular popup event type of the object.
|
Map |
Map.addResizeListener(ResizeEvent.Type type,
ResizeListener listener)
Adds a resize listener to a particular resize event type of the object.
|
Map |
Map.clearAllEventListeners()
Removes all listeners to all events on the object.
|
Map |
Map.closePopup()
Closes the popup previously opened with
openPopup(java.lang.String, net.java.html.leaflet.LatLng) . |
Map |
Map.closePopup(Popup popup)
Closes the given popup.
|
Map |
Map.openPopup(Popup popup,
LatLng latlng)
Opens the specified popup while closing the previously opened (to make
sure only one is opened at one time for usability).
|
Map |
Map.openPopup(Popup popup,
LatLng latlng,
PopupOptions options)
Opens the specified popup while closing the previously opened (to make
sure only one is opened at one time for usability).
|
Map |
Map.openPopup(String html,
LatLng latlng)
Creates a popup and opens it in the given point on a map.
|
Map |
Map.removeDragEndListener(DragEndEvent.Type type,
DragEndListener listener)
Removes a drag end listener to a particular drag end event type of the
object.
|
Map |
Map.removeErrorListener(ErrorEvent.Type type,
ErrorListener listener)
Removes a error listener to a particular error event type of the object.
|
Map |
Map.removeEventListener(Event.Type type,
EventListener listener)
Removes a event listener to a particular event type of the object.
|
Map |
Map.removeLayer(ILayer layer)
Removes the given layer from the map.
|
Map |
Map.removeLayerListener(LayerEvent.Type type,
LayerListener listener)
Removes a layer listener to a particular layer event type of the object.
|
Map |
Map.removeLocationListener(LocationEvent.Type type,
LocationListener listener)
Removes a location listener to a particular location event type of the
object.
|
Map |
Map.removeMouseListener(MouseEvent.Type type,
MouseListener listener)
Removes a mouse listener to a particular mouse event type of the object.
|
Map |
Map.removePopupListener(PopupEvent.Type type,
PopupListener listener)
Removes a popup listener to a particular popup event type of the object.
|
Map |
Map.removeResizeListener(ResizeEvent.Type type,
ResizeListener listener)
Removes a resize listener to a particular resize event type of the
object.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
Rectangle.addTo(Map map)
Adds the layer to the map.
|
Popup |
Popup.addTo(Map map)
Adds the popup to the map.
|
PolyLine |
PolyLine.addTo(Map map)
Adds the layer to the map.
|
Polygon |
Polygon.addTo(Map map)
Adds the layer to the map.
|
Path |
Path.addTo(Map map)
Adds the layer to the map.
|
MultiPolyline |
MultiPolyline.addTo(Map map)
Adds the group of layers to the map.
|
MultiPolygon |
MultiPolygon.addTo(Map map)
Adds the group of layers to the map.
|
void |
Marker.addTo(Map map)
Adds the marker to the map.
|
LayerGroup |
LayerGroup.addTo(Map map)
Adds the group of layers to the map.
|
ImageOverlay |
ImageOverlay.addTo(Map map)
Adds the layer to the map.
|
FeatureGroup |
FeatureGroup.addTo(Map map)
Adds the group of layers to the map.
|
CircleMarker |
CircleMarker.addTo(Map map)
Adds the layer to the map.
|
Circle |
Circle.addTo(Map map)
Adds the layer to the map.
|
Popup |
Popup.openOn(Map map)
Adds the popup to the map and closes the previous one.
|
Copyright © 2017. All rights reserved.