The easiest way to help out is to submit bug reports and feature requests on our issues page.
When submitting a bug report, please list:
- your specific browser and operating system versions
- steps required to recreate the issue
- what happened
- what you expected to happen
Thanks, and happy mapping!
To get Tangram up and running locally:
- Clone or download this repository:
- clone in a terminal window with
git clone https://github.com/tangrams/tangram.git
- or download a zip directly: https://github.com/tangrams/tangram/archive/master.zip
- or use Bower:
bower install tangram
- clone in a terminal window with
- Start a webserver in the repository's directory:
- in a terminal window, enter:
python -m SimpleHTTPServer 8000
- if that doesn't work, try:
python -m http.server
- in a terminal window, enter:
- View the map at http://localhost:8000 (or whatever port you started the server on)
If you'd like to contribute to the project or just make changes to the source code for fun, you'll need to install the development requirements and build the library:
npm install
npm run build
The library will be minified in dist/
, and index.html
provides an example for rendering from different sources and simple Leaflet integration.
For more rapid development of Tangram we provide a watcher with incremental building and live reloading, simply run
npm start
and point your browser to http://localhost:8000
Any changes you make to the the source files (including shader code) will rebuild and reload on save.
Tests are included to ensure that the code functions as expected. To run all of the tests:
npm test
Every time this runs, a new browser instance is created. If you wish to have a single browser instance and run the test suite against that instance do the following,
npm run karma-start
And then run the tests with,
npm run karma-run
We're using jshint to maintain code quality.
npm run lint