Package | Description |
---|---|
com.gwidgets.api.leaflet |
Modifier and Type | Method and Description |
---|---|
L |
Attribution.addAttribution(java.lang.String text)
Adds an attribution text
|
L |
Layers.addBaseLayer(ILayer layer,
java.lang.String name)
Adds a base layer (radio button entry) with the given name to the control.
|
L |
Map.addControl(IControl control)
Adds the given control to the map.
|
L |
GeoJSON.addData(com.google.gwt.core.client.JavaScriptObject data)
Adds a GeoJSON object to the layer.
|
L |
Polyline.addLatLng(LatLng latlng)
Adds a given point to the polyline.
|
L |
LayerGroup.addLayer(ILayer layer)
Adds a given layer to the group.
|
L |
Map.addLayer(ILayer layer,
java.lang.Boolean insertAtTheBottom)
Adds the given layer to the map.
|
L |
Layers.addOverlay(ILayer layer,
java.lang.String name)
Adds an overlay (checkbox entry) with the given name to the control.
|
L |
TileLayer.addTo(Map map)
Adds the layer to the map.
|
L |
Popup.addTo(Map map)
Adds the popup to the map.
|
L |
Path.addTo(Map map)
Adds the layer to the map.
|
L |
Marker.addTo(Map map)
Adds the marker to the map.
|
L |
LayerGroup.addTo(Map map)
Adds the group of layers to the map.
|
static L |
ImageOverlay.addTo(Map map)
Adds the overlay to the map.
|
L |
Control.addTo(Map map)
Adds the control to the map.
|
L |
Path.bindPopup(HTMLElement el,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this path.
|
L |
Marker.bindPopup(HTMLElement el,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this marker.
|
L |
Path.bindPopup(Popup popup,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this path.
|
L |
Marker.bindPopup(Popup popup,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this marker.
|
L |
Path.bindPopup(java.lang.String html,
PopupOptions options)
Bind popup.
|
L |
Marker.bindPopup(java.lang.String html,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this marker.
|
L |
FeatureGroup.bindPopup(java.lang.String htmlContent,
PopupOptions options)
Binds a popup with a particular HTML content to a click on any layer from the group that has a bindPopup method.
|
L |
TileLayer.bringToBack()
Brings the tile layer to the bottom of all tile layers.
|
L |
Path.bringToBack()
Brings the layer to the bottom of all path layers.
|
static L |
ImageOverlay.bringToBack()
Brings the layer to the bottom of all overlays.
|
L |
FeatureGroup.bringToBack()
Brings the layer group to the bottom of all other layers.
|
L |
TileLayer.bringToFront()
Brings the tile layer to the top of all tile layers.
|
L |
Path.bringToFront()
Brings the layer to the top of all path layers.
|
static L |
ImageOverlay.bringToFront()
Brings the layer to the top of all overlays.
|
L |
FeatureGroup.bringToFront()
Brings the layer group to the top of all other layers.
|
static L |
TileLayer.clearAllEventListeners()
Clear all event listeners.
|
static L |
PosAnimation.clearAllEventListeners()
Clear all event listeners.
|
static L |
Path.clearAllEventListeners()
Clear all event listeners.
|
static L |
Marker.clearAllEventListeners()
Clear all event listeners.
|
L |
Map.clearAllEventListeners()
Clear all event listeners.
|
static L |
Layers.clearAllEventListeners()
Clear all event listeners.
|
static L |
FeatureGroup.clearAllEventListeners()
Clear all event listeners.
|
L |
LayerGroup.clearLayers()
Removes all the layers from the group.
|
L |
Path.closePopup()
Closes the path's bound popup if it is opened.
|
L |
Marker.closePopup()
Closes the bound popup of the marker if it's opened.
|
L |
Map.closePopup(Popup popup)
Closes the popup previously opened with openPopup
|
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.
|
L |
LayerGroup.eachLayer(Function fn,
com.google.gwt.core.client.JavaScriptObject context)
Iterates over the layers of the group, optionally specifying context of the iterator function.
|
L |
LatLngBounds.extend(LatLng latlng)
Extends the bounds to contain the given point.
|
L |
LatLngBounds.extend(LatLngBounds latlng)
Extends the bounds to contain the given bounds.
|
static L |
TileLayer.fire(java.lang.String type)
Fires an event of the specified type.
|
static L |
PosAnimation.fire(java.lang.String type)
Fires an event of the specified type.
|
static L |
Path.fire(java.lang.String type)
Fires an event of the specified type.
|
static L |
Marker.fire(java.lang.String type)
Fires an event of the specified type.
|
L |
Map.fire(java.lang.String type)
Fires an event of the specified type.
|
static L |
Layers.fire(java.lang.String type)
Fires an event of the specified type.
|
static L |
FeatureGroup.fire(java.lang.String type)
Fires an event of the specified type.
|
L |
Map.fitBounds(LatLngBounds bounds,
FitBoundsOptions options)
Sets a map view that contains the given geographical bounds with the maximum zoom level possible.
|
L |
Map.fitWorld(FitBoundsOptions options)
Sets a map view that mostly contains the whole world with the maximum zoom level possible.
|
L |
Popup.getLatLng()
Returns the geographical point of popup.
|
L |
Map.invalidateSize(java.lang.Boolean options)
Checks if the map container size changed and updates the map if so — call it after you've changed the map size dynamically, also animating pan by default.
|
L |
Map.invalidateSize(ZoomPanOptions options2)
Checks if the map container size changed and updates the map if so — call it after you've changed the map size dynamically, also animating pan by default.
|
L |
Map.locate(LocateOptions options)
Tries to locate the user using the Geolocation API, firing a locationfound event with location data on success or a locationerror event on failure, and optionally sets the map view to the user's location with respect to detection accuracy (or to the world view if geolocation failed).
|
static L |
TileLayer.off(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
static L |
PosAnimation.off(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
static L |
Path.off(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
static L |
Marker.off(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
L |
Map.off(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
static L |
Layers.off(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
static L |
FeatureGroup.off(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
static L |
TileLayer.on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs
|
static L |
PosAnimation.on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs
|
static L |
Path.on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs
|
static L |
Marker.on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs.
|
L |
Map.on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs.
|
static L |
Layers.on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs
|
static L |
FeatureGroup.on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs
|
static L |
TileLayer.once(java.lang.String type,
Function fn)
Once.
|
static L |
PosAnimation.once(java.lang.String type,
Function fn)
Once.
|
static L |
Path.once(java.lang.String type,
Function fn)
Once.
|
static L |
Marker.once(java.lang.String type,
Function fn)
Once.
|
L |
Map.once(java.lang.String type,
Function fn)
Once.
|
static L |
Layers.once(java.lang.String type,
Function fn)
Once.
|
static L |
FeatureGroup.once(java.lang.String type,
Function fn)
Once.
|
L |
Popup.openOn(Map map)
Adds the popup to the map and closes the previous one.
|
L |
MultiPolyline.openPopup()
Opens the popup previously bound by bindPopup.
|
L |
MultiPolygon.openPopup()
Opens the popup previously bound by bindPopup.
|
L |
Marker.openPopup()
Opens the popup previously bound by the bindPopup method.
|
L |
Map.openPopup(HTMLElement el,
LatLng latlng,
PopupOptions options)
Creates a popup with the specified options and opens it in the given point on a map.
|
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 |
Map.openPopup(Popup popup)
Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).
|
L |
Map.openPopup(java.lang.String html,
LatLng latlng,
PopupOptions options)
Creates a popup with the specified options and opens it in the given point on a map.
|
L |
Map.panBy(Point point,
PanOptions options)
Pans the map by a given number of pixels (animated).
|
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.
|
L |
Map.panTo(LatLng latlng,
PanOptions options)
Pans the map to a given center.
|
L |
TileLayer.redraw()
Causes the layer to clear all the tiles and request them again
|
L |
Path.redraw()
Redraws the layer.
|
L |
Map.remove()
Destroys the map and clears all related event listeners.
|
L |
Attribution.removeAttribution(java.lang.String text)
Removes an attribution text.
|
L |
Map.removeControl(IControl control)
Removes the given control from the map.
|
L |
Control.removeFrom(Map map)
Removes the control from the map.
|
L |
Map.removeLayer(ILayer layer)
Removes the given layer from the map.
|
L |
Layers.removeLayer(ILayer layer)
Remove the given layer from the control.
|
L |
LayerGroup.removeLayer(ILayer layer)
Removes a given layer from the group.
|
L |
LayerGroup.removeLayer(java.lang.String id)
Removes a given layer from the group.
|
L |
GeoJSON.resetStyle(Path layer)
Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
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).
|
L |
Rectangle.setBounds(LatLngBounds bounds)
Redraws the rectangle with the passed bounds.
|
L |
Popup.setContent(HTMLElement htmlContent)
Sets the HTML content of the popup.
|
L |
Popup.setContent(java.lang.String htmlContent)
Sets the HTML content of the popup.
|
L |
Marker.setIcon(Icon icon)
Changes the marker icon.
|
L |
Popup.setLatLng(LatLng latlng)
Sets the geographical point where the popup will open.
|
L |
Marker.setLatLng(LatLng latlng)
Changes the marker position to the given point.
|
L |
CircleMarker.setLatLng(LatLng latlng) |
L |
Circle.setLatLng(LatLng latlng)
Sets the position of a circle to a new location.
|
L |
Polyline.setLatLngs(LatLng[] latlngs)
Sets the lat lngs.
|
L |
MultiPolyline.setLatLngs(LatLng[][] latlngs)
Replace all lines and their paths with the given array of arrays of geographical points.
|
L |
MultiPolygon.setLatLngs(LatLng[][] latlngs)
Replace all polygons and their paths with the given array of arrays of geographical points.
|
L |
Map.setMaxBounds(LatLngBounds bounds,
ZoomPanOptions options)
Restricts the map view to the given bounds .
|
L |
TileLayer.setOpacity(java.lang.Number opacity)
Changes the opacity of the tile layer.
|
L |
Marker.setOpacity(java.lang.Number opacity)
Changes the zIndex offset of the marker.
|
static L |
ImageOverlay.setOpacity(java.lang.Number opacity)
Sets the opacity of the overlay.
|
static L |
WMS.setParams(TileLayerWMSOptions params,
java.lang.Boolean noRedraw)
Merges an object with the new parameters and re-requests tiles on the current screen (unless noRedraw was set to true).
|
L |
Marker.setPopupContent(HTMLElement el,
PopupOptions options)
Sets an HTML content of the popup of this marker.
|
L |
Marker.setPopupContent(java.lang.String html,
PopupOptions options)
Sets an HTML content of the popup of this marker.
|
L |
Control.setPosition(java.lang.String position)
Sets the position of the control.
|
L |
Attribution.setPrefix(java.lang.String prefix)
Sets the text before the attributions.
|
L |
CircleMarker.setRadius(java.lang.Number radius) |
L |
Circle.setRadius(java.lang.Number radius)
Sets the radius of a circle.
|
L |
GeoJSON.setStyle(Function style)
Changes styles of GeoJSON vector layers with the given style function.
|
L |
Path.setStyle(PathOptions object)
Changes the appearance of a Path based on the options in the Path options object.
|
L |
FeatureGroup.setStyle(PathOptions style)
Sets the given path options to each layer of the group that has a setStyle method.
|
L |
TileLayer.setUrl(java.lang.String urlTemplate)
Updates the layer's URL template and redraws it.
|
L |
Map.setView(LatLng center,
java.lang.Number zoom,
ZoomPanOptions options)
Sets the view of the map (geographical center and zoom) with the given animation options.
|
L |
TileLayer.setZIndex(java.lang.Number zIndex)
Sets the zIndex of the tile layer.
|
L |
Marker.setZIndexOffset(java.lang.Number offset)
Sets the Z index offset.
|
L |
Map.setZoom(java.lang.Number zoom,
ZoomOptions options)
Sets the zoom of the map.
|
L |
Map.setZoomAround(LatLng latlng,
java.lang.Number zoom,
ZoomOptions options)
Zooms the map while keeping a specified point on the map stationary (e.g.
|
L |
Map.stopLocate()
Stops watching location previously initiated by map.locate({watch: true}) and aborts resetting the map view if map.locate was called with {setView: true}.
|
L |
Marker.togglePopup()
Toggles the popup previously bound by the bindPopup method.
|
L |
Path.unbindPopup()
Unbind popup.
|
L |
Marker.unbindPopup()
Unbinds the popup previously bound to the marker with bindPopup.
|
L |
Popup.update()
Updates the popup content, layout and position.
|
L |
Marker.update()
Updates the marker position, useful if coordinates of its latLng object were changed directly.
|
L |
Map.whenReady(Function fn,
java.lang.Object context)
Runs the given callback when the map gets initialized with a place and zoom, or immediately if it happened already, optionally passing a function context.
|
L |
Map.zoomIn(java.lang.Number delta,
ZoomOptions options)
Increases the zoom of the map by delta (1 by default).
|
L |
Map.zoomOut(java.lang.Number delta,
ZoomOptions options)
Decreases the zoom of the map by delta (1 by default).
|