maplibre / maplibre/maplibre-plugins-android

annotation-v9:2.0.1:SymbolOptions().withTextField("中文") only works with chinese?!

Open
#48 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
50
Forks
33
PR merge metrics
No merged PRs in 30d

Description

version:

* org.maplibre.gl:android-sdk:10.2.0
* org.maplibre.gl:android-plugin-annotation-v9:2.0.1

Only chinese works, any other characters will not work. Why? Is my usage wrong?

Works:

```
Symbol symbol = symbolManager.create(
new SymbolOptions()
.withLatLng(
new LatLng(28.693, 101.30934)
)
.withTextField("中文")
);
symbolManager.update(symbol);
```

Not works:

```
Symbol symbol = symbolManager.create(
new SymbolOptions()
.withLatLng(
new LatLng(28.693, 101.30934)
)
.withTextField("中文hi") // hi, 中文123, 中-文 not work
);
symbolManager.update(symbol);
```

If any withTextField contains non-chinese , all Symbol can not show.

Contributor guide

Open the contributing guide

Research direction

Start at the annotation-v9 SymbolOptions().withTextField entry point and reproduce the issue with the supplied MapLibre Android SDK versions and mixed text such as "中文hi". Trace why symbols disappear when non-Chinese characters are included; done means symbols render with Chinese, Latin, numbers, and punctuation in the text field.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.