Example web site for layertree2json QGIS plugin, see https://github.com/geraldo/layertree2json
This project right now uses:
- QGS project example file.
- JSON file generated using layertree2json QGIS plugin.
- 2 layers saved as static files.
- QGSI Server to render layers as WMS.
- Openlayers as web map library.
- ol-layerswitcher to manage layers.
You can have a look at the rendered version here.
To install dependencies:
npm install
Start a development server (available at http://localhost:3000):
npm start
To generate a build ready for production:
npm run build
Then deploy the contents of the dist
directory to your server. You can also run npm run serve
to serve the results of the dist
directory for preview.