[maps] Extra decimals added in fractional part of labels in maps when using vector tiles #183527
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Maps
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Problem
Vector tiles read the value from the fields option that uses _source but it then cast the value to the fields type. Fields mapped as float are displayed as the float representation. For example,
2.3
is displayed as2.299999952316284
.It can be easily reproduced by doing:
Potential solutions
There is no way to format that value in the vector tiles API.
One possible solution is to allow users to specify a maplibre expression to format the label, for example, users could configure number-format
The text was updated successfully, but these errors were encountered: