fix poly rings in simplified tiles
Vladimir Agafonkin authored
90145c28

GeoJSON Vector Tiles

A highly efficient JavaScript library for slicing GeoJSON data into vector tiles (or rather their JSON equivalent) on the fly, primarily for rendering purposes.

Created to power GeoJSON rendering in Mapbox GL JS, but can be useful for other data visualization purposes.

Usage

var tileIndex = geojsonvt(geoJSON, {
	baseZoom: 14, // max zoom to preserve detail on
	maxZoom: 14, // zoom to slice down on first pass
	maxPoints: 100, // during first pass, stop slicing each tile below this number of points
	debug: 0 // debug level: 1 = some timing info; 2 = individual tiles timing;
});