@NpmPackage(value="leaflet",
version="^1.6.0")
@Tag(value="leaflet-map")
@JsModule(value="./leaflet/leafletCon.js")
public class LMap
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
| Modifier and Type | Class and Description |
|---|---|
class |
LMap.MarkerClickEvent |
| Constructor and Description |
|---|
LMap()
Deprecated.
Just used for demo purposes
|
LMap(double lat,
double lon,
int zoom) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLComponent(LComponent... lObjects)
Deprecated.
Use
addLComponents(LComponent...) instead |
protected void |
addLComponent(LComponent lComponent) |
void |
addLComponents(Collection<LComponent> lComponents)
add Leaflet components to the map
|
void |
addLComponents(LComponent... lComponents)
add Leaflet component(s) to the map
|
com.vaadin.flow.shared.Registration |
addMarkerClickListener(com.vaadin.flow.component.ComponentEventListener<LMap.MarkerClickEvent> listener) |
LCenter |
getCenter() |
List<LComponent> |
getComponents()
Returns a new component list
|
List<LComponent> |
getItems()
Deprecated.
Use
getComponents() |
protected void |
onMarkerClick(String tag) |
void |
removeItem(LComponent... items)
Deprecated.
Use
LMap#removeComponents(LComponent...) |
protected void |
removeLComponent(LComponent lComponent) |
void |
removeLComponents(Collection<LComponent> lComponents)
remove Leaflet components to the map
|
void |
removeLComponents(LComponent... lComponents)
remove Leaflet component(s) to the map
|
void |
setCenter(LCenter start)
Starting Point of the map with latitude, longitude and zoom level
|
protected void |
setFixZIndexEnabled(boolean enabled)
This fixes situations where the leafletmap overlays components like Dialogs
|
void |
setTileLayer(LTileLayer tl) |
void |
setViewPoint(LCenter viewpoint) |
void |
setZoom(int zoom) |
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic LMap(double lat,
double lon,
int zoom)
@Deprecated public LMap()
public void setZoom(int zoom)
public void setViewPoint(LCenter viewpoint)
public void setTileLayer(LTileLayer tl)
protected void setFixZIndexEnabled(boolean enabled)
enabled - enable or disable the fix@Deprecated public void addLComponent(LComponent... lObjects)
addLComponents(LComponent...) insteadlObjects - public void addLComponents(LComponent... lComponents)
lComponents - public void addLComponents(Collection<LComponent> lComponents)
lComponents - protected void addLComponent(LComponent lComponent)
@Deprecated public void removeItem(LComponent... items)
LMap#removeComponents(LComponent...)items - public void removeLComponents(LComponent... lComponents)
lComponents - public void removeLComponents(Collection<LComponent> lComponents)
lComponents - protected void removeLComponent(LComponent lComponent)
@Deprecated public List<LComponent> getItems()
getComponents()public List<LComponent> getComponents()
public LCenter getCenter()
public void setCenter(LCenter start)
start - @ClientCallable protected void onMarkerClick(String tag)
public com.vaadin.flow.shared.Registration addMarkerClickListener(com.vaadin.flow.component.ComponentEventListener<LMap.MarkerClickEvent> listener)
Copyright © 2019–2021 XDEV Software. All rights reserved.