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

SymbolOptions does not support Chinese? #336

Open
yaolv7 opened this issue Nov 22, 2023 · 0 comments
Open

SymbolOptions does not support Chinese? #336

yaolv7 opened this issue Nov 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yaolv7
Copy link

yaolv7 commented Nov 22, 2023

Screenshot_20231122_194604

it doesn't works for Chinese

SymbolOptions _getSymbolOptions(String iconImage, int symbolCount) {
    LatLng geometry = LatLng(
      center.latitude + sin(symbolCount * pi / 6.0) / 20.0,
      center.longitude + cos(symbolCount * pi / 6.0) / 20.0,
    );
    return iconImage == 'customFont'
        ? SymbolOptions(
            geometry: geometry,
            iconImage: 'custom-marker',
            //'airport-15',
            fontNames: ['DIN Offc Pro Bold', 'Arial Unicode MS Regular'],
            textField: '我了个擦咧1',
            textSize: 12.5,
            textOffset: const Offset(0, 0.8),
            textAnchor: 'top',
            textColor: '#000000',
            textHaloBlur: 1,
            textHaloColor: '#ffffff',
            textHaloWidth: 0.8,
          )
        : SymbolOptions(
            geometry: geometry,
            textField: '我了个擦咧2',
            textOffset: const Offset(0, 0.8),
            iconImage: iconImage,
          );
  }

Future<void> _setMapLanguage() async {
    final controller = await _mapReadyCompleter.future;
    await controller.setMapLanguage('name_zh');
    await controller.setMapLanguage('zh');
    await controller.setMapLanguage('cn');
    await controller.setMapLanguage('CHINESE');
    await controller.matchMapLanguageWithDeviceDefault();
}
@josxha josxha added the bug Something isn't working label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants