Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration update for the plugins available inside the context creator #1675

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions geonode_mapstore_client/client/js/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,26 @@ export const plugins = {
MapViewersCatalogPlugin: toModulePlugin(
'MapViewersCatalog',
() => import(/* webpackChunkName: 'plugins/map-viewers-catalog' */ '@js/plugins/MapViewersCatalog')
),
MapExportPlugin: toModulePlugin(
'MapExport',
() => import(/* webpackChunkName: 'plugins/mapExport' */ '@mapstore/framework/plugins/MapExport')
),
MapImportPlugin: toModulePlugin(
'MapImport',
() => import(/* webpackChunkName: 'plugins/mapImport' */ '@mapstore/framework/plugins/MapImport')
),
SearchByBookmarkPlugin: toModulePlugin(
'SearchByBookmark',
() => import(/* webpackChunkName: 'plugins/searchByBookmark' */ '@mapstore/framework/plugins/SearchByBookmark')
),
CRSSelectorPlugin: toModulePlugin(
'CRSSelector',
() => import(/* webpackChunkName: 'plugins/CRSSelector' */ '@mapstore/framework/plugins/CRSSelector')
),
SettingsPlugin: toModulePlugin(
'Settings',
() => import(/* webpackChunkName: 'plugins/settings' */ '@mapstore/framework/plugins/Settings')
)
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,10 @@ div#mapstore-globalspinner {

.ms-map-views {
left: 44px;
}
#mapstore-settings {
.form-group-sm select.form-control {
height: @input-height-base;
line-height: @input-height-base;
}
}
126 changes: 123 additions & 3 deletions geonode_mapstore_client/static/mapstore/configs/pluginsConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,70 @@
"activateMetedataTool": false
},
"children": [
"TOCItemsSettings",
"FeatureEditor",
"FilterLayer",
"AddGroup",
"Swipe"
"Swipe",
"VisualStyleEditor"
],
"autoEnableChildren": [
"TOCItemsSettings",
"FeatureEditor",
"FilterLayer",
"AddGroup"
"AddGroup",
"VisualStyleEditor"
],
"dependencies": [
"DrawerMenu",
"MapLoading"
]
},
{
"name": "TOCItemsSettings",
"glyph": "wrench",
"title": "plugins.TOCItemsSettings.title",
"description": "plugins.TOCItemsSettings.description",
"children": [
"StyleEditor"
]
},
{
"name": "StyleEditor",
"glyph": "1-stilo",
"title": "plugins.StyleEditor.title",
"description": "plugins.StyleEditor.description"
},
{
"name": "VisualStyleEditor",
"glyph": "1-stilo",
"title": "plugins.VisualStyleEditor.title",
"description": "plugins.VisualStyleEditor.description",
"defaultConfig": {
"showLayerProperties": true,
"styleService": {
"baseUrl": "{state('settings') && state('settings').geonodeUrl && state('settings').geonodeUrl + 'gs/' || '/gs/'}",
"formats": [
"css",
"sld"
],
"availableUrls": [
"{state('settings') && state('settings').geoserverUrl || '/geoserver/'}",
"{state('settings') && state('settings').geonodeUrl && state('settings').geonodeUrl + 'gs/' || '/gs/'}"
],
"fonts": [
"Arial",
"Courier New",
"Monospaced",
"SansSerif",
"Serif",
"Times New Roman"
]
},
"editingAllowedRoles": null,
"enableSetDefaultStyle": true
}
},
{
"name": "FeatureEditor",
"glyph": "features-grid",
Expand Down Expand Up @@ -143,7 +192,10 @@
"viewerOptions": {
"container": "{context.ReactSwipe}"
}
}
},
"children": [
"Settings"
]
},
{
"name": "Locate",
Expand Down Expand Up @@ -254,6 +306,9 @@
{
"name": "Swipe"
},
{
"name": "SearchByBookmark"
},
{
"name": "Search",
"glyph": "search",
Expand All @@ -263,6 +318,9 @@
"OmniBar",
"SearchServicesConfig"
],
"children": [
"SearchByBookmark"
],
"defaultConfig": {
"withToggle": [
"max-width: 768px",
Expand Down Expand Up @@ -425,6 +483,68 @@
"defaultConfig": {
"wrap": true
}
},
{
"name": "MapImport",
"glyph": "upload",
"title": "plugins.MapImport.title",
"description": "plugins.MapImport.description",
"dependencies": [
"SidebarMenu"
]
},
{
"name": "MapExport",
"glyph": "download",
"title": "plugins.MapExport.title",
"description": "plugins.MapExport.description",
"dependencies": [
"SidebarMenu"
]
},
{
"name": "CRSSelector",
"glyph": "crs",
"title": "plugins.CRSSelector.title",
"description": "plugins.CRSSelector.description",
"dependencies": [
"MapFooter"
],
"defaultConfig": {
"additionalCRS": {},
"filterAllowedCRS": [
"EPSG:4326",
"EPSG:3857"
],
"allowedRoles": [
"ADMIN"
]
}
},
{
"name": "Settings",
"glyph": "cog",
"title": "plugins.Settings.title",
"description": "plugins.Settings.description",
"dependencies": [
"SidebarMenu"
],
"defaultConfig": {
"wrap": true,
"overrideSettings": {
"language": false,
"history": false
}
}
},
{
"name": "LongitudinalProfileTool",
"glyph": "1-line",
"title": "plugins.LongitudinalProfileTool.title",
"description": "plugins.LongitudinalProfileTool.description",
"dependencies": [
"SidebarMenu"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "Keine Ergebnisse für diese Anfrage. Versuchen Sie, den Filter zu wechseln oder einen anderen Dienst aus der Eingabe in der oberen rechten Ecke auszuwählen."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Der Stileditor des Datensatzes",
"title": "Visueller Stil-Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>Austausch von Geodaten und Karten.</p>",
"orderBy": "Sortieren nach",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No hay resultados para esta solicitud. Intente cambiar el filtro o seleccione un servicio diferente de la entrada en la esquina superior derecha."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Editor de estilo del conjunto de datos",
"title": "Editor de estilo visual"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>compartir datos y mapas geoespaciales.</p>",
"orderBy": "Ordenar por",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "Aucun résultat pour cette demande. Essayez de changer le filtre ou sélectionnez un service différent à partir de l'entrée dans le coin supérieur droit."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Éditeur de style du jeu de données",
"title": "Éditeur de styles visuels"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>partager des données et des cartes géospatiales.</p>",
"orderBy": "Commandé par",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "Nessun risultato per questa richiesta. Prova a cambiare il filtro o selezionare un altro servizio nel selettore in alto a destra."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Editor di stile del set di dati",
"title": "Editor dello stile visivo"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>condivisione di dati geospaziali e mappe.</p>",
"orderBy": "Ordinato da",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"emptyList": "No results for this request. Try to change filter or select a different service from the input in the top right corner."
}
},
"plugins": {
"VisualStyleEditor": {
"description": "Dataset's style editor",
"title": "Visual Style Editor"
}
},
"gnhome": {
"description": "<h1>GeoNode</h1><p>sharing geospatial data and maps.</p>",
"orderBy": "Order by",
Expand Down