Package | Description |
---|---|
com.gwidgets.api.leaflet | |
com.gwidgets.api.leaflet.events | |
com.gwidgets.api.leaflet.options |
Modifier and Type | Method and Description |
---|---|
Point |
Point.add(Point otherPoint)
Returns the result of addition of the current and the given points.
|
Point |
Point.clone() |
Point |
Map.containerPointToLayerPoint(Point point)
Converts the point relative to the map container to a point relative to the map layer.
|
Point |
Point.divideBy(java.lang.Number number,
java.lang.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 |
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 |
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,
java.lang.Number 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 |
Map.mouseEventToContainerPoint(MouseEvent event)
Returns the pixel coordinates of a mouse click (relative to the top left corner of the map) given its event object.
|
Point |
Map.mouseEventToLayerPoint(MouseEvent event)
Returns the pixel coordinates of a mouse click relative to the map layer given its event object.
|
Point |
Point.multiplyBy(java.lang.Number number)
Returns the result of multiplication of the current point by the given number.
|
static Point |
L.point(java.lang.Number x,
java.lang.Number y,
java.lang.Boolean round)
Represents a point with x and y coordinates in pixels.
|
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.
|
Point |
Map.project(LatLng latlng,
java.lang.Number 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 otherPoint)
Returns the result of subtraction of the given point from the current.
|
Point |
Transformation.transform(Point point,
java.lang.Number scale)
Returns a transformed point, optionally multiplied by the given scale.
|
Point |
Transformation.untransform(Point point,
java.lang.Number 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 otherPoint)
Returns the result of addition of the current and the given points.
|
static Bounds |
L.bounds(Point topLeft,
Point bottomRight)
Represents a rectangular area in pixel coordinates.
|
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.
|
java.lang.Boolean |
Point.contains(Point point)
Returns true if the both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).
|
java.lang.Boolean |
Bounds.contains(Point point)
Returns true if the rectangle contains the given point.
|
java.lang.Number |
Point.distanceTo(Point otherPoint)
Returns the distance between the current and the given points.
|
L |
Canvas.drawTile(HTMLCanvasElement canvas,
Point tilePoint,
java.lang.Number zoom)
You need to define this method after creating the instance to draw tiles; canvas is the actual canvas tile on which you can draw, tilePoint represents the tile numbers, and zoom is the current zoom.
|
java.lang.Boolean |
Point.equals(Point otherPoint)
Returns true if the given point has the same coordinates.
|
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.
|
L |
Map.panBy(Point point,
PanOptions options)
Pans the map by a given number of pixels (animated).
|
LatLng |
ICRS.pointToLatLng(Point point,
java.lang.Number zoom)
The inverse of latLngToPoint.
|
L |
PosAnimation.run(HTMLElement element,
Point newPos,
java.lang.Number duration,
java.lang.Number easeLinearity)
Runs an animation of a given element to a new position, optionally setting duration in seconds (0.25 by default) and easing linearity factor (3rd argument of the cubic bezier curve, 0.5 by default).
|
Point |
Point.subtract(Point otherPoint)
Returns the result of subtraction of the given point from the current.
|
Point |
Transformation.transform(Point point,
java.lang.Number scale)
Returns a transformed point, optionally multiplied by the given scale.
|
LatLng |
IProjection.unproject(Point point)
The inverse of project.
|
LatLng |
Map.unproject(Point point,
java.lang.Number 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,
java.lang.Number scale)
Returns the reverse transformation of the given point, optionally divided by the given scale.
|
Modifier and Type | Method and Description |
---|---|
Point |
TileEvent.getContainerPoint() |
Point |
ResizeEvent.getContainerPoint() |
Point |
PopupEvent.getContainerPoint() |
Point |
MouseEvent.getContainerPoint() |
Point |
LocationEvent.getContainerPoint() |
Point |
LayerEvent.getContainerPoint() |
Point |
LayerControlEvent.getContainerPoint() |
Point |
GeoJSONEvent.getContainerPoint() |
Point |
ErrorEvent.getContainerPoint() |
Point |
TileEvent.getLayerPoint() |
Point |
ResizeEvent.getLayerPoint() |
Point |
PopupEvent.getLayerPoint() |
Point |
MouseEvent.getLayerPoint() |
Point |
LocationEvent.getLayerPoint() |
Point |
LayerEvent.getLayerPoint() |
Point |
LayerControlEvent.getLayerPoint() |
Point |
GeoJSONEvent.getLayerPoint() |
Point |
ErrorEvent.getLayerPoint() |
Point |
ResizeEvent.getNewSize() |
Point |
PopupEvent.getNewSize() |
Point |
GeoJSONEvent.getNewSize() |
Point |
ResizeEvent.getOldSize() |
Point |
PopupEvent.getOldSize() |
Point |
GeoJSONEvent.getOldSize() |
Modifier and Type | Method and Description |
---|---|
Point |
PopupOptions.getAutoPanPadding()
Gets whether top left and bottom right autopan padding are set to the same value.
|
Point |
PopupOptions.getAutoPanPaddingBottomRight()
Gets The margin between the popup and the bottom right corner of the map view after autopanning was performed.
|
Point |
PopupOptions.getAutoPanPaddingTopLeft()
Gets The margin between the popup and the top left corner of the map view after autopanning was performed.
|
Point |
IconOptions.getIconAnchor()
Gets the coordinates of the "tip" of the icon (relative to its top left corner).
|
Point |
DivIconOptions.getIconAnchor()
Gets The coordinates of the "tip" of the icon (relative to its top left corner).
|
Point |
IconOptions.getIconSize()
Gets the size of the icon image in pixels.
|
Point |
DivIconOptions.getIconSize()
Gets the size of the icon in pixels.
|
Point |
PopupOptions.getOffset()
Gets The offset of the popup position.
|
Point |
FitBoundsOptions.getPadding()
Gets the equivalent of setting both top left and bottom right padding to the same value.
|
Point |
FitBoundsOptions.getPaddingBottomRight()
Gets the same for bottom right corner of the map.
|
Point |
FitBoundsOptions.getPaddingTopLeft()
Gets the amount of padding in the top left corner of a map container that shouldn't be accounted for when setting the view to fit bounds.
|
Point |
IconOptions.getPopupAnchor()
Gets the coordinates of the point from which popups will "open", relative to the icon anchor.
|
Point |
DivIconOptions.getPopUpAnchor()
Gets The coordinates of the point from which popups will "open", relative to the icon anchor.
|
Point |
IconOptions.getShadowAnchor()
Gets the coordinates of the "tip" of the shadow (relative to its top left corner) (the same as iconAnchor if not specified).
|
Point |
IconOptions.getShadowSize()
Gets the size of the shadow image in pixels.
|
Modifier and Type | Method and Description |
---|---|
PopupOptions.Builder |
PopupOptions.Builder.autoPanPadding(Point autoPanPadding)
Equivalent of setting both top left and bottom right autopan padding to the same value.
|
PopupOptions.Builder |
PopupOptions.Builder.autoPanPaddingBottomRight(Point autoPanPaddingBottomRight)
The margin between the popup and the bottom right corner of the map view after autopanning was performed.
|
PopupOptions.Builder |
PopupOptions.Builder.autoPanPaddingTopLeft(Point autoPanPaddingTopLeft)
The margin between the popup and the top left corner of the map view after autopanning was performed.
|
IconOptions.Builder |
IconOptions.Builder.iconAnchor(Point iconAnchor)
The coordinates of the "tip" of the icon (relative to its top left corner).
|
DivIconOptions.Builder |
DivIconOptions.Builder.iconAnchor(Point iconAnchor)
The coordinates of the "tip" of the icon (relative to its top left corner).
|
IconOptions.Builder |
IconOptions.Builder.iconSize(Point iconSize)
Size of the icon image in pixels.
|
DivIconOptions.Builder |
DivIconOptions.Builder.iconSize(Point iconSize)
Size of the icon in pixels.
|
PopupOptions.Builder |
PopupOptions.Builder.offset(Point offset)
The offset of the popup position.
|
FitBoundsOptions.Builder |
FitBoundsOptions.Builder.padding(Point padding)
Equivalent of setting both top left and bottom right padding to the same value.
|
FitBoundsOptions.Builder |
FitBoundsOptions.Builder.paddingBottomRight(Point paddingBottomRight)
The same for bottom right corner of the map.
|
FitBoundsOptions.Builder |
FitBoundsOptions.Builder.paddingTopLeft(Point paddingTopLeft)
Sets the amount of padding in the top left corner of a map container that shouldn't be accounted for when setting the view to fit bounds.
|
IconOptions.Builder |
IconOptions.Builder.popupAnchor(Point popupAnchor)
The coordinates of the point from which popups will "open", relative to the icon anchor.
|
DivIconOptions.Builder |
DivIconOptions.Builder.popUpAnchor(Point popUpAnchor)
The coordinates of the point from which popups will "open", relative to the icon anchor.
|
IconOptions.Builder |
IconOptions.Builder.shadowAnchor(Point shadowAnchor)
The coordinates of the "tip" of the shadow (relative to its top left corner) (the same as iconAnchor if not specified).
|
IconOptions.Builder |
IconOptions.Builder.shadowSize(Point shadowSize)
Size of the shadow image in pixels.
|