Class MapOptions

java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.MapOptions
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GeoMapOptions

public class MapOptions extends MapObservableObject
See Also:
  • Field Details

    • view

      protected MapView view
    • layers

      protected List<Layer<?>> layers
    • featureModifyIncludesDelete

      protected boolean featureModifyIncludesDelete
      Map-wide compatibility switch resolved by editable sources: when true, a source that leaves featureDeleteEnabled unset treats an enabled modify mode as also enabling deletion (the pre-3.1 coupling). Set by the map from the jmix.maps.ui.feature-modify-includes-delete property; not serialized to the client (the effective per-source value is).
  • Constructor Details

    • MapOptions

      public MapOptions()
  • Method Details

    • getType

      protected String getType()
      Specified by:
      getType in class MapObservableObject
    • getMapView

      public MapView getMapView()
    • setMapView

      public void setMapView(MapView view)
    • addLayer

      public void addLayer(Layer<?> layer)
    • removeLayer

      public void removeLayer(Layer<?> layer)
    • getLayers

      public Collection<Layer<?>> getLayers()
    • isFeatureModifyIncludesDelete

      public boolean isFeatureModifyIncludesDelete()
      Whether an editable source with an unset delete flag treats enabled modify mode as also enabling deletion (the pre-3.1 coupling).
      Returns:
      true if modify implies delete for unset sources
    • setFeatureModifyIncludesDelete

      public void setFeatureModifyIncludesDelete(boolean featureModifyIncludesDelete)
      Sets whether an editable source with an unset delete flag treats enabled modify mode as also enabling deletion (the pre-3.1 coupling).
      Parameters:
      featureModifyIncludesDelete - true to make modify imply delete for unset sources
    • clearRemovedChildrenInDepth

      public void clearRemovedChildrenInDepth()
      Overrides method to make it public. All removed children collections should be cleared after sending request to a client-side.
      Overrides:
      clearRemovedChildrenInDepth in class MapObservableObject
    • isDirtyInDepth

      public boolean isDirtyInDepth()
      Overrides:
      isDirtyInDepth in class MapObservableObject
    • markAsDirtyInDepth

      public void markAsDirtyInDepth()
      Overrides:
      markAsDirtyInDepth in class MapObservableObject
    • unmarkDirtyInDepth

      public void unmarkDirtyInDepth()
      Overrides:
      unmarkDirtyInDepth in class MapObservableObject
    • addMapObjectChangeListener

      public com.vaadin.flow.shared.Registration addMapObjectChangeListener(Consumer<MapObservableObject.ObjectChangeEvent> listener)
    • createView

      protected MapView createView()