From 20bdacfd83cdf0ebb488d966742c6471e97bdfb0 Mon Sep 17 00:00:00 2001 From: Luca Orlandini Date: Thu, 19 Aug 2021 16:32:46 +0200 Subject: [PATCH] update plugin configuration (#444) --- README.md | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dcc065d841..9ab921669c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # GeoNode MapStore Client [![Build Status](https://travis-ci.org/GeoNode/geonode-mapstore-client.svg?branch=master)](https://travis-ci.org/GeoNode/geonode-mapstore-client) [![Code Climate](https://codeclimate.com/github/GeoNode/geonode-viewer/badges/gpa.svg)](https://codeclimate.com/github/GeoNode/geonode-viewer) [![Test Coverage](https://codecov.io/gh/GeoNode/geonode/branch/master/graph/badge.svg)](https://codecov.io/gh/GeoNode/geonode/branch/master) -MapStore is an Open Source WebGIS framework based on ReactJS and it can be integrated inside GeoNode as maps, layers and apps viewer. GeoNode +MapStore is an Open Source WebGIS framework based on ReactJS and it can be integrated inside GeoNode as maps, layers and apps viewer. GeoNode - [Structure of directories](#structure-of-directories) - [Running in developer mode](#running-in-developer-mode) @@ -354,7 +354,7 @@ Some examples: } */ return _.mergeWith(localConfig, { - /* + /* ... my custom configuration */ }, function(objValue, srcValue, key) { @@ -395,6 +395,82 @@ Some examples: {% endblock %} ``` +- update plugin configuration + +```html +{% extends 'geonode-mapstore-client/_geonode_config.html' %} +{% block override_local_config %} + +{% endblock %} +``` ### Customization via fork/branch (advanced) Create a new fork/branch, apply changes, compile the new client then install the specific branch with pip in the requirement.txt of the geonode-project. @@ -406,7 +482,7 @@ Expected version in requirement.txt ## Integrating into GeoNode/Django -### WARNING: +### WARNING: - **Deprecated** `django-mapstore-adapter`; this library has been now merged into `django-geonode-mapstore-client` - You don't have to change anything on your `settings.py` but you will have to **remove** `django-mapstore-adapter` from `requirements.txt` and `setup.cfg`