mapbox-gl-draw icon indicating copy to clipboard operation
mapbox-gl-draw copied to clipboard

Option to increase geojson maxzoom?

Open omasback opened this issue 3 years ago • 0 comments

I'm building a tool to draw features with millimeter precision. Unfortunately the default maxzoom of geoJson sources is 18, which equates to a rendering precision of about 10mm.

I believe the offending line is here: https://github.com/mapbox/mapbox-gl-draw/blob/c12fb64b90d00e877e94b12b60bc3b80e42924dd/src/setup.js#L85-L100

Im pretty sure this could be fixed by setting maxzoom of geojson data source to >=24, or even making it an init option.

omasback avatar Jan 13 '23 22:01 omasback