Giter VIP home page Giter VIP logo

leaflet-starter's Introduction

Leaflet Starter

Barebones application needed for building a Leaflet webmap with GeoJSON data. This specific example uses Mapbox's tilesets which can be obtained by creating an account at mapbox.com.

##What you'll need

  1. Mapbox tileset ID ex: examples.map-h67hf2ic
  2. Data. For testing and playing around, I recommend starting with point data from Natural Earth Data's Populated Places dataset.

##Setup

  1. Get your data into a GeoJSON format, via GDAL cli or QGIS (read more about geojson here).
  2. Take the raw text of that GeoJSON data and add it to a javascript variable in a separate .js file - this is done for you here in the data.js file, which is linked to your index.html file.
  3. Instantiate the leaflet API via your site.js file, this is where you'll include your mapbox tileset ID and your geojson data/variable. The site.js is prepared for you already to set up your map in the #map element of your index.html file.

##Woop~!

leaflet-starter's People

Contributors

mapsam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaflet-starter's Issues

The possibilities....

What could we do with this 'starter' that would make it more accessible? Could be a leaflet starter tutorial series ... or a set of starter files for specific data types/tile sets ... or different mapping libraries even (i.e. open layers, leaflet, google, nokia, etc.).

The possibilities ...

ARE ENDLESS. ๐Ÿ‘ฏ

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.