Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextAnchor issue #161

Open
penhorwood opened this issue May 11, 2023 · 4 comments
Open

TextAnchor issue #161

penhorwood opened this issue May 11, 2023 · 4 comments

Comments

@penhorwood
Copy link

I am getting the following error when running 0.4.3 in debug mode when trying to add a point annotation to the map. My code uses

PointAnnotationOptions(
...
    textAnchor: TextAnchor.BOTTOM_LEFT
)
Exception has occurred.
PlatformException (PlatformException(IllegalArgumentException, java.lang.IllegalArgumentException: No enum constant com.mapbox.maps.extension.style.layers.properties.generated.TextAnchor.BOTTOM-LEFT, Cause: null, Stacktrace: java.lang.IllegalArgumentException: No enum constant com.mapbox.maps.extension.style.layers.properties.generated.TextAnchor.BOTTOM-LEFT
	at java.lang.Enum.valueOf(Enum.java:257)
	at com.mapbox.maps.extension.style.layers.properties.generated.TextAnchor.valueOf(Unknown Source:2)
	at com.mapbox.maps.plugin.annotation.generated.PointAnnotation.getTextAnchor(PointAnnotation.kt:288)
	at com.mapbox.maps.mapbox_maps.annotation.PointAnnotationControllerKt.toFLTPointAnnotation(PointAnnotationController.kt:833)
	at com.mapbox.maps.mapbox_maps.annotation.PointAnnotationController.create(PointAnnotationController.kt:33)
	at com.mapbox.maps.pigeons.FLTPointAnnotationMessager$_PointAnnotationMessager$-CC.lambda$setup$0(FLTPointAnnotationMessager.java:1283)
	at com.mapbox.maps.pigeons.FLTPointAnnotationMessager$_PointAnnotationMessager$$ExternalSyntheticLambda0.onMessage(Unknown Source:2)
@penhorwood
Copy link
Author

Exception has occurred.
PlatformException (PlatformException(IllegalArgumentException, java.lang.IllegalArgumentException: No enum constant com.mapbox.maps.extension.style.layers.properties.generated.TextAnchor.BOTTOM-LEFT, Cause: null, Stacktrace: java.lang.IllegalArgumentException: No enum constant com.mapbox.maps.extension.style.layers.properties.generated.TextAnchor.BOTTOM-LEFT
at java.lang.Enum.valueOf(Enum.java:257)
at com.mapbox.maps.extension.style.layers.properties.generated.TextAnchor.valueOf(Unknown Source:2)
at com.mapbox.maps.plugin.annotation.generated.PointAnnotation.getTextAnchor(PointAnnotation.kt:288)
at com.mapbox.maps.mapbox_maps.annotation.PointAnnotationControllerKt.toFLTPointAnnotation(PointAnnotationController.kt:833)
at com.mapbox.maps.mapbox_maps.annotation.PointAnnotationController.create(PointAnnotationController.kt:33)
at com.mapbox.maps.pigeons.FLTPointAnnotationMessager$_PointAnnotationMessager$-CC.lambda$setup$0(FLTPointAnnotationMessager.java:1283)
at com.mapbox.maps.pigeons.FLTPointAnnotationMessager$_PointAnnotationMessager$$ExternalSyntheticLambda0.onMessage(Unknown Source:2)
at io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage(BasicMessageChannel.java:217)
at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
, null))

@penhorwood
Copy link
Author

PS D:\android\apps\caminha> flutter doctor -v
[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3208], locale en-US)
• Flutter version 3.10.6 on channel stable at D:\development\flutter-sdk
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f468f3366c (9 days ago), 2023-07-12 15:19:05 -0700
• Engine revision cdbeda788a
• Dart version 3.0.6
• DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at D:\development\Android\sdk
• Platform android-33, build-tools 33.0.2
• ANDROID_HOME = D:\development\Android
• ANDROID_SDK_ROOT = D:\development\Android\Sdk
• Java binary at: D:\development\java.home\bin\java
• Java version OpenJDK Runtime Environment OpenLogic-OpenJDK (build 11.0.18+10-adhoc..jdk11u)
• All Android licenses accepted.

[√] Android Studio (version 2022.2)
• Android Studio at D:\development\tools\Android Studio
• 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 17.0.6+0-b2043.56-9586694)

[√] Connected device (1 available)
• SM G973U1 (mobile) • RF8M216A2RT • android-arm64 • Android 12 (API 31)

[√] Network resources
• All expected network resources are available.

• No issues found!
PS D:\android\apps\caminha>

@smc66
Copy link

smc66 commented Feb 29, 2024

Any updates on this???
I am having this exact issue, on Android devices only, with the latest version (0.5.1)

@evil159
Copy link
Contributor

evil159 commented Apr 30, 2024

Hi all, sorry, it took so long and thank you for reporting this issue, it is addressed in #523.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants