diff --git a/README.md b/README.md index d679531f7..5484fc028 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ repositories { } dependencies { - implementation 'earth.worldwind:worldwind:1.5.26' + implementation 'earth.worldwind:worldwind:1.5.27' } ``` diff --git a/build.gradle.kts b/build.gradle.kts index f21af5608..e78dc2a2b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ buildscript { allprojects { group = "earth.worldwind" - version = "1.5.26" + version = "1.5.27" extra.apply { set("minSdk", 21) diff --git a/worldwind/src/commonMain/kotlin/earth/worldwind/shape/milstd2525/MilStd2525LevelOfDetailSelector.kt b/worldwind/src/commonMain/kotlin/earth/worldwind/shape/milstd2525/MilStd2525LevelOfDetailSelector.kt index 695dc8695..5fb166404 100644 --- a/worldwind/src/commonMain/kotlin/earth/worldwind/shape/milstd2525/MilStd2525LevelOfDetailSelector.kt +++ b/worldwind/src/commonMain/kotlin/earth/worldwind/shape/milstd2525/MilStd2525LevelOfDetailSelector.kt @@ -52,7 +52,7 @@ open class MilStd2525LevelOfDetailSelector : Placemark.LevelOfDetailSelector { placemark.attributes = getPlacemarkAttributes(simpleCode, symbolAttributes = getAttributes(placemark)) lastLevelOfDetail = MEDIUM_LEVEL_OF_DETAIL } - } else if (!placemark.isHighlighted) { + } else if (!placemark.isHighlighted && !isForceAllModifiers) { // High-fidelity: use the regular SIDC code without text modifiers, except unique designation (T) if (lastLevelOfDetail != HIGH_LEVEL_OF_DETAIL || isInvalidateRequested) { val basicModifiers = placemark.symbolModifiers?.filter { (k,_) -> k == "T" } @@ -85,6 +85,10 @@ open class MilStd2525LevelOfDetailSelector : Placemark.LevelOfDetailSelector { ?: getUnfilledAttributes(placemark.symbolCode) companion object { + /** + * Always use the highest fidelity instead of high (forces all text modifiers) + */ + var isForceAllModifiers = false protected const val NORMAL_SCALE = 1.0 protected const val HIGHLIGHTED_SCALE = 1.3 protected const val LOW_LEVEL_OF_DETAIL = 0