Interface LayerPopupFunctions
- All Superinterfaces:
ExecutableFunctions,Identifiable
- All Known Implementing Classes:
Circle,CircleMarker,DivOverlay,DynamicMapLayer,EsriLeafletLayer,FeatureGroup,GridLayer,HeatLayer,ImageOverlay,InteractiveLayer,KmzLayer,Layer,LayerGroup,Marker,MarkerClusterGroup,MultiPolygon,MultiPolyline,Path,Polygon,Polyline,Popup,Rectangle,TiledMapLayer,TileLayer,Tooltip,VectorBasemapLayer
A set of popup methods
- Since:
- 2020-03-23
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidBinds a popup to the layer with the passed contentdefault voidBinds a popup to the layer with the passed contentdefault voidCloses the popup bound to this layer if it is open.getPopup()Returns the popup bound to this layer.default CompletableFuture<Boolean> Returns true if the popup bound to this layer is currently open.default voidOpens the bound popupdefault voidOpens the bound popup at the specified latlng or at the default popup anchor if no latlng is passed.default voidsetPopupContent(String popupContent) Sets the content of the popup bound to this layer.default voidsetPopupContent(Popup popup) Sets the content of the popup bound to this layer.default voidOpens or closes the popup bound to this layer depending on its current state.default voidRemoves the popup previously bound with bindPopup.Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.map.functions.ExecutableFunctions
call, call, executeJs, executeJsMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.Identifiable
getUuid
-
Method Details
-
bindPopup
Binds a popup to the layer with the passed content- Parameters:
popupContent- the new popup content
-
bindPopup
Binds a popup to the layer with the passed content- Parameters:
popup- the new popup content
-
unbindPopup
default void unbindPopup()Removes the popup previously bound with bindPopup. -
closePopup
default void closePopup()Closes the popup bound to this layer if it is open. -
openPopup
default void openPopup()Opens the bound popup -
openPopup
Opens the bound popup at the specified latlng or at the default popup anchor if no latlng is passed.- Parameters:
latLng- the popup location
-
togglePopup
default void togglePopup()Opens or closes the popup bound to this layer depending on its current state. -
setPopupContent
Sets the content of the popup bound to this layer.- Parameters:
popupContent- the new popup content
-
setPopupContent
Sets the content of the popup bound to this layer.- Parameters:
popup- the new popup content
-
isPopupOpen
Returns true if the popup bound to this layer is currently open.- Returns:
- returns true if the is currently open
-
getPopup
Popup getPopup()Returns the popup bound to this layer.- Returns:
- the popup bound to this layer.
-