Package | Description |
---|---|
com.gwidgets.api.leaflet | |
com.gwidgets.api.leaflet.events | |
com.gwidgets.api.leaflet.options |
Modifier and Type | Field and Description |
---|---|
LatLngBounds |
Projection.bounds |
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
Polyline.getBounds() |
LatLngBounds |
FeatureGroup.getBounds()
Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
|
LatLngBounds |
Map.getBounds()
Returns the LatLngBounds of the current map view.
|
LatLngBounds |
Path.getBounds()
Returns the LatLngBounds of the path.
|
static LatLngBounds |
L.latLngBounds(LatLng southWest,
LatLng northEast)
Represents a rectangular geographical area on a map.
|
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 otherBounds)
Returns true if the rectangle contains the given one.
|
Boolean |
LatLngBounds.equals(LatLngBounds otherBounds)
Returns true if the rectangle is equivalent (within a small margin of error) to the given bounds.
|
L |
LatLngBounds.extend(LatLngBounds latlng)
Extends the bounds to contain the given bounds.
|
L |
Map.fitBounds(LatLngBounds bounds,
FitBoundsOptions options)
Sets a map view that contains the given geographical bounds with the maximum zoom level possible.
|
double |
Map.getBoundsZoom(LatLngBounds bounds,
Boolean inside)
Returns the maximum zoom level on which the given bounds fit to the map view in its entirety.
|
static ImageOverlay |
L.imageOverlay(String imageUrl,
LatLngBounds bounds,
ImageOverlayOptions options)
Used to load and display a single image over specific bounds of the map, implements ILayer interface.
|
Boolean |
LatLngBounds.intersects(LatLngBounds otherBounds)
Returns true if the rectangle intersects the given bounds.
|
L |
Map.panInsideBounds(LatLngBounds bounds)
Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
|
static Rectangle |
L.rectangle(LatLngBounds bounds,
PathOptions options)
A class for drawing rectangle overlays on a map.
|
L |
Rectangle.setBounds(LatLngBounds bounds)
Redraws the rectangle with the passed bounds.
|
L |
Map.setMaxBounds(LatLngBounds bounds,
ZoomPanOptions options)
Restricts the map view to the given bounds .
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
LocationEvent.getBounds()
Gets the geographical bounds of the area user is located in (with respect to the accuracy of location).
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
TileLayerWMSOptions.getBounds() |
LatLngBounds |
TileLayerOptions.getBounds()
Gets whether the TileLayer only loads tiles that are in the given geographical bounds.
|
LatLngBounds |
GridLayerOptions.getBounds() |
LatLngBounds |
MapOptions.getMaxBounds()
Gets the bounds that restricts the view if the option is set
default null
|
Modifier and Type | Method and Description |
---|---|
TileLayerWMSOptions.Builder |
TileLayerWMSOptions.Builder.bounds(LatLngBounds bounds)
When this option is set, the TileLayer only loads tiles that are in the given geographical bounds.
|
TileLayerOptions.Builder |
TileLayerOptions.Builder.bounds(LatLngBounds bounds)
When this option is set, the TileLayer only loads tiles that are in the given geographical bounds.
|
GridLayerOptions.Builder |
GridLayerOptions.Builder.bounds(LatLngBounds bounds) |
MapOptions.Builder |
MapOptions.Builder.maxBounds(LatLngBounds maxBounds)
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.
|
Copyright © 2018 G-Widgets. All rights reserved.