We should replace the latlong: ^0.6.1 package as it is not maintained and have some limitation for latitude and longitude value. Like we can only provide latitude value between -90 to 90 and longitude value between -180 to 180. So this makes the limitation for flutter_map compare to leaflet as leaflet does not have this kind of restrictions.
I personally face this issue(#725) in my one use case so I replace this package with maps_toolkit: ^1.1.0+2 and make some modification in that as well to use the math_util.dart for flutter_map like toRadians(), toDegrees(), etc...
We should replace the
latlong: ^0.6.1package as it is not maintained and have some limitation for latitude and longitude value. Like we can only provide latitude value between -90 to 90 and longitude value between -180 to 180. So this makes the limitation for flutter_map compare to leaflet as leaflet does not have this kind of restrictions.I personally face this issue(#725) in my one use case so I replace this package with
maps_toolkit: ^1.1.0+2and make some modification in that as well to use themath_util.dartfor flutter_map liketoRadians(),toDegrees(), etc...