Skip to content

Draw on a Mapbox GL JS map, generate GeojSON and save it to a Github Gist

Notifications You must be signed in to change notification settings

charliedotau/mapbox-gl-js-draw-github-gist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draw on a map, generate GeoJSON, write to Gist

This repo demonstrates a simple-page that enables:

  1. a non-technical user to easily annotate a map - using simple drawing tools.

  2. a non-technical user to save and share their map annotation, in the form of GeoJSON, without knowing what the hell GeoJSON actually is.

The repo uses:

  • Mapbox GL JS for the base map,

  • Mapbox GL Draw to facilitate drawing on the map, and generating the underlying GeoJSON

  • Github Gist for saving and sharing the GeoJSON document.

  • Bootstrap 3 for the layout

  • and a wee bit of Jquery (yuck)

Demo

Ever wanted to see a map of the Parliamentary Triangle of Canberra, Australia? Of course you have. Let me draw that for you.

Demo

About

Draw on a Mapbox GL JS map, generate GeojSON and save it to a Github Gist

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published