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:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
overit.geocallapp.wfm.gis.ui.map.WFMMapContainer.ColorIsolati, overit.geocallapp.wfm.gis.ui.map.WFMMapContainer.FiltroIsolati, overit.geocallapp.wfm.gis.ui.map.WFMMapContainer.PGPointIconManagerNested classes/interfaces inherited from class overit.geocall.basic.geos.ui.MapContainer
overit.geocall.basic.geos.ui.MapContainer.InfoResult, overit.geocall.basic.geos.ui.MapContainer.JsonIdentify, overit.geocall.basic.geos.ui.MapContainer.JsonIdentifyListNested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BundleEntitiesAggregateprotected overit.geocallapp.wfm.geos.ui.WFMOpenLayersMapPanelprotected BundleMapLayerManagerFields inherited from class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
_baseLayersMetadata, _buttons, _colorManager, _dataManager, _defaultConfigurationReader, _defaultGeoJOSNProperties, _domainLayers, _enableEsriLayers, _enableWMSLayers, _eventReceiver, _freePointDataSource, _geoJSONProperties, _gisConfigurationReader, _isPlant, _jsConfigured, _mapSources, _mapType, _menuManager, _rendererTurni, _selectedFeatures, _spanPointAttivitaPianficabili, _standalone, _state, _tableMessages, _tooltipBuilder, _webMapLayersIndex, BLACK, BUNDLES_LAYER_ID, BUNDLES_LAYER_NAME, DEFAULT_ZOOM, DEFAULT_ZOOM_PLANT, ENVELOPE_EXPANSION_PLANT, ENVELOPER_EXPANSION, GRAY, loadedCustomer, MI_ATTIVITA_AGENDA, MI_ATTIVITA_CLIPOBOARD, MI_ATTIVITA_SATURAZIONE, MI_ATTIVITA_URGENTE, MI_RECORD_PERSI, MULTI_ATTIVITA, OPERATIONS_CENTER_X_FIELD, OPERATIONS_CENTER_Y_FIELD, OPERATIONS_CENTERS_PATH, RN_CLIENT_LAYERS_TABLE_VIEW, RN_LAYER_PANEL, RN_LAYER_PANEL_TABLE_VIEW, RN_ZONE_PANEL, RN_ZONE_PANEL_TABLE_VIEW, STYLE_OF_ADAPTIVE_CLIENT, STYLE_OF_NON_ADAPTIVE_CLIENT, WHITEFields inherited from class overit.geocallapp.wfm.geos.ui.MapContainer
_configReader, _enableOperationsCenterLayer, _geometryLayers, _geometryRepository, _layerFactory, _mainServicelayer, _olLayerFactory, _operationsCenterData, _operationsCenterFeatures, _operationsCenterLayerDefaultVisibility, BASE_LAYERS_NODE, BING_BASE_LAYERS, ENTER_IN_OPERATIONS_CENTER_EVENT, ESRI_BASE_LAYERS, GOOGLE_BASE_LAYERS, HERE_BASE_LAYERS, LOG, OPERATIONS_CENTER_ADDRESS_DESCRIPTION, OPERATIONS_CENTER_HAVE_ASSOCIATED_LAYER, OPERATIONS_CENTER_ID_FIELD, OPERATIONS_CENTER_LAYER_FIELD, OPERATIONS_CENTER_LAYER_ID, OPERATIONS_CENTER_LAYER_NAME, OPERATIONS_CENTER_MIN_ZOOM_FIELD, OSM_BASE_LAYERS, OVERLAYS_LAYERS_NODEFields inherited from class overit.geocall.basic.geos.ui.MapContainer
_dbvSelezionati, _initialEnvelope, _lastAjaxQueryThreadId, _mf, _panel, _pool, _r, _refreshNeeded, _reloadPage, _rListener, _selected, _source, _templateBase, _webmapDef, _xsl, f1000Km, fKm, fmFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidCenters the map on bundle operations with coordinates.protected StringfetchGeoJSONData(String layerid) Override this method to fetch the GeoJSON data to send to the layer sourceprotected StringfetchGeoJSONData(String layerid, org.locationtech.jts.geom.Envelope bbox) Override this method to fetch the GeoJSON data to send to the layer sourceGets the current Bundle aggregate object.protected BundleDetailgetBundleDetail(Container container) Retrieves the BundleDetail container from the parent hierarchy.protected StringgetGeoJSONInfo(String layerId, String featureId) Override this method to define a info string to manage the tooltip of the GeoJSON layersprotected org.geos.interfaces.HierarchygetHierarchyFromResource(String resource, String xsl) protected voidInitializes map features specific to the bundle data.protected voidInitializes the layer manager if it's not already initialized.booleanUI event handler to remove the selected operations from a bundle.booleanUI event handler to handle the new starting position coordinates.booleanUI event handler to enable map click for indicating the bundle starting point.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.voidsetAggregate(BundleEntitiesAggregate aggregate) Sets the Bundle aggregate object that contains the data to be displayed on the map.Methods inherited from class overit.geocallapp.wfm.gis.ui.map.WFMMapContainer
activateZona, addCustomProperties, addPlannableActivityPoints, aggiungiPuntoIcona, alignInfoActivation, allowedMapClass, attivaZonaById, buildCustomIcons, buildGeoJSONProperties, buildInfoString, buildInfoString, buildMapTitle, buildPolygon, buildPuntoUltimaPosizione, buildPuntoUltimaPosizioneMezzo, buildSelectionSummaryMessage, buildSetupScript, centerEnvelope, centerOnContent, centerOnMemorySource, centraSuIndirizzi, centraSuIndirizzo, centraSuIndirizzo, centraSuRisorsaById, chiudiPopUpSuMappa, clearMemorySource, disableLayerByConfiguration, disegnaAttivitaPianificabili, dispatchOptionToggle, domainLayers, drawBundles, envelopeFromCoordinate, evidenziaIndirizzi, evidenziaIndirizzo, findFiles, getAttivitaPianificabiliSelezionate, getBundlesGeoJSONData, getBundlesGeoJSONInfo, getBundlesLayerName, getConfigurationReader, getConfiguredBaseLayers, getDataManager, getEnvelopeExpansionDimension, getHtml, getInfoAttivitaPianificabile, getLayerForSource, getLayerIndex, getMapState, getMemorySource, getMemorySource, getMicroclusterColor, getRendererTurni, getRendererTurno, getTematismiAttivitaPianificabili, getToolbarManager, getTooltipMananger, getWebMapLayers, getXIndirizzo, getYIndirizzo, hierarchyBuilder, init, initChilds, initRendererTurnoSuMappa, isBundlesLayerDefined, isEsriLayerEnabled, isLayerAttivitaPianificateDefined, isLayerAttivitaPianificbiliDefined, isLayerClientiDefined, isLayerDepositiDefined, isLayerFreePointDefined, isLayerMicroclusterDefined, isLayerUltimaPosizioneMezziDefined, isLayerUltimaPosizioneRisorsaDefined, isLayerWMSEnabled, isMicroclusterVisible, isPlannableActivitySelected, loadAcliForNewExtent, loadLayerConfiguration, makeRigaPGRenderer, makeTooltipMananger, manageAjaxQuery, manageCustomerTooltip, manageSelectedFeatures, mostraIconaMezzi, mostraIconaRisorse, mostraIconaRisorse, mostraRisorsa, mostraTutteLeRisorse, onAnnullaAttivitaWFMMapContainer, onApplicaTematismiASchedulabili, onAssociateResourcesAndTeams, onCentraFeatureLayer, onCentraRisorsaDaToolbar, onCentraWMSLayer, onChiudiWFMMapContainer, onColoraAttivitaPerStato, onCreateBundleFromMapSelection, onDecreaseOpacity, onDeleteContent, onDettaglioOdlWFMMapContainer, onIncreaseOpacity, onInfoRequired, onLayerVisibilityChanged, onLoadMap, onMostraPosizioneDiTutteLeRisorse, onPulisciLivelloEvidenzia, onRunCommand, onScaleChanged, onSelectionChanged, onSelectionCounterChange, onSelectMapActivityFromTooltip, onShowPlannableActivitySelectedOnly, onTagliaAttivitaSelezionate, onToggle, onToggleInfoFeatureLayer, onToggleLegendLayer, onWFMMapContainerLayerToolbar, onWFMMapContainerOperationMenu, onWFMMapContainerRefreshMappa, onWFMMapContainerResourcesToolbar, onWFMMapContainerZoneToolbar, prepareValuesForRicaricaClientiSeNecessario, refreshFreePoints, refreshMapPanel, reset, reset, ricaricaClientiSeNecessario, ridisegnaTurni, rimuoviMapPanelNonSupportati, selectGeoJSONFeatures, selectGeoJSONFeaturesBundleOperations, selectGeoJSONFeaturesPlannableActivities, selectGeoJSONFeaturesPlannedActivities, selectPoints, selectPolygon, selectPolyLine, selectRectangle, sendEventUpdateSelectionCounter, setATTIVITAPIANIFICABILI, setATTIVITAPIANIFICATE, setCLIENTI, setColorManager, setConfigurationReader, setDataManager, setDEFAULTCONFIGURATIONREADER, setDefaultEnvelope, setDEPOSITI, setESRILAYERS, setESRISOURCE, setEventReceiver, setFREEPOINT, setFREEPOINTLABEL, setFreePointLayerDataSource, setGOOGLESOURCE, setMapState, setMICROCLUSTER, setOPENLAYERSSOURCE, setSelectionAttivitaSchedulate, setSourceInBaseAlMapType, setSTANDALONE, setULTIMAPOSIZIONE, setULTIMAPOSIZIONEMEZZI, setup, setupButtons, setVisibilitaAttivitaConsuntivate, setVisibilitaAttivitaPianificate, setWMSLAYERS, state, toggleVisibilitaTurno, toggleVisibilitaTurnoByIdRisorsa, toggleVisibilitaTurnoByIdRisorsa, updateSelectionCounter, visibilityTurniChangedMethods inherited from class overit.geocallapp.wfm.geos.ui.MapContainer
addBaseLayers, addOperationsCenterLayer, appendEsriBasemapConfiguration, buildGeometryTooltip, buildOperationsCenterMapTooltip, buildTooltipButton, centerOnOperationsCenterPlantLayer, configurationReader, geometryRepository, getBaseLayersByMapType, getHierarchyFromResource, getMainServiceLayer, getOperationsCenterData, getOperationsCenterLayerName, initGeometryLayers, initOperationsCenter, isOperationsCenterEnabled, isServiceLayerValidForOperationsCenter, layerFactory, loadAvailableLayers, loadEsriBasemapConfiguration, loadGeometries, loadLayerDefinition, mapType, olLayerFactory, onEnterInOperationsCenter, onFeatureMoved, setENABLEOPERATIONSCENTER, setLAYERDEFINITIONS, setMainServiceLayer, toGeoJSON, toTranslate, translateBaseLayerName, validateEventsMethods inherited from class overit.geocall.basic.geos.ui.MapContainer
ajaxQuery, boolParameter, centerCoordinate, centerCoordinate, centerCoordinate, centerLayer, centerLayer, centerNeigbourhood, centerPoint, cleanData, doubleParameter, getInitialEnvelope, getLayerDefinitions, getLayerInfo, getMap, getMapFactory, getMapsUrl, getNextScaleLevel, getPanel, getPreviousScaleLevel, getRenderer, getSelectedAttributes, getVariable, getView, giveParameters, initMapExtent, intParameter, isRefreshNeeded, manageGeoJSONFeatureSelection, manageGeoJSONRequest, onDraggedFromMap, onDropOnMap, onPaintMap, onPanelDraw, onView, parseInt, printSelection, reloadPage, selectEllipse, setPanel, setPOOL, setRefreshNeeded, setScale, setSOURCE, setTEMPLATEBASE, setup, setXSL, to_degree, to_m, to_m2, updateDBV, updateSelection, zoomin, zoomoutMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getRO, getROField, onClose, onOpenChildContainer, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, appendAttribute, buildDisplayScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
aggregate
-
layerManager
-
bundleMap
protected overit.geocallapp.wfm.geos.ui.WFMOpenLayersMapPanel bundleMap
-
-
Constructor Details
-
BundleMapContainer
public BundleMapContainer()
-
-
Method Details
-
setAggregate
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
Gets the current Bundle aggregate object.- Returns:
- the Bundle aggregate object, or null if not set
-
onOpen
Description copied from class:ContainerMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat 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: "¶ms=KEY1,VAL1,KEY2,VAL2" or "¶ms=KEY1=VAL1,KEY2=VAL2"
In that case it is possible to retrieve those params via theWindowManager.getRouteParams()method that returns anHashGetterwith 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:
onOpenin classoverit.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
Description copied from class:overit.geocall.basic.geos.ui.MapContainerOverride this method to fetch the GeoJSON data to send to the layer source- Overrides:
fetchGeoJSONDatain classoverit.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
- Overrides:
aggiungiAscoltatoreResizeViewportPGin classoverit.geocallapp.wfm.gis.ui.map.WFMMapContainer
-
fetchGeoJSONData
Description copied from class:overit.geocall.basic.geos.ui.MapContainerOverride this method to fetch the GeoJSON data to send to the layer source- Overrides:
fetchGeoJSONDatain classoverit.geocallapp.wfm.gis.ui.map.WFMMapContainer- Parameters:
layerid- the id of the layer for which fetch the GeoJSON databbox- the bounding box required from the map- Returns:
- a GeoJSON string according to GeoJSON RFC
-
getHierarchyFromResource
- Overrides:
getHierarchyFromResourcein classoverit.geocallapp.wfm.gis.ui.map.WFMMapContainer
-
getGeoJSONInfo
Description copied from class:overit.geocall.basic.geos.ui.MapContainerOverride this method to define a info string to manage the tooltip of the GeoJSON layers- Overrides:
getGeoJSONInfoin classoverit.geocallapp.wfm.gis.ui.map.WFMMapContainer- Parameters:
layerId- the id of the layer for which build a tooltip stringfeatureId- the id of the feature for which build a tooltip string- Returns:
- a not null string to use as tooltip
-
onIndicateBundleStartingPoint
UI event handler to enable map click for indicating the bundle starting point.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onCoordinateCaptured
UI event handler to handle the new starting position coordinates.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
getMapMenu
- Overrides:
getMapMenuin classoverit.geocallapp.wfm.gis.ui.map.WFMMapContainer
-
onCancelSelectedBundleOperations
UI event handler to remove the selected operations from a bundle.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
getBundleDetail
Retrieves the BundleDetail container from the parent hierarchy.- Parameters:
container- the current container- Returns:
- the BundleDetail container
-