Package | Description |
---|---|
net.java.html.leaflet |
Leaflet API for Java built around the
Map class. |
Modifier and Type | Method and Description |
---|---|
Rectangle |
Rectangle.addLatLng(LatLng latlng)
Adds a given point to the rectangle.
|
Rectangle |
Rectangle.addTo(Map map)
Adds the layer to the map.
|
Rectangle |
Rectangle.bindPopup(Popup popup)
Binds a given popup object to the rectangle.
|
Rectangle |
Rectangle.bindPopup(Popup popup,
PopupOptions options)
Binds a given popup object with the given options to the rectangle.
|
Rectangle |
Rectangle.bindPopup(String html)
Binds a popup with a particular HTML content to a click on this
rectangle.
|
Rectangle |
Rectangle.bringToBack()
Brings the layer to the bottom of all path layers.
|
Rectangle |
Rectangle.bringToFront()
Brings the layer to the top of all path layers.
|
Rectangle |
Rectangle.closePopup()
Closes the rectangle's bound popup if it is opened.
|
Rectangle |
Rectangle.openPopup()
Opens the popup previously bound by the
bindPopup method. |
Rectangle |
Rectangle.redraw()
Redraws the layer.
|
Rectangle |
Rectangle.setBounds(LatLngBounds bounds)
Redraws the rectangle with the passed bounds.
|
Rectangle |
Rectangle.setLatLngs(LatLng[] latlngs)
Replaces all the points in the rectangle with the given array of
geographical points.
|
Rectangle |
Rectangle.setStyle(PathOptions options)
Changes the appearance of a Rectangle based on the options in the
PathOptions object. |
Rectangle |
Rectangle.unbindPopup()
Unbinds the popup previously bound to the rectangle with
bindPopup . |
Copyright © 2017. All rights reserved.