languageStrategy property

BasemapStyleLanguageStrategy languageStrategy

The option for setting the language for basemap labels.

This property allows you to specify an option for the language to use for basemap labels. You can use global or local place names or attempt to use the system locale. If you want to use a specific language, set the BasemapStyleParameters.specificLanguage property. Note that the BasemapStyleParameters.specificLanguage property takes precedence over the BasemapStyleParameters.languageStrategy. If the BasemapStyleParameters.specificLanguage is a non-empty string, the BasemapStyleParameters.languageStrategy will be ignored.

The default value is BasemapStyleLanguageStrategy.default_

Implementation

BasemapStyleLanguageStrategy get languageStrategy {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_BasemapStyleParameters_getLanguageStrategy(
        _handle, errorHandler);
  });
  return BasemapStyleLanguageStrategy._fromCoreValue(coreValue);
}
void languageStrategy=(BasemapStyleLanguageStrategy value)

Implementation

set languageStrategy(BasemapStyleLanguageStrategy value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_BasemapStyleParameters_setLanguageStrategy(
        _handle, value.coreValue, errorHandler);
  });
}