From 898ef5a8a5e70e0c53c6848eeca4ad671c26cd69 Mon Sep 17 00:00:00 2001 From: Suren Date: Mon, 14 Oct 2024 17:27:35 +0530 Subject: [PATCH 01/13] Update ms to latest --- MapStore2 | 2 +- configs/localConfig.json | 111 +++++++++---------- configs/pluginsConfig.json | 19 +++- dashboard-embedded-template.html | 4 +- embeddedTemplate.html | 4 +- geostory-embedded-template.html | 4 +- indexTemplate.html | 4 +- package.json | 8 +- web/pom.xml | 135 ++++++++++++++++++++++-- web/src/main/resources/proxy.properties | 2 +- 10 files changed, 209 insertions(+), 84 deletions(-) diff --git a/MapStore2 b/MapStore2 index bc377a464..453cd13c1 160000 --- a/MapStore2 +++ b/MapStore2 @@ -1 +1 @@ -Subproject commit bc377a464ea5b4431834210c4f406af1bb991728 +Subproject commit 453cd13c1e6319ddc083f09528650a3934ae0cbf diff --git a/configs/localConfig.json b/configs/localConfig.json index 3b274e499..878267be3 100644 --- a/configs/localConfig.json +++ b/configs/localConfig.json @@ -108,14 +108,6 @@ }], "initialState": { "defaultState": { - "annotations": { - "config": { - "multiGeometry": true, - "validationErrors": {} - }, - "format": "decimal", - "defaultTextAnnotation": "New" - }, "catalog": { "default": { "newService": { @@ -238,7 +230,8 @@ "group": "background", "title": "Empty Background", "fixed": true, - "type": "empty" + "type": "empty", + "visibility": false }] } } @@ -315,11 +308,8 @@ }, { "name": "TOC", "cfg": { - "activateMetedataTool": false, "activateMapTitle": false, - "activateSortLayer": false, - "activateLayerFilterTool": false, - "activateQueryTool": false + "activateSortLayer": false } }, "AddGroup", { "name": "TOCItemsSettings", @@ -429,7 +419,9 @@ }, "AutoMapUpdate", "DrawerMenu", "Version", "Notifications", "BackgroundSelector", { "name": "Annotations", "cfg": { - "symbolsPath": "assets/symbols/" + "symbolsPath": "assets/symbols/", + "format": "decimal", + "defaultTextAnnotation": "New" } }, { @@ -486,52 +478,55 @@ ] } }, { - "name": "TOC", - "cfg": { - "activateMetedataTool": true, - "metadataOptions": { - "xmlNamespaces": { - "gmd": "http://www.isotc211.org/2005/gmd", - "srv": "http://www.isotc211.org/2005/srv", - "gco": "http://www.isotc211.org/2005/gco", - "gmx": "http://www.isotc211.org/2005/gmx", - "gfc": "http://www.isotc211.org/2005/gfc", - "gts": "http://www.isotc211.org/2005/gts", - "gml": "http://www.opengis.net/gml" - }, - "extractors": [{ + "name": "MetadataInfo", + "cfg": { + "metadataOptions": { + "xmlNamespaces": { + "gmd": "http://www.isotc211.org/2005/gmd", + "srv": "http://www.isotc211.org/2005/srv", + "gco": "http://www.isotc211.org/2005/gco", + "gmx": "http://www.isotc211.org/2005/gmx", + "gfc": "http://www.isotc211.org/2005/gfc", + "gts": "http://www.isotc211.org/2005/gts", + "gml": "http://www.opengis.net/gml" + }, + "extractors": [ + { + "properties": { + "title": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString", + "abstract": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString", + "purpose": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:purpose/gco:CharacterString", + "source": "/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:lineage/gmd:LI_Lineage/gmd:statement/gco:CharacterString", + "createdDate": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date[../../gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='creation']]", + "lastRevisionDate": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date[../../gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='revision']]", + "pointsOfContact": { + "xpath": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty", + "properties": { + "individualName": "gmd:individualName/gco:CharacterString", + "organisationName": "gmd:organisationName/gco:CharacterString", + "contactInfo": { + "xpath": "gmd:contactInfo/gmd:CI_Contact", "properties": { - "title": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString", - "abstract": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString", - "purpose": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:purpose/gco:CharacterString", - "source": "/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:lineage/gmd:LI_Lineage/gmd:statement/gco:CharacterString", - "createdDate": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date[../../gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='creation']]", - "lastRevisionDate": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date[../../gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='revision']]", - "pointsOfContact": { - "xpath": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty", - "properties": { - "individualName": "gmd:individualName/gco:CharacterString", - "organisationName": "gmd:organisationName/gco:CharacterString", - "contactInfo": { - "xpath": "gmd:contactInfo/gmd:CI_Contact", - "properties": { - "phone": "gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString", - "deliveryPoints": "gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString", - "city": "gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString", - "postalCode": "gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString", - "country": "gmd:address/gmd:CI_Address/gmd:country/gco:CharacterString", - "electronicMailAddress": "gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString", - "URL": "gmd:onlineResource/gmd:CI_OnlineResource/gmd:linkage/gmd:URL", - "hoursOfService": "gmd:hoursOfService/gco:CharacterString" - } - }, - "role": "gmd:role/gmd:CI_RoleCode/@codeListValue" - } - } + "phone": "gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString", + "deliveryPoints": "gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString", + "city": "gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString", + "postalCode": "gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString", + "country": "gmd:address/gmd:CI_Address/gmd:country/gco:CharacterString", + "electronicMailAddress": "gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString", + "URL": "gmd:onlineResource/gmd:CI_OnlineResource/gmd:linkage/gmd:URL", + "hoursOfService": "gmd:hoursOfService/gco:CharacterString" } - }] + }, + "role": "gmd:role/gmd:CI_RoleCode/@codeListValue" + } + } } - } + } + ] + } + } + }, { + "name": "TOC" }, "FilterLayer", "AddGroup", @@ -738,8 +733,6 @@ "name": "TOC", "cfg": { "activateMapTitle": false, - "activateSettingsTool": false, - "activateMetedataTool": false, "activateRemoveLayer": false } }, diff --git a/configs/pluginsConfig.json b/configs/pluginsConfig.json index 98a762a9e..c8f37f98b 100644 --- a/configs/pluginsConfig.json +++ b/configs/pluginsConfig.json @@ -5,7 +5,6 @@ "glyph": "1-map", "mandatory": true, "defaultConfig": { - "mapTypeOverride": "openlayers", "mapOptions": { "openlayers": { "interactions": { @@ -59,7 +58,8 @@ "FeatureEditor", "FilterLayer", "AddGroup", - "Swipe" + "Swipe", + "MetadataInfo" ], "autoEnableChildren": [ "TOCItemsSettings", @@ -213,7 +213,8 @@ "title": "plugins.Home.title", "description": "plugins.Home.description", "dependencies": [ - "OmniBar" + "OmniBar", + "SidebarMenu" ] }, { @@ -397,6 +398,9 @@ { "name": "Swipe" }, + { + "name": "MetadataInfo" + }, { "name": "SearchByBookmark" }, @@ -485,9 +489,14 @@ "denyUserSelection": true, "title": "plugins.Save.title", "description": "plugins.Save.description", - "dependencies": [ - "SidebarMenu", + "children": [ "SaveAs" + ], + "autoEnableChildren": [ + "SaveAs" + ], + "dependencies": [ + "SidebarMenu" ] }, { diff --git a/dashboard-embedded-template.html b/dashboard-embedded-template.html index f788f772f..767a984eb 100644 --- a/dashboard-embedded-template.html +++ b/dashboard-embedded-template.html @@ -96,7 +96,9 @@ - + + + - +