fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
https://pub.dev/packages/flutter_map
BSD 3-Clause "New" or "Revised" License
2.76k stars 863 forks source link

[BUG] Polar example with EPSG:3413 probably outdated #1984

Open monsieurtanuki opened 1 week ago

monsieurtanuki commented 1 week ago

What is the bug?

The EPSG:3413 example doesn't work and returns tons of

E/FlutterJNI( 4445): android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FlutterJNI( 4445):    at android.graphics.ImageDecoder.nCreate(Native Method)
E/FlutterJNI( 4445):    at android.graphics.ImageDecoder.-$$Nest$smnCreate(Unknown Source:0)
E/FlutterJNI( 4445):    at android.graphics.ImageDecoder$ByteBufferSource.createImageDecoder(ImageDecoder.java:254)
E/FlutterJNI( 4445):    at android.graphics.ImageDecoder.decodeBitmapImpl(ImageDecoder.java:1856)
E/FlutterJNI( 4445):    at android.graphics.ImageDecoder.decodeBitmap(ImageDecoder.java:1848)
E/FlutterJNI( 4445):    at io.flutter.embedding.engine.FlutterJNI.decodeImage(FlutterJNI.java:561)
I/flutter ( 4445): Exception: Invalid image data
E/FlutterJNI( 4445): Failed to decode image

Screenshot_1731849205

How can we reproduce it?

Start the example app, and select the "EPSG3413 CRS" example.

Do you have a potential solution?

The code refers to https://www.gebco.net/data_and_products/gebco_web_services/web_map_service/#polar, where they mention rather EPSG:3996 and 2024 data. The idea would be to upgrade the code to those new parameters.

Platforms

Android emulator on Windows

Severity

Minimum: Allows normal functioning