Package | Description |
---|---|
com.gwidgets.api.leaflet |
Modifier and Type | Method and Description |
---|---|
static Map |
L.map(HTMLElement element,
MapOptions options)
The central class of the API — it is used to create a map on a page and manipulate it.
|
static Map |
L.map(java.lang.String id,
MapOptions options)
The central class of the API — it is used to create a map on a page and manipulate it.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
TileLayer.onAdd(Map map) |
void |
LayerGroup.onAdd(Map map) |
void |
ImageOverlay.onAdd(Map map) |
void |
ILayer.onAdd(Map map)
Should contain code that creates DOM elements for the overlay, adds them to map panes where they should belong and puts listeners on relevant map events.
|
HTMLElement |
IControl.onAdd(Map map)
Should contain code that creates all the neccessary DOM elements for the control, adds listeners on relevant map events, and returns the element containing the control.
|
void |
FeatureGroup.onAdd(Map map) |
HTMLElement |
Control.onAdd(Map map) |
void |
TileLayer.onRemove(Map map) |
void |
LayerGroup.onRemove(Map map) |
void |
ImageOverlay.onRemove(Map map) |
void |
ILayer.onRemove(Map map)
Should contain all clean up code that removes the overlay's elements from the DOM and removes listeners previously added in onAdd.
|
void |
IControl.onRemove(Map map)
Optional, should contain all clean up code (e.g.
|
void |
FeatureGroup.onRemove(Map map) |
void |
Control.onRemove(Map map) |
L |
Popup.openOn(Map map)
Adds the popup to the map and closes the previous one.
|
L |
Control.removeFrom(Map map)
Removes the control from the map.
|