dart-latlong icon indicating copy to clipboard operation
dart-latlong copied to clipboard

Can't instantiate any LatLng instance

Open DelmarZhao opened this issue 5 years ago • 2 comments

Every time I try to instantiate an instance of LatLng using the constructor, I get "Invalid argument(s): Longitude must be between -90 and 90 degrees but was -180.00001532690865"

Regardless of the arguments I pass in. Even LatLng(0,0) will return this error.

DelmarZhao avatar Jul 03 '19 19:07 DelmarZhao

here is my flutter doctor:

[✓] Flutter (Channel beta, v1.6.3, on Linux, locale en_CA.UTF-8) • Flutter version 1.6.3 at /home/dzhao/Documents/Development/flutter • Framework revision bc7bc94083 (6 weeks ago), 2019-05-23 10:29:07 -0700 • Engine revision 8dc3a4cde2 • Dart version 2.3.2 (build 2.3.2-dev.0.0 e3edfd36b2)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /home/dzhao/Android/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /home/dzhao/Documents/Development/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222) • All Android licenses accepted.

[✓] Android Studio (version 3.4) • Android Studio at /home/dzhao/Documents/Development/android-studio • Flutter plugin version 35.3.1 • Dart plugin version 183.6270 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)

• No issues found!

DelmarZhao avatar Jul 03 '19 19:07 DelmarZhao

Sorry, but I can't support the Dart-Version anymore. At the moment I'm porting this lib to TS. My resources are limited and I have to focus on one language.

MikeMitterer avatar Jul 04 '19 06:07 MikeMitterer