[BUG] {d}
urlTemplate
placeholder improperly converted to string on non-web platforms
#1936
Labels
bug
This issue reports broken functionality or another error
P: 2 (soon™?)
S: core
Scoped to the core flutter_map functionality
What is the bug?
When using the
{d}
in theurlTemplate
(introduced in #1665) it defaults to a float value which gets converted to string (e.g.256.0
). This is obviously not supported by many tile providers.How can we reproduce it?
Use the following option:
urlTemplate: 'https://api.mapbox.com/styles/v1/mapbox/streets-v12/tiles/{d}/{z}/{x}/{y}{r}?access_token=$mapboxPublicToken'
. The tile server will respond with 422 status codes.Problem doesn't occur on web due to differences in types and therefore
toString()
.Do you have a potential solution?
I don't see why the resolution needs to be a
double
, maybe it can be changed to an integer type.Platforms
Android 14
Severity
Erroneous: Prevents normal functioning and causes errors in the console
The text was updated successfully, but these errors were encountered: