GithubHelp home page GithubHelp logo

bforben / interactive-mapping Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lgss/interactive-mapping

0.0 2.0 0.0 580 KB

An interactive mapping web application, shows vector overlays on top of Ordnance Survey Open Space maps

License: GNU General Public License v3.0

interactive-mapping's Introduction

Interactive Mapping

This is an interative mapping application which enables you to publish overlay layers onto an Ordnance Survey base map.

Dependencies

This application is designed to server the overlay layers using the free and open-source Geoserver, however, it wouldn't be too much effort to rework the application using any map server that has a WMS or WFS end point.

  • Geoserver - back end server and data provider, installed and configured seperately.
  • OpenSpace.js - OS OpenSpace® application programming interface (API) allows OS maps to be embedded and displayed on your web page or online application. This also includes the OpenLayers library.
  • Backbone.js - helps keep things modular
  • Inuit.css - a powerful, scalable, Sass-based, BEM, OOCSS framework from @csswizardry
  • NPM - NPM is included as part of Node.js
  • Grunt - a javascript task runner to handle dependencies, compilation and minification.

Getting Started

Install Geoserver

  1. Install the latest stable version of Geoserver, the WAR file is easily deployed on Apache Tomcat
  2. Run your Geoserver instance, if you're working locally to begin with, you'll probably find your Geoserver at http://localhost:8080/geoserver
  3. Install the CSS Module to make styling Vector Layers a bit easier
  4. Setup a Workspace called 'Overlays'
  5. Add a Data Store to the Workspace
  6. Publish some Layers to your Data Store

Register for OS OpenSpace®

  1. Head over to the OS OpenSpace® website and register for an API key
  2. Save the API key somewhere safe.

Setting up the application

  1. Copy this whole repository into your web directory, e.g var/www/html/interactive-mapping
  2. From the command line, change the directory to your interactive mapping directory
  3. Run 'npm install' to install grunt and its dependencies
  4. Open the js/app.example.js file ready for editing
  5. Completing the configuration in app.example.js
  6. Rename app.example.js to app.js
  7. Back in the command line, run 'grunt' to compile the JavaScript and SASS
  8. Grunt will continue to watch for changes, as you save files it will recompile

Deploying

  1. For the front end application you'll need to deploy
    • index.html
    • css/style.css
    • img/*
    • js/build/app.min.js
    • theme/*
    • plus any other files you've added
  2. Also note, your app.js file will need to be compiled with the correct urls for your live environment if they're different from your development environment.

interactive-mapping's People

Watchers

Ben Cheetham avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.