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 |
---|---|
Point |
Point.add(Point other)
Returns the result of addition of the current and the given points.
|
Point |
Point.clone()
Returns a copy of the current point.
|
Point |
Map.containerPointToLayerPoint(Point point)
Converts the point relative to the map container to a point relative to
the map layer.
|
Point |
Point.divideBy(double number)
Returns the result of division of the current point by the given number.
|
Point |
Point.divideBy(double number,
boolean round)
Returns the result of division of the current point by the given number.
|
Point |
Point.floor()
Returns a copy of the current point with floored coordinates (rounded
down).
|
Point |
Bounds.getCenter()
Returns the center point of the bounds.
|
Point |
Bounds.getMax()
Gets the bottom right corner of the rectangle.
|
Point |
Bounds.getMin()
Gets the top left corner of the rectangle.
|
Point |
Map.getPixelOrigin()
Returns the projected pixel coordinates of the top left point of the map
layer (useful in custom layer and overlay implementations).
|
Point |
Map.getSize()
Returns the current size of the map container.
|
Point |
Bounds.getSize()
Returns the size of the given bounds.
|
Point |
ICRS.getSize(int zoom)
Returns the size of the world in pixels for a particular zoom.
|
Point |
Map.latLngToContainerPoint(LatLng latlng)
Returns the map container point that corresponds to the given
geographical coordinates.
|
Point |
Map.latLngToLayerPoint(LatLng latlng)
Returns the map layer point that corresponds to the given geographical
coordinates (useful for placing overlays on the map).
|
Point |
ICRS.latLngToPoint(LatLng latlng,
int zoom)
Projects geographical coordinates on a given zoom into pixel coordinates.
|
Point |
Map.layerPointToContainerPoint(Point point)
Converts the point relative to the map layer to a point relative to the
map container.
|
Point |
Point.multiplyBy(double number)
Returns the result of multiplication of the current point by the given
number.
|
Point |
Map.project(LatLng latlng)
Projects the given geographical coordinates to absolute pixel coordinates
for the given zoom level (current zoom level by default).
|
Point |
IProjection.project(LatLng latlng)
Projects geographical coordinates into a 2D point.
|
Point |
ICRS.project(LatLng latlng)
Projects geographical coordinates into coordinates in units accepted for
this CRS (e.g. meters for
EPSG:3857 , for passing it to WMS
services). |
Point |
Map.project(LatLng latlng,
int zoom)
Projects the given geographical coordinates to absolute pixel coordinates
for the given zoom level (current zoom level by default).
|
Point |
Point.round()
Returns a copy of the current point with rounded coordinates.
|
Point |
Point.subtract(Point other)
Returns the result of subtraction of the given point from the current.
|
Point |
Transformation.transform(Point point)
Returns a transformed point.
|
Point |
Transformation.transform(Point point,
double scale)
Returns a transformed point, multiplied by the given scale.
|
Point |
Transformation.untransform(Point point)
Returns the reverse transformation of the given point, optionally divided by the given scale.
|
Point |
Transformation.untransform(Point point,
double scale)
Returns the reverse transformation of the given point, optionally divided by the given scale.
|
Modifier and Type | Method and Description |
---|---|
Point |
Point.add(Point other)
Returns the result of addition of the current and the given points.
|
LatLng |
Map.containerPointToLatLng(Point point)
Returns the geographical coordinates of a given map container point.
|
Point |
Map.containerPointToLayerPoint(Point point)
Converts the point relative to the map container to a point relative to
the map layer.
|
boolean |
Point.contains(Point other)
Returns
true if the both coordinates of the given point are
less than the corresponding current point coordinates (in absolute
values). |
boolean |
Bounds.contains(Point point)
Returns
true if the rectangle contains the given point. |
double |
Point.distanceTo(Point other)
Returns the distance between the current and the given points.
|
void |
Bounds.extend(Point point)
Extends the bounds to contain the given point.
|
Point |
Map.layerPointToContainerPoint(Point point)
Converts the point relative to the map layer to a point relative to the
map container.
|
LatLng |
Map.layerPointToLatLng(Point point)
Returns the geographical coordinates of a given map layer point.
|
LatLng |
ICRS.pointToLatLng(Point point,
int zoom)
The inverse of
latLngToPoint . |
PopupOptions |
PopupOptions.setAutoPanPadding(Point autoPanPadding)
Sets autoPanPadding option
|
PopupOptions |
PopupOptions.setAutoPanPaddingBottomRight(Point autoPanPaddingBottomRight)
Sets autoPanPaddingBottomRight option
|
PopupOptions |
PopupOptions.setAutoPanPaddingTopLeft(Point autoPanPaddingTopLeft)
Sets autoPanPaddingTopLeft option
|
IconOptions |
IconOptions.setIconAnchor(Point anchor)
Sets icon anchor option
|
IconOptions |
IconOptions.setIconSize(Point size)
Sets icon size option
|
Bounds |
Bounds.setMax(Point point)
Sets the bottom right corner of the rectangle.
|
Bounds |
Bounds.setMin(Point point)
Sets the top left corner of the rectangle.
|
PopupOptions |
PopupOptions.setOffset(Point offset)
Sets offset option
|
IconOptions |
IconOptions.setPopupAnchor(Point anchor)
Sets popup anchor option
|
IconOptions |
IconOptions.setShadowAnchor(Point anchor)
Sets shadow anchor option
|
IconOptions |
IconOptions.setShadowSize(Point size)
Sets shadow size option
|
Point |
Point.subtract(Point other)
Returns the result of subtraction of the given point from the current.
|
Point |
Transformation.transform(Point point)
Returns a transformed point.
|
Point |
Transformation.transform(Point point,
double scale)
Returns a transformed point, multiplied by the given scale.
|
LatLng |
Map.unproject(Point point)
Projects the given absolute pixel coordinates to geographical coordinates
for the given zoom level (current zoom level by default).
|
LatLng |
IProjection.unproject(Point point)
The inverse of
project . |
LatLng |
Map.unproject(Point point,
int zoom)
Projects the given absolute pixel coordinates to geographical coordinates
for the given zoom level (current zoom level by default).
|
Point |
Transformation.untransform(Point point)
Returns the reverse transformation of the given point, optionally divided by the given scale.
|
Point |
Transformation.untransform(Point point,
double scale)
Returns the reverse transformation of the given point, optionally divided by the given scale.
|
Constructor and Description |
---|
Bounds(Point[] points)
Creates a Bounds object defined by the points it contains.
|
Bounds(Point topLeft,
Point bottomRight)
Creates a Bounds object from two coordinates.
|
Modifier and Type | Method and Description |
---|---|
Point |
MouseEvent.getContainerPoint() |
Point |
MouseEvent.getLayerPoint() |
Point |
ResizeEvent.getNewSize() |
Point |
ResizeEvent.getOldSize() |
Constructor and Description |
---|
MouseEvent(Object src,
String type,
LatLng latlng,
Point layerPoint,
Point containerPoint) |
ResizeEvent(Object src,
String type,
Point oldSize,
Point newSize) |
Copyright © 2017. All rights reserved.