Interface LayerTooltipFunctions
- 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 tooltip methods available on each layer
- Since:
- 2020-03-23
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbindTooltip(String tooltipContent) Binds a tooltip to the layer with the passed contentdefault voidbindTooltip(Tooltip tooltip) Binds a tooltip to the layer with the passed contentdefault voidCloses the tooltip bound to this layer if it is open.Returns the tooltip bound to this layer.default CompletableFuture<Boolean> Returns true if the tooltip bound to this layer is currently open.default voidOpens the bound tooltipdefault voidopenTooltip(LatLng latLng) Opens the bound tooltip at the specified latlng or at the default tooltip anchor if no latlng is passed.default voidsetTooltipContent(String tooltipContent) Sets the content of the tooltip bound to this layer.default voidsetTooltipContent(Tooltip tooltip) Sets the content of the tooltip bound to this layer.default voidOpens or closes the tooltip bound to this layer depending on its current state.default voidRemoves the tooltip previously bound with bindTooltip.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
-
bindTooltip
Binds a tooltip to the layer with the passed content- Parameters:
tooltipContent- the new tooltip content
-
bindTooltip
Binds a tooltip to the layer with the passed content- Parameters:
tooltip- the new tooltip content
-
unbindTooltip
default void unbindTooltip()Removes the tooltip previously bound with bindTooltip. -
closeTooltip
default void closeTooltip()Closes the tooltip bound to this layer if it is open. -
openTooltip
default void openTooltip()Opens the bound tooltip -
openTooltip
Opens the bound tooltip at the specified latlng or at the default tooltip anchor if no latlng is passed.- Parameters:
latLng- the tooltip location
-
toggleTooltip
default void toggleTooltip()Opens or closes the tooltip bound to this layer depending on its current state. -
setTooltipContent
Sets the content of the tooltip bound to this layer.- Parameters:
tooltipContent- the new tooltip content
-
setTooltipContent
Sets the content of the tooltip bound to this layer.- Parameters:
tooltip- the new tooltip content
-
isTooltipOpen
Returns true if the tooltip bound to this layer is currently open.- Returns:
- returns true if the is currently open
-
getTooltip
Tooltip getTooltip()Returns the tooltip bound to this layer.- Returns:
- the tooltip bound to this layer.
-