This is a demonstrator of the current state of the NU Urban Observatory, done as an interactive OpenLayers map. Several other layers from Newcastle City Council and The UK Office of National Statistics are also overlaid. These are served from an Amazon AWS instance named ndh114_gis_server. The purpose of the map is to bring together some of the key datasets for the Spatial Inequality and the Smart City project, PI Rachel Franklin.
This repository contains front-end JavaScript code, and is [built into a web bundle using Parcel according to this documentation](https://openlayers.org/en/latest/doc/tutorials/bundle.html. Additional libraries used:
ol-layerswitcher for the mouseover layer tree and bulma for some basic CSS classes
- Install node and npm
- Install Openlayers
npm install ol
- Install parcel bundler
npm install --save-dev parcel-bundler
- Install the OpenLayers layer switcher
npm install --save ol-layerswitcher
- Install node-sass and bulma
npm install --save-dev node-sass npm install --save-dev bulma
npm run css-build && npm run build
Will use parcel/node-sass etc to package up minified JS and CSS into the 'dist' directory, for direct copy to a server.