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.

  • What if you export/ Save as a vector layer, then use a WMS\WMTS service like GeoServer to create tiles on request?
    – nmtoken
    Commented Sep 2, 2019 at 17:04

1 Answer 1


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 and acknowledge you have read our privacy policy.

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