Class DivOverlay
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.LeafletObject
org.vaadin.addons.componentfactory.leaflet.layer.Layer
org.vaadin.addons.componentfactory.leaflet.layer.ui.DivOverlay
- All Implemented Interfaces:
Serializable,Evented,Identifiable,LayerPopupFunctions,LayerTooltipFunctions,ExecutableFunctions
Base model for L.Popup and L.Tooltip. Inherit from it for custom popup like plugins.
- Since:
- 2020-10-01
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.vaadin.addons.componentfactory.leaflet.layer.Layer
Layer.LayerEventType -
Field Summary
Fields inherited from class org.vaadin.addons.componentfactory.leaflet.layer.Layer
DEFAULT_PANE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDivOverlay(String content) Creates a new overlay with the given HTML content. -
Method Summary
Modifier and TypeMethodDescriptionA custom CSS class name to assign to the overlay.Returns the content of the overlay.Returns the geographical point of popup.The offset of the overlay position.voidsetClassName(String className) Sets a custom CSS class name to assign to the overlay.voidsetContent(String content) Sets the HTML content of the overlay.voidSets the geographical point where the overlay will open.voidSets the offset of the overlay position.Methods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.Layer
addEventListener, addTo, addTo, bindPopup, bindPopup, bindTooltip, bindTooltip, clearAllEventListeners, fireEvent, getAttribution, getEvents, getPane, getPopup, getTooltip, hasEventListeners, onAdd, onPopupClose, onPopupOpen, onRemove, onTooltipClose, onTooltipOpen, remove, removeEventListener, set, setAttribution, setPane, unbindPopup, unbindTooltipMethods inherited from class org.vaadin.addons.componentfactory.leaflet.LeafletObject
call, configureObjectMapper, executeJs, getConstructorArgumentNames, getJson, getLeafletType, getParent, getUuid, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.Evented
listens, off, off, onMethods 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
getUuidMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.LayerPopupFunctions
closePopup, isPopupOpen, openPopup, openPopup, setPopupContent, setPopupContent, togglePopupMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.LayerTooltipFunctions
closeTooltip, isTooltipOpen, openTooltip, openTooltip, setTooltipContent, setTooltipContent, toggleTooltip
-
Constructor Details
-
DivOverlay
Creates a new overlay with the given HTML content.- Parameters:
content- the HTML content of the overlay
-
-
Method Details
-
getClassName
A custom CSS class name to assign to the overlay.- Returns:
- the CSS class name to assign to the overlay.
-
setClassName
Sets a custom CSS class name to assign to the overlay.- Parameters:
className- the CSS class name to assign to the overlay
-
getOffset
The offset of the overlay position. Useful to control the anchor of the overlay when opening it on some overlays.- Returns:
- the offset of the overlay position
-
setOffset
Sets the offset of the overlay position. Useful to control the anchor of the overlay when opening it.- Parameters:
offset- the offset of the overlay position
-
getLatLng
Returns the geographical point of popup.- Returns:
- the geographical point of popup.
-
setLatLng
Sets the geographical point where the overlay will open.- Parameters:
latLng- the geographical point where the overlay will open
-
getContent
Returns the content of the overlay.- Returns:
- the content of the overlay.
-
setContent
Sets the HTML content of the overlay. If a function is passed the source layer will be passed to the function.- Parameters:
content- the content of the overlay
-