Package | Description |
---|---|
com.gwidgets.api.leaflet | |
com.gwidgets.api.leaflet.events | |
com.gwidgets.api.leaflet.options |
Modifier and Type | Method and Description |
---|---|
LatLng |
Map.containerPointToLatLng(Point point)
Returns the geographical coordinates of a given map container point.
|
static LatLng |
GeoJSON.coordsToLatlng(double[] coords)
Creates a LatLng object from an array of 2 numbers (latitude, longitude) used in GeoJSON for points.
|
LatLng |
Map.getCenter()
Returns the geographical center of the map view.
|
LatLng |
LatLngBounds.getCenter()
Returns the center point of the bounds.
|
LatLng |
Marker.getLatLng()
Returns the current geographical position of the marker.
|
LatLng |
CircleMarker.getLatLng()
Returns the current geographical position of the circle.
|
LatLng[][] |
Polyline.getLatLngs()
Returns an array of the points in the path.
|
LatLng |
LatLngBounds.getNorthEast()
Returns the north-east point of the bounds.
|
LatLng |
LatLngBounds.getNorthWest()
Returns the north-west point of the bounds.
|
LatLng |
LatLngBounds.getSouthEast()
Returns the south-east point of the bounds.
|
LatLng |
LatLngBounds.getSouthWest()
Returns the south-west point of the bounds.
|
static LatLng |
L.latLng(double latitude,
double longitude)
Represents a geographical point with a certain latitude and longitude.
|
LatLng |
Map.layerPointToLatLng(Point point)
Returns the geographical coordinates of a given map layer point.
|
LatLng |
Map.mouseEventToLatLng(MouseEvent event)
Returns the geographical coordinates of the point the mouse clicked on given the click's event object.
|
LatLng |
CRS.pointToLatLng(Point point,
double zoom)
The inverse of latLngToPoint.
|
LatLng[] |
Polyline.spliceLatLngs(double index,
double pointsToRemove,
LatLng latlng)
Allows adding, removing or replacing points in the polyline.
|
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).
|
LatLng |
LatLng.wrap(double left,
double right)
Returns a new LatLng object with the longitude wrapped around left and right boundaries (-180 to 180 by default).
|
Modifier and Type | Method and Description |
---|---|
L |
Polyline.addLatLng(LatLng latlng)
Adds a given point to the polyline.
|
static Circle |
L.circle(LatLng latlng,
CircleOptions options)
A class for drawing circle overlays on a map.
|
static CircleMarker |
L.circleMarker(LatLng latlng,
CircleOptions options)
A circle of a fixed size with radius specified in pixels.
|
Boolean |
LatLngBounds.contains(LatLng latlng)
Returns true if the rectangle contains the given point.
|
double |
CRS.distance(LatLng latlng1,
LatLng latlng2)
Returns the distance between two geographical coordinates.
|
double |
LatLng.distanceTo(LatLng otherLatlng)
Returns the distance (in meters) to the given LatLng calculated using the Haversine formula.
|
Boolean |
LatLng.equals(LatLng otherLatlng)
Returns true if the given LatLng point is at the same position (within a small margin of error).
|
L |
LatLngBounds.extend(LatLng latlng)
Extends the bounds to contain the given point.
|
static LatLngBounds |
L.latLngBounds(LatLng southWest,
LatLng northEast)
Represents a rectangular geographical area on a map.
|
Point |
Map.latLngToContainerPoint(LatLng latlng)
Returns the map container point that corresponds to the given geographical coordinates.
|
com.google.gwt.core.client.JsArray<com.google.gwt.core.client.JavaScriptObject> |
GeoJSON.latLngToCoords(LatLng latlng)
Reverse of coordsToLatLng.
|
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.
|
static Marker |
L.marker(LatLng latlng,
MarkerOptions options)
Marker is used to put markers on the map.
|
L |
Map.openPopup(elemental2.dom.HTMLElement el,
LatLng latlng,
PopupOptions options)
Creates a popup with the specified options and opens it in the given point on a map.
|
L |
Polyline.openPopup(LatLng latlng) |
L |
Marker.openPopup(LatLng latlng) |
L |
Popup.openPopup(LatLng latlng) |
L |
LayerGroup.openPopup(LatLng latlng) |
L |
Icon.openPopup(LatLng latlng) |
L |
CircleMarker.openPopup(LatLng latlng) |
L |
Layer.openPopup(LatLng latlng)
Opens the bound popup at the specificed latlng or at the default popup anchor if no latlng is passed.
|
L |
Renderer.openPopup(LatLng latlng) |
L |
ImageOverlay.openPopup(LatLng latlng) |
L |
GridLayer.openPopup(LatLng latlng) |
L |
Path.openPopup(LatLng latlng)
Opens the popup previously bound by the bindPopup method in the given point, or in one of the path's points if not specified.
|
L |
Tooltip.openPopup(LatLng latlng) |
L |
Map.openPopup(String html,
LatLng latlng,
PopupOptions options)
Creates a popup with the specified options and opens it in the given point on a map.
|
L |
Polyline.openTooltip(LatLng latlng) |
L |
Marker.openTooltip(LatLng latlng) |
L |
Popup.openTooltip(LatLng latlng) |
L |
LayerGroup.openTooltip(LatLng latlng) |
L |
Icon.openTooltip(LatLng latlng) |
L |
CircleMarker.openTooltip(LatLng latlng) |
L |
Layer.openTooltip(LatLng latlng)
Opens the bound tooltip at the specificed latlng or at the default tooltip anchor if no latlng is passed.
|
L |
Renderer.openTooltip(LatLng latlng) |
L |
ImageOverlay.openTooltip(LatLng latlng) |
L |
GridLayer.openTooltip(LatLng latlng) |
L |
Tooltip.openTooltip(LatLng latlng) |
L |
Map.panTo(LatLng latlng,
PanOptions options)
Pans the map to a given center.
|
static Polygon |
L.polygon(LatLng[][] latlngs,
PolylineOptions options)
A class for drawing polygon overlays on a map.
|
static Polyline |
L.polyline(LatLng[][] latlngs,
PolylineOptions options)
A class for drawing polyline overlays on a map.
|
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).
|
L |
Marker.setLatLng(LatLng latlng)
Changes the marker position to the given point.
|
L |
Popup.setLatLng(LatLng latlng)
Sets the geographical point where the popup will open.
|
L |
CircleMarker.setLatLng(LatLng latlng)
Sets the position of a circle to a new location.
|
L |
Polyline.setLatLngs(LatLng[] latlngs)
Sets the lat lngs.
|
L |
Map.setView(LatLng center,
double zoom,
ZoomPanOptions options)
Sets the view of the map (geographical center and zoom) with the given animation options.
|
L |
Map.setZoomAround(LatLng latlng,
double zoom,
ZoomOptions options)
Zooms the map while keeping a specified point on the map stationary (e.g.
|
LatLng[] |
Polyline.spliceLatLngs(double index,
double pointsToRemove,
LatLng latlng)
Allows adding, removing or replacing points in the polyline.
|
double |
CRS.wrapLatLng(LatLng latlng)
Returns a LatLng where lat and lng has been wrapped according to the CRS's wrapLat and wrapLng properties, if they are outside the CRS's bounds.
|
Modifier and Type | Method and Description |
---|---|
LatLng |
MouseEvent.getLatlng()
Gets the geographical point where the mouse event occurred.
|
LatLng |
LocationEvent.getLatlng()
Gets the detected geographical location of the user.
|
Modifier and Type | Method and Description |
---|---|
LatLng |
MapOptions.getCenter()
Gets the Initial geographical center of the map.
|
Modifier and Type | Method and Description |
---|---|
elemental2.core.Function |
GeoJSONOptions.pointToLayer(com.google.gwt.core.client.JavaScriptObject featureData,
LatLng latlng)
Function that will be used for creating layers for GeoJSON points (if not specified, simple markers will be created).
|
Constructor and Description |
---|
Builder(LatLng center,
Double zoom,
Double minZoom)
Instantiates a new MapOtions builder.
|
Copyright © 2018 G-Widgets. All rights reserved.