maplibre / flutter-maplibre-gl

Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
https://pub.dev/packages/maplibre_gl
Other
184 stars 106 forks source link

Can't add image source in the example app #44

Open cankaraman opened 2 years ago

cankaraman commented 2 years ago

Hi,

I can't add image sources in the example app's "Place source" screen. Flutter doctor output and a screenshot are included. I tried this with both a physical android device and an android emulator.

screenshot
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.1 20G80 darwin-arm, locale en-GB)
    • Flutter version 2.5.3 at /Users/cankaraman/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/cankaraman/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_SDK_ROOT = /Users/cankaraman/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.59.0)
    • VS Code at /Users/cankaraman/Downloads/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31)
      (emulator)
    • Chrome (web)                • chrome        • web-javascript • Google Chrome
      95.0.4638.69

• No issues found!
m0nac0 commented 2 years ago

Thank you for reporting this, I was able to reproduce it on an Android emulator. Curiously, the related code doesn't seem to have been touched recently. Do you happen to know if this works with flutter-mapbox-gl?

And have you tested this on iOS?

cankaraman commented 2 years ago

Sure, no problem. Thank you for your answer. I was actually trying to switch from flutter-mapbox-gl to maplibre. For the 0.11.0 release version of the flutter-mapbox-gl adding images works with our codebase. After switching to maplibre 0.15.0 only the adding images stopped working. I did not try the flutter-mapbox-gl example app for the same version.

I have just tested it for you on an iOS emulator and it does not work on it either. Here is the screenshot for it

screenshot