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(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 |
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 |
GridLayer.getTileSize()
Normalizes the tileSize option into a point.
|
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 |
CRS.latLngToPoint(LatLng latlng,
double 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(double number)
Returns the result of multiplication of the current point by the given number.
|
static Point |
L.point(double x,
double y,
Boolean round)
Represents a point with x and y coordinates in pixels.
|
Point |
Projection.project(LatLng latlng)
Projects geographical coordinates into a 2D point.
|
Point |
CRS.project(LatLng latlng)
Projects geographical coordinates into coordinates in units accepted for this CRS (e.g.
|
Point |
Map.project(LatLng latlng,
double 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 |
L.Transformation.transform(Point point,
double scale)
Returns a transformed point, optionally multiplied by the given scale.
|
Point |
L.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 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.
|
Boolean |
Bounds.contains(Point point)
Returns true if the rectangle contains the given point.
|
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).
|
double |
Point.distanceTo(Point otherPoint)
Returns the distance between the current and the given points.
|
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).
|
static String |
SVG.pointsToPath(Point[] rings,
Boolean closed)
Generates a SVG path string for multiple rings, with each ring turning into "M..L..L.." instructions
|
LatLng |
CRS.pointToLatLng(Point point,
double zoom)
The inverse of latLngToPoint.
|
Point |
Point.subtract(Point otherPoint)
Returns the result of subtraction of the given point from the current.
|
Point |
L.Transformation.transform(Point point,
double scale)
Returns a transformed point, optionally multiplied by the given scale.
|
LatLng |
Projection.unproject(Point point)
The inverse of project.
|
LatLng |
CRS.unproject(Point point)
Given a projected coordinate returns the corresponding LatLng.
|
LatLng |
Map.unproject(Point point,
double zoom)
Projects the given absolute pixel coordinates to geographical coordinates for the given zoom level (current zoom level by default).
|
Point |
L.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 |
MouseEvent.getContainerPoint()
Gets the pixel coordinates of the point where the mouse event occurred relative to the map container.
|
Point |
TileErrorEvent.getCoords()
Point object with tile's x, y, and z (zoom level) coordinates.
|
Point |
TileEvent.getCoords()
Point object with tile's x, y, and z (zoom level) coordinates.
|
Point |
MouseEvent.getLayerPoint()
Gets the pixel coordinates of the point where the mouse event occurred relative to the map layer.
|
Point |
ResizeEvent.getNewSize()
Gets the new size after the resize event.
|
Point |
ResizeEvent.getOldSize()
Gets the old size before resize event.
|
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 |
DivIconOptions.getBgPos() |
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 |
TooltipOptions.getOffset()
Optional offset of the tooltip position.
|
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 |
DivIconOptions.getShadowAnchor() |
Point |
IconOptions.getShadowSize()
Gets the size of the shadow image in pixels.
|
Point |
DivIconOptions.getShadowSize() |
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.
|
DivIconOptions.Builder |
DivIconOptions.Builder.bgPos(Point bgPos) |
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.
|
TooltipOptions.Builder |
TooltipOptions.Builder.offset(Point offset)
Optional offset of the tooltip position.
|
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).
|
DivIconOptions.Builder |
DivIconOptions.Builder.shadowAnchor(Point shadowAnchor) |
IconOptions.Builder |
IconOptions.Builder.shadowSize(Point shadowSize)
Size of the shadow image in pixels.
|
DivIconOptions.Builder |
DivIconOptions.Builder.shadowSize(Point shadowSize) |
Copyright © 2018 G-Widgets. All rights reserved.