Giter Club home page Giter Club logo

osgis-ol3-leaflet's Introduction

Practical OpenLayers 3 & Leaflet

A hands on introduction to using OpenLayer 3 (OL3) and Leaflet to display spatial data on the web. The workshop will introduce the two libraries, the underpinning concepts and strengths of each, and take delegates through creating a series of examples.

Documentation: http://astuntechnology.github.io/osgis-ol3-leaflet/
Repository: https://github.com/AstunTechnology/osgis-ol3-leaflet

What we will build

The workshop walks through building the same simple web mapping application first using OpenLayers 3 and then with Leaflet. The steps break down as follows:

  • Basic map with OSM tiles
  • OS-GB Map with Ordnance Survey tiles
  • GeoJSON layer with markers
    • Info for GeoJSON layer
  • WMS layer
    • Info for WMS layer

Completed versions can be seen here:

Getting started

Get a copy of the repository

First clone or download (and unzip) the repository from GitHub to a suitable location on your local machine.

git clone https://github.com/AstunTechnology/osgis-ol3-leaflet.git

If you are using your own machine then you should be good to go, start building an OpenLayers 3 map.

OSGeo Live DVD

If you are using the OSGeo Live DVD do the following:

  • Dismiss the Welcome and Upgrade prompts
  • In Firefox (Applications > Web Browser) navigate to http://is.gd/osgis2014
  • Copy and paste the commands displayed in your browser into a Terminal (Applications > Accessories > Terminal Emulator) and hit return

The commands set the keyboard layout to GB, installs git and gedit (a slightly better text editor) then clones the repository and changes you into it's root. Now you're ready to start building an OpenLayers 3 map.


Extra credit

  • Style markers based on an attribute value
  • Add additional WMS layer (the WMS server used in the workshop also has a osgb:county_region layer)

Resources

License

The documentation is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/. Sample code is licensed MIT. © Astun Technology.

Third-party libraries bundled with this repository for convenience such as OpenLayers 3, Leaflet, reqwest etc. retain their original license.

Todo

  • Consider adding Canvas example as suggested by @acanimal

osgis-ol3-leaflet's People

Contributors

walkermatt avatar

Watchers

James Cloos avatar  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.