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

IconAnchor

Open FronnieSW opened this issue 1 year ago • 3 comments

Hello, currently the icon anchor for bottom_right and bottom_left does not work. I suppose the problem is gonna be in every case, when u have to pass an enum item, that contains ' _ ' , even in the other classes and cases. The problem is that currently you are doing : iconAnchor?.toString().split('.').last.toLowerCase(); - In file symbol_layer.dart, which returns ("bottom_left") but for bottom left, you are suppose to pass value ("bottom-left") so when I add .replaceAll("_", "-") to the function, which returns "bottom-left", it works fine. Have a nice day.

FronnieSW avatar Mar 20 '24 12:03 FronnieSW

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

evil159 avatar Apr 30 '24 12:04 evil159