I have a set of shapes drawn in Leaflet (using Leaflet.draw). I need to rasterize these into a tileset and export it because I need to use the images elsewhere.

My initial idea was to go through each polygon and create matching tiles for each tile it intersects across all zoom levels. However, if there is a library or function that exists that can do this, I'd rather use that.


there are some plugin for vector tile


or you can show your vector features with openlayers library than you can get canvas element so you can cut canvas element.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.