Configuration plugins Geonode Mapstore client 4.0

24 views
Skip to first unread message

Gaelle PAYET

unread,
Nov 2, 2022, 9:32:17 AM11/2/22
to GeoNode Development
Hi,
I installed the latest version of geonode with Ubuntu 20.04 https://docs.geonode.org/en/master/install/advanced/project/index.html .I am looking to configure plugins such as Query Panel and Searchbybookmarks. How can we activate them? How to customize these plugins in settiings.py or localConfig.json (geonode-mapstore-client)? How to configure these plugins are not present in application front ?
I tested this configurations
I tried the following code for the SearchByBookMark in the localConfig.json  with key map_embed and map_viewer but it didn't work:

{
"name": "SearchByBookMark",
"cfg": {
"zoomOnSelect": true,
"bookmarkEditing": "ADMIN"
}
}
The plugin SearchByBookmarks is not configured in the project geonode-mapstore-client 4.0 :
Can you help me please ?
Is there a configuration other than for version Geonode 3.3 ?

How to activate Query Panel ?

I tested with this code in my settings.py but i did'nt work

{
        "op": "add",
        "jsonpath": "$.map_viewer..[?(@.name == 'QueryPanel')].cfg",
        "value": {
            "activateQueryTool": "true",
                    "toolsOptions": {
                        "hideCrossLayer": "true"
                    },
            "spatialOperations": [
                {"id": "INTERSECTS", "name": "queryform.spatialfilter.operations.intersects"},
                {"id": "BBOX", "name": "queryform.spatialfilter.operations.bbox"},
                {"id": "CONTAINS", "name": "queryform.spatialfilter.operations.contains"},
                {"id": "WITHIN", "name": "queryform.spatialfilter.operations.within"},
                {"id": "DWITHIN", "name": "queryform.spatialfilter.operations.dwithin"}
    ],
            "spatialMethodOptions": [
               
                {"id": "Viewport", "name": "queryform.spatialfilter.methods.viewport"},
                {   "id": "BBOX", "name": "queryform.spatialfilter.methods.box"},
                {"id": "Circle", "name": "queryform.spatialfilter.methods.circle"},
                {"id": "Polygon", "name": "queryform.spatialfilter.methods.poly"},
                {
                    "id": "methodId",
                    "name": "methodName",
                    "type": "wfsGeocoder",
                    "url": "urlToGeoserver",
                    "crossLayer": {
                        "cqlTemplate": "ATTRIBUTE_Y = '${properties.ATTRIBUTE_Y}'",
                        "geometryName": "GEOMETRY",
                        "typeName": "workspace:typeName"
                    },
                    "filterProps": {
                        "blacklist": [],
                        "maxFeatures": 5,
                        "predicate": "LIKE",
                        "queriableAttributes": ["ATTRIBUTE_X"],
                        "typeName": "workspace:typeName",
                        "valueField": "ATTRIBUTE_Y",
                        "srsName": "EPSG:3857"
                    },
                    "customItemClassName": "customItemClassName"
                } ]
                }
            }


Is there a configuration other than for version Geonode 4.0?
In the version 2.1,  I have documentation with the configurations files but there a not present in the version 4.0 :

Can you help me please ?

Gaëlle Payet
GIS Developer





Reply all
Reply to author
Forward
0 new messages