<commit_before>Tangram: WebGL for OpenStreetMap
===

[![Circle CI](https://circleci.com/gh/tangrams/tangram.png?style=badge&circle-token=<PASSWORD>)](https://circleci.com/gh/tangrams/tangram)

![tangram-header](https://cloud.githubusercontent.com/assets/459970/6598598/200f0ce0-c7db-11e4-98c7-c5a056b7aac7.png)


Tangram is a library for rendering 2D & 3D maps with WebGL. It is tuned for OpenStreetMap data, but supports any tiled source of GeoJSON/TopoJSON or binary vector tiles.

## Quickstart

1. 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](http://bower.io/): `bower install tangram`
2. 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`
3. View the map at http://localhost:8000 (or whatever port you started the server on)

## Demos

[**tangram-demo**](http://github.com/tangrams/tangram-demo) - A minimal demo showing the basic setup

[**gui-demo**](http://github.com/tangrams/gui-demo) - Control styles in real-time with a gui

[**shaders-demo**](http://github.com/tangrams/shaders-demo) - More complex glsl shaders

[**highways-demo**](http://github.com/tangrams/highways-demo) - Zoom-dependent styles and contextual filtering rules

## Vector Tiles

Instead of using traditional image tiles, we render from **vector tiles** that contain the underlying source geometry for each tile's bounding box.

Mapzen provides a free [vector tile service](http://mapzen.com/vector/) that can be used with Tangram for OpenStreetMap base layer data, with worldwide coverage updated daily. There is also an [OSM.US-hosted](http://openstreetmap.us/~migurski/vector-datasource/) alternative.

Tangram currently supports GeoJSON/TopoJSON tiles as well as the [mapnik binary format](https://github.com/mapbox/vector-tile-spec), both of which can be generated by the [Mapzen vector tile service](http://mapzen.com/vector/).

Here's an [example GeoJSON tile](http://vector.mapzen.com/osm/all/14/4826/6161.json).

The library also includes a [Leaflet](http://leafletjs.com) plugin, `Tangram.LeafletLayer`, to provide basic web map pan/zoom functionality.

## Development

If you'd like to contribute to the project or make changes to the source code for fun, you'll need to install development requirements and build the library:

```shell
npm install
make
```

The library will be minified in `dist/`, and `index.html` provides an example for rendering from different sources and simple Leaflet integration.
<commit_msg>added support section<commit_after>Tangram: WebGL for OpenStreetMap
===

[![Circle CI](https://circleci.com/gh/tangrams/tangram.png?style=badge&circle-token=2529a88125530794f64ffa1783625b5357456f71)](https://circleci.com/gh/tangrams/tangram)

![tangram-header](https://cloud.githubusercontent.com/assets/459970/6598598/200f0ce0-c7db-11e4-98c7-c5a056b7aac7.png)


Tangram is a library for rendering 2D & 3D maps with WebGL. It is tuned for OpenStreetMap data, but supports any tiled source of GeoJSON/TopoJSON or binary vector tiles.

## Quickstart

1. 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](http://bower.io/): `bower install tangram`
2. 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`
3. View the map at http://localhost:8000 (or whatever port you started the server on)

## Demos

[**tangram-demo**](http://github.com/tangrams/tangram-demo) - A minimal demo showing the basic setup

[**gui-demo**](http://github.com/tangrams/gui-demo) - Control styles in real-time with a gui

[**shaders-demo**](http://github.com/tangrams/shaders-demo) - More complex glsl shaders

[**highways-demo**](http://github.com/tangrams/highways-demo) - Zoom-dependent styles and contextual filtering rules

## Vector Tiles

Instead of using traditional image tiles, we render from **vector tiles** that contain the underlying source geometry for each tile's bounding box.

Mapzen provides a free [vector tile service](http://mapzen.com/vector/) that can be used with Tangram for OpenStreetMap base layer data, with worldwide coverage updated daily. There is also an [OSM.US-hosted](http://openstreetmap.us/~migurski/vector-datasource/) alternative.

Tangram currently supports GeoJSON/TopoJSON tiles as well as the [mapnik binary format](https://github.com/mapbox/vector-tile-spec), both of which can be generated by the [Mapzen vector tile service](http://mapzen.com/vector/).

Here's an [example GeoJSON tile](http://vector.mapzen.com/osm/all/14/4826/6161.json).

The library also includes a [Leaflet](http://leafletjs.com) plugin, `Tangram.LeafletLayer`, to provide basic web map pan/zoom functionality.

## Support

For documentation, see the Tangram[ Documentation wiki](https://github.com/tangrams/tangram/wiki).

For questions, comments, suggestions, or to report a bug, please open a [new issue](https://github.com/tangrams/tangram/issues).

## Development

If you'd like to contribute to the project or make changes to the source code for fun, you'll need to install development requirements and build the library:

```shell
npm install
make
```

The library will be minified in `dist/`, and `index.html` provides an example for rendering from different sources and simple Leaflet integration.

{'fraction_non_alphanumeric': 0.11405045550105115, 'fraction_numerical': 0.02470217238962859, 'mean_word_length': 4.7492447129909365, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5052089', 'n_tokens_mistral': 1900, 'n_tokens_neox': 1739, 'n_words': 586}