diff --git a/app/src/main/java/com/aws/amazonlocation/utils/MapHelper.kt b/app/src/main/java/com/aws/amazonlocation/utils/MapHelper.kt index 3ba0426c..c9615deb 100644 --- a/app/src/main/java/com/aws/amazonlocation/utils/MapHelper.kt +++ b/app/src/main/java/com/aws/amazonlocation/utils/MapHelper.kt @@ -1523,7 +1523,12 @@ class MapHelper( } private fun setStyleLanguage(style: Style) { - val languageCode = getLanguageCode() + var languageCode = getLanguageCode() + if (languageCode != null) { + if (languageCode.contains("-")) { + languageCode = languageCode.split("-")[0] + } + } val expression: Expression? = Expression.coalesce( Expression.get("name:$languageCode"), Expression.get("name:en"),