Class BundleMapContainer

java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.geos.ui.MapContainer
overit.geocallapp.wfm.geos.ui.MapContainer
overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
overit.geocallapp.wfm.core.ux.bundler.search.detail.BundleMapContainer
All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

public class BundleMapContainer extends overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
A specialized map container for displaying Bundle-related geographic data. This container extends WFMMapContainer to provide specific functionality for visualizing bundle operations and their locations on the map.
Since:
21.0
See Also:
  • Field Details

  • Constructor Details

    • BundleMapContainer

      public BundleMapContainer()
  • Method Details

    • setAggregate

      public void setAggregate(BundleEntitiesAggregate aggregate)
      Sets the Bundle aggregate object that contains the data to be displayed on the map. It should be set before the map container is activated to ensure the aggregate data is available for map initialization.
      Parameters:
      aggregate - the Bundle aggregate object containing operations and location data
    • getAggregate

      public BundleEntitiesAggregate getAggregate()
      Gets the current Bundle aggregate object.
      Returns:
      the Bundle aggregate object, or null if not set
    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that contains the Container. It calls the onOpen(o) method of all the Container's childrens.
      If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
      The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with the params passed as parameters.
      For example it's possible to retrieve and use the params in this way: HashGetter hg = getWM().getRouteParams();
      String val1 = hg.getString("key1",null);
      String val2 = hg.getString("key2",null);
      Overrides:
      onOpen in class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
      Parameters:
      o - Object received from the caller
    • initializeBundleMapFeatures

      protected void initializeBundleMapFeatures()
      Initializes map features specific to the bundle data. This method is called during onOpen if a bundle is available.
    • initLayerManager

      protected void initLayerManager()
      Initializes the layer manager if it's not already initialized.
    • centerMapOnBundleOperations

      protected void centerMapOnBundleOperations()
      Centers the map on bundle operations with coordinates.
    • fetchGeoJSONData

      protected String fetchGeoJSONData(String layerid)
      Description copied from class: overit.geocall.basic.geos.ui.MapContainer
      Override this method to fetch the GeoJSON data to send to the layer source
      Overrides:
      fetchGeoJSONData in class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
      Parameters:
      layerid - the id of the layer for which fetch the GeoJSON data
      Returns:
      a GeoJSON string according to GeoJSON RFC
    • aggiungiAscoltatoreResizeViewportPG

      protected void aggiungiAscoltatoreResizeViewportPG(StringBuilder sb)
      Overrides:
      aggiungiAscoltatoreResizeViewportPG in class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
    • fetchGeoJSONData

      protected String fetchGeoJSONData(String layerid, org.locationtech.jts.geom.Envelope bbox)
      Description copied from class: overit.geocall.basic.geos.ui.MapContainer
      Override this method to fetch the GeoJSON data to send to the layer source
      Overrides:
      fetchGeoJSONData in class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
      Parameters:
      layerid - the id of the layer for which fetch the GeoJSON data
      bbox - the bounding box required from the map
      Returns:
      a GeoJSON string according to GeoJSON RFC
    • getHierarchyFromResource

      protected org.geos.interfaces.Hierarchy getHierarchyFromResource(String resource, String xsl)
      Overrides:
      getHierarchyFromResource in class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
    • getGeoJSONInfo

      protected String getGeoJSONInfo(String layerId, String featureId)
      Description copied from class: overit.geocall.basic.geos.ui.MapContainer
      Override this method to define a info string to manage the tooltip of the GeoJSON layers
      Overrides:
      getGeoJSONInfo in class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
      Parameters:
      layerId - the id of the layer for which build a tooltip string
      featureId - the id of the feature for which build a tooltip string
      Returns:
      a not null string to use as tooltip
    • onIndicateBundleStartingPoint

      public boolean onIndicateBundleStartingPoint(UIMessage uim)
      UI event handler to enable map click for indicating the bundle starting point.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onCoordinateCaptured

      public boolean onCoordinateCaptured(UIMessage uim)
      UI event handler to handle the new starting position coordinates.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • getMapMenu

      public Menu getMapMenu()
      Overrides:
      getMapMenu in class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
    • onCancelSelectedBundleOperations

      public boolean onCancelSelectedBundleOperations(UIMessage uim)
      UI event handler to remove the selected operations from a bundle.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • getBundleDetail

      protected BundleDetail getBundleDetail(Container container)
      Retrieves the BundleDetail container from the parent hierarchy.
      Parameters:
      container - the current container
      Returns:
      the BundleDetail container