2

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 Sep 2 at 17:04
0

there are some plugin for vector tile

https://leafletjs.com/plugins.html#vector-tiles

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.