-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
* update documentation * update homepage resource types list and resource enpoint * update client bundle
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,45 @@ | ||
# MapStore GeoNode client | ||
|
||
## Development setup | ||
|
||
Start the development application locally: | ||
|
||
- create a `env.json` file in `geonode_mapstore_client/client` directory with needed variables | ||
```js | ||
// env.json file | ||
{ | ||
"DEV_SERVER_HOST": "eg: my-geonode-host.org" | ||
} | ||
``` | ||
- `npm install` | ||
- `npm start` | ||
|
||
The application runs at `https://localhost:8081` afterwards. | ||
|
||
Note: localhost uses `https` protocol to connect a remote GeoNode instance | ||
|
||
## Compile bundle | ||
|
||
- `npm run compile` | ||
|
||
or run `build.sh` for the complete build process | ||
|
||
## Tools | ||
|
||
- node v12.14.1 | ||
- npm 6.13.4 | ||
# GeoNode MapStore Client Project | ||
|
||
This directory is the root folder where to initialize all the npm scripts. See the main [README.md](../../README.md) for more information about this directory. | ||
|
||
This project contains following applications: | ||
|
||
- [MapStore js API](#mapStore-js-api) | ||
- [GeoStory](#geostory) | ||
- [Homepage](#homepage) | ||
|
||
## MapStore js API | ||
Api used inside django templates to show map and layer viewers | ||
|
||
## GeoStory | ||
This application allow to show and edit stories with map and geospatial data | ||
## Homepage | ||
|
||
This single application is an alternative homepage that interact with the GeoNode API v2 and shows available resources. You can enable this app by replacing the content of the index.html of a GeoNode project with the [home.html](home.html) template. | ||
|
||
The homepage configuration file is located in [localConfig.json](static/mapstore/configs/localConfig.json) and it exposes specific properties to customize the homepage theme and structure: | ||
|
||
- @prop {object} `geoNodeApi` | ||
- @prop {object} `supportedLocales` | ||
- @prop {object} `geoNodeConfiguration` | ||
- @prop {object} geoNodeConfiguration.`theme` | ||
- @prop {object} geoNodeConfiguration.`theme.variant` | ||
- @prop {object} geoNodeConfiguration.`theme.navbar` | ||
- @prop {object} geoNodeConfiguration.`theme.hero` | ||
- @prop {object} geoNodeConfiguration.`theme...` | ||
- @prop {object} geoNodeConfiguration.`filters` | ||
- @prop {object} geoNodeConfiguration.`filters.fields` | ||
- @prop {object} geoNodeConfiguration.`filters.fields.options` | ||
- @prop {object} geoNodeConfiguration.`filters.order` | ||
- @prop {object} geoNodeConfiguration.`filters.order.defaultLabelId` | ||
- @prop {object} geoNodeConfiguration.`filters.order.options` | ||
- @prop {object} geoNodeConfiguration.`filters.extent` | ||
- @prop {object} geoNodeConfiguration.`filters.extent.layers` | ||
- @prop {object} geoNodeConfiguration.`filters.extent.style` | ||
- @prop {object} geoNodeConfiguration.`navbar` | ||
- @prop {object} geoNodeConfiguration.`navbar.logo` | ||
- @prop {object} geoNodeConfiguration.`navbar.items` | ||
- @prop {object} geoNodeConfiguration.`menu` | ||
- @prop {object} geoNodeConfiguration.`menu.items` | ||
- @prop {object} geoNodeConfiguration.`footer` | ||
- @prop {object} geoNodeConfiguration.`footer.items` |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,18 +21,25 @@ | |
"start": "mapstore-project start geonode", | ||
"test": "mapstore-project test geonode", | ||
"test:watch": "mapstore-project test:watch geonode", | ||
"update-project": "mapstore-project update geonode" | ||
"update-project": "mapstore-project update geonode", | ||
"lint": "eslint js --ext .jsx,.js" | ||
}, | ||
"author": "GeoSolutions", | ||
"license": "BSD-2-Clause", | ||
"devDependencies": { | ||
"@mapstore/project": "git+https://github.com/geosolutions-it/mapstore-project.git#30ac4deb06bfd71d5078a3171463eaab3990bd91" | ||
"@mapstore/project": "1.0.1" | ||
}, | ||
"dependencies": { | ||
"@fortawesome/fontawesome-free": "5.15.1", | ||
"bootstrap-v4": "npm:[email protected]", | ||
"js-cookie": "2.2.1", | ||
"mapstore": "file:MapStore2", | ||
"react-bootstrap-v1": "npm:[email protected]" | ||
}, | ||
"geonode": { | ||
"devServer": { | ||
"host": "localhost:8000", | ||
"protocol": "http" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
geonode-mapstore-client-v2.0.9-e6216cdd9cb80d3a15602ea9382af23f117c2ddf | ||
geonode-mapstore-client-v2.0.9-a2da04d3491f9e5b7c15d4e426e083f21b40ac88 |
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
geonode-mapstore-client-v2.0.9-e6216cdd9cb80d3a15602ea9382af23f117c2ddf | ||
geonode-mapstore-client-v2.0.9-a2da04d3491f9e5b7c15d4e426e083f21b40ac88 |