greensopinion / dart-vector-tile-renderer

A vector tile renderer for use in creating map tile images or writing to a canvas. Written in Dart to enable use of vector tiles with Flutter.
BSD 3-Clause "New" or "Revised" License
42 stars 24 forks source link

prevent exception on maxZoom too high #54

Closed greensopinion closed 2 years ago

greensopinion commented 2 years ago

themes that specify maxzoom > 25 or maps zoomed to level > 25 could result in an exception. Fix this by bounding cache to array size.

I've seen this happen in the field: in rare cases with flutter_map a zoom level of 100 is used. I haven't determined the root cause, but this will address the symptom.