OL3 - React map client for GeoNode
JavaScript HTML Python CSS Other
Latest commit 9c6c8d6 Jun 22, 2017 @bartvde bartvde committed on GitHub Merge pull request #174 from travislbrundage/versioning
Add get_version to show version and commit hash
Permalink
Failed to load latest commit information.
.github Add PR template Oct 17, 2016
.travis Move back to deploy script. Oct 21, 2016
geonode-client
helper Update react deps to 0.15.2 Nov 18, 2016
resources Initial commit Oct 11, 2016
src Fix issues with zoom and rotate buttons Mar 2, 2017
tests Take base layers from geonode settings Feb 5, 2017
.babelrc Remove the html coverage report and just use lcov Jan 24, 2017
.codeclimate.yml Add eslint, codeclimate Oct 14, 2016
.editorconfig Save the Map to GeoNode Endpoint (#74) Dec 20, 2016
.eslintrc Save the Map to GeoNode Endpoint (#74) Dec 20, 2016
.gitignore Edit map (#116) Jan 23, 2017
.nvmrc Add tests for viewer Oct 13, 2016
.travis.yml Change depolox script for handling multiple expressions Jan 31, 2017
CNAME
Changelog.md Update changelog Oct 20, 2016
GeonodeDebug.jsx Use terranodo proxy Oct 25, 2016
LICENSE Initial commit Oct 6, 2016
MANIFEST.in fix name of manifest file to all caps and bump version Feb 6, 2017
Makefile Update and fix django pip package creation (#71) Dec 13, 2016
README.md PyPi package now with templatetags and templates (#75) Dec 20, 2016
VERSION Release 0.0.23 Mar 2, 2017
app.jsx No need for default map config Nov 2, 2016
createbuild.js
createpackage.js Initial commit Oct 11, 2016
debug-server.js Initial commit Oct 11, 2016
index-composer.html Make sure we use Roboto font (#72) Dec 22, 2016
index-gh.html Make sure we use Roboto font (#72) Dec 22, 2016
index.html Make sure we use Roboto font (#72) Dec 22, 2016
karma.conf.js Remove the html coverage report and just use lcov Jan 24, 2017
package.json Peg sdk version to fix the build Jun 19, 2017
publish.sh Add production code for dist Nov 25, 2016
setup.py Add get_version to show version and commit hash Jun 19, 2017
webpack.config.js Do not break tests Feb 6, 2017

README.md

geonode-client Build Status Code Climate Test Coverage

OL3 - React map viewer for GeoNode

Installation

Install node and npm. We would encourage you to use nvm a version manager for node.

You need node > 5

Run npm install to install all dependencies.

Development Server

Run npm start to start the development server. Visit your browser at http://localhost:8080 to see the result.

Testing

During development run npm run test:watch to run tests on every file change.

Run npm test to run the full test suite with code coverage report.

Building

Building is done via webpack and the command is npm build
The dist folder is where the minified versions of these files are stored.

Deployment to GH-pages

Automated deployment via travis is enabled for the master branch.

If you want to deploy manually to gh-pages use npm run deploy

Important

The deplyoment uses the index-gh.html please keep this file in sync with index.html and change the path once the repo changes it's name. The .travis.yml needs to be changed as well.

Integrating into GeoNode/Django

Add django-geonode-client to your requirements.txt Add geonode-client to your INSTALLED_APPS

For GeoNode

Change the LAYER_PREVIEW_LIBRARY to react

For Django

We added templatetags you can use in your templates

Add {% client_viewer_js %} to include the viewer javasricpt Add {% client_composer_js %} to include the composer javasricpt

The following templates are available: client_map_view_html for the full map view client_map_detail_view_html for a smaller map view (as in the map preview) client_map_new_html create a new map with composer client_layer_map_html smaller map view for the layer preview