mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

IconAnchor enum is not encoded/decoded correctly

Open bf-vs opened this issue 1 year ago • 1 comments

IconAnchor.BOTTOM_RIGHT is endoced as 'bottom_right' 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.

bf-vs avatar Apr 19 '24 14:04 bf-vs

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

evil159 avatar Apr 30 '24 10:04 evil159