Giter Site home page Giter Site logo

offline-tangram.js's Introduction

offline-tangram.js

Notes on setting up a small localized demo of tangram.js. To go fully offline, you'll need to download and locally access the leaflet resources, as well.

To run locally

Download this repo, then start a web server in its directory:

python -m SimpleHTTPServer 8000

If that doesn't work, try:

python -m http.server 8000

Then navigate to: http://localhost:8000

To fetch a subset of tiles using tilepacks

Clone tilepacks

git clone https://github.com/tilezen/tilepacks.git
cd tilepacks

Set up virtualenv (requires python3 and virtualenv)

python3 -m virtualenv env
source env/bin/activate
pip install -e .

Tilepack example: fetch tiles for San Francisco

MAPZEN_API_KEY=mapzen-6VCZ2xH tilepack -122.51489 37.70808 -122.35698 37.83239 10 15 sf_mvt_10_15 --tile-size 512

Tilepack example: fetch tiles for New York

MAPZEN_API_KEY=mapzen-6VCZ2xH tilepack -74.13574 40.614995 -73.84289 40.81693 10 15 ny_mvt_10_15 --tile-size 512

offline-tangram.js's People

Contributors

rfriberg 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.