Package | Description |
---|---|
net.java.html.leaflet |
Leaflet API for Java built around the
Map class. |
net.java.html.leaflet.event |
Listeners and events for the leaflet API
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
Path.getBounds()
Returns the LatLngBounds of the path.
|
LatLngBounds |
Map.getBounds()
Returns the LatLngBounds of the current map view.
|
LatLngBounds |
FeatureGroup.getBounds()
Returns the LatLngBounds of the layers.
|
LatLngBounds |
LatLngBounds.pad(double bufferRatio)
Returns bigger bounds created by extending the current bounds by a given
percentage in each direction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
LatLngBounds.contains(LatLngBounds other)
Returns
true if the rectangle contains the given one. |
void |
LatLngBounds.extend(LatLngBounds latLngBounds)
Extends the bounds to contain the given bound.
|
int |
Map.getBoundsZoom(LatLngBounds bounds)
Returns the maximum zoom level on which the given bounds fit to the map
view in its entirety.
|
int |
Map.getBoundsZoom(LatLngBounds bounds,
boolean inside)
Returns the maximum zoom level on which the given bounds fit to the map
view in its entirety.
|
boolean |
LatLngBounds.intersects(LatLngBounds other)
Returns
true if the rectangle intersects the given bounds. |
TileLayerWMSOptions |
TileLayerWMSOptions.setBounds(LatLngBounds bounds)
Sets the bounds option
|
TileLayerOptions |
TileLayerOptions.setBounds(LatLngBounds bounds)
Sets the bounds option
|
Rectangle |
Rectangle.setBounds(LatLngBounds bounds)
Redraws the rectangle with the passed bounds.
|
MapOptions |
MapOptions.setMaxBounds(LatLngBounds bounds)
When this option is set, the map restricts the view to the given
geographical bounds, bouncing the user back when he tries to pan outside
the view.
|
Constructor and Description |
---|
ImageOverlay(String imageUrl,
LatLngBounds bounds)
Instantiates an image overlay object given the URL of the image and the
geographical bounds it is tied to.
|
ImageOverlay(String imageUrl,
LatLngBounds bounds,
ImageOverlayOptions options)
Instantiates an image overlay object given the URL of the image and the
geographical bounds it is tied to.
|
Rectangle(LatLngBounds bounds)
Instantiates a rectangle object with the given geographical bounds.
|
Rectangle(LatLngBounds bounds,
PolyLineOptions options)
Instantiates a rectangle object with the given geographical bounds and an options object.
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
LocationEvent.getBounds() |
Constructor and Description |
---|
LocationEvent(Object src,
String type,
LatLng latlng,
LatLngBounds bounds,
double accuracy,
double altitude,
double altitudeAccuracy,
double heading,
double speed,
double timestamp) |
Copyright © 2017. All rights reserved.