I'm new to this forum, hope to get support about my question on Leaflet. I'm using it as part of a web that I'm using and I would like to reduce the number of "decimals" that I getting automatically from the source.
I've tried already the .toFixed()
function but it seems not recognized at all. Since this number is too extended I notice the leaflet will not build the map as I want. For that reason, I would like to reduce this number to the maximum capacity that the leaflet will permit me.
My actual code give values like:
40,4560796748558, -3,5703805143365
While the function lang()
returns the error below:
Uncaught Error: Invalid LatLng object: (40,4560796748558, -3,5703805143365)
Thanks in advance.