mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
245 stars 93 forks source link

IconAnchor enum is not encoded/decoded correctly #500

Open bf-vs opened 1 month ago

bf-vs commented 1 month ago

IconAnchor.BOTTOM_RIGHT is endoced as 'bottomright' where mapbox expects 'bottom-right' (- vs ) therefore it does not work.

This line should be fixed https://github.com/mapbox/mapbox-maps-flutter/blob/1daef17c48fd927db442a5d19f7aca06a1ffdc63/lib/src/style/layer/symbol_layer.dart#L278

Enhanced enums should be used for this purpose.

evil159 commented 2 weeks ago

Hi @bf-vs, thank you for reporting this issue, it is addressed in https://github.com/mapbox/mapbox-maps-flutter/pull/523.