/tile-scanline

Primary LanguageJavaScriptMIT LicenseMIT

tile-scanline

Build Status

tile-scanline is an algorithm for rasterizing vector geometry as map tiles. It uses a combination of a modified scanline polygon fill and a modified Bresenham's line drawing algorithm. It is highly optimized, and is able to index 100s of thousands of polygons and lines at high resolution on a single process.

##Install

npm install tile-scanline

##Usage

// accepts a polygon or linestring geojson geometry
scanline(geometry, {max_zoom: 20})