Class FeatureGroup
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.LeafletObject
org.vaadin.addons.componentfactory.leaflet.layer.Layer
org.vaadin.addons.componentfactory.leaflet.layer.groups.LayerGroup
org.vaadin.addons.componentfactory.leaflet.layer.groups.FeatureGroup
- All Implemented Interfaces:
Serializable,Evented,SupportsLayerEvents,SupportsMouseEvents,FeatureGroupFunctions,LayerGroupFunctions,HasStyle,Identifiable,LayerPopupFunctions,LayerTooltipFunctions,ExecutableFunctions
- Direct Known Subclasses:
MarkerClusterGroup
public class FeatureGroup
extends LayerGroup
implements HasStyle, SupportsMouseEvents, SupportsLayerEvents, FeatureGroupFunctions
Extended LayerGroup that makes it easier to do the same thing to all its
member layers
- Since:
- 2020-02-06
- 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
ConstructorsConstructorDescriptionCreates an empty feature group.FeatureGroup(List<Layer> layers) Creates a feature group containing the given layers.FeatureGroup(Layer... layers) Creates a feature group containing the given layers. -
Method Summary
Modifier and TypeMethodDescriptiongetStyle()Returns the path style options currently applied to this feature group.voidsetStyle(PathOptions pathOptions) Sets the given path style options on the feature group and applies them to every member layer that supports styling.Methods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.groups.LayerGroup
addLayer, clearLayers, eachLayer, findLayer, getLayer, getLayerId, getLayers, hasLayer, hasLayer, invoke, removeLayer, removeLayer, setZIndex, toGeoJSONMethods 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
addEventListener, clearAllEventListeners, hasEventListeners, listens, off, off, on, removeEventListenerMethods 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.groups.FeatureGroupFunctions
bringToBack, bringToFront, getBoundsMethods 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, toggleTooltipMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.supports.SupportsLayerEvents
onLayerAdd, onLayerRemoveMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.supports.SupportsMouseEvents
onClick, onContextMenuOpened, onDoubleClick, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp
-
Constructor Details
-
FeatureGroup
public FeatureGroup()Creates an empty feature group. -
FeatureGroup
Creates a feature group containing the given layers.- Parameters:
layers- the layers to add to this group
-
FeatureGroup
Creates a feature group containing the given layers.- Parameters:
layers- the layers to add to this group
-
-
Method Details
-
setStyle
Sets the given path style options on the feature group and applies them to every member layer that supports styling.- Specified by:
setStylein interfaceFeatureGroupFunctions- Specified by:
setStylein interfaceHasStyle- Parameters:
pathOptions- the style options to apply to all member layers
-
getStyle
Returns the path style options currently applied to this feature group.
-