Code Monkey home page Code Monkey logo

leaflet-storymap-layers's Introduction

leaflet-storymap-layers

Scroll-driven story map, with narrative text and multiple GeoJSON layers, using Leaflet and jQuery

Demo

http://jackdougherty.github.io/leaflet-storymap-layers/index.html

Features

  • Scroll the storymap to add/remove GeoJSON layers and tell a story about changing lines or boundaries over time.
  • Scroll-driven navigation, using screen swipe, trackpad, or keyboard down-arrow. Initial map displays all point markers. Viewers can pan and zoom the map independently of the narration to explore further.
  • Easy-to-learn template to create your own storymap. Upload text, point coordinates, zoom levels, and image links to a CSV generic spreadsheet, and drag into http://geojson.io to create a GeoJSON data file.
  • Images can be stored in local subfolder or pulled from an external URL.
  • Works in modern browsers: Chrome, Firefox, Safari, Internet Explorer 9+.

Requires open-source libraries

  • Leaflet.js
  • jQuery
  • Font Awesome

Compare with

Credits

Create your own version

  • Start with map.csv template and add chapters, descriptions, zoom levels, center coordinates, images, layers
  • Convert the map.csv into map.geojson with http://geojson.io
  • Upload additional GeoJSON layer files (such as boundaries to be displayed) into layer folder
  • See more details (to come) in http://DataVizForAll.org

To Do

  • Ilya's note: If for some reason the last chapter doesn't get active (the case for big screen sizes), replace value of areaTop in script.js from -100 to -200 or more.
  • remove my placeholder images and create a richer story
  • remove unnecessary files from the template and move to otl-version
  • add polygon styling, display feature properties via click or hover
  • add instructions in DataVizForAll.org
  • explain how to add markers if desired

leaflet-storymap-layers's People

Contributors

ilyankou avatar jackdougherty avatar npmcdn-to-unpkg-bot avatar

Watchers

 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.