app(found): centralize klotter label enrichment in LaunchedEffect; remove per-row effect; use labelOverrides map

(And some space removed in comments).
This commit is contained in:
2025-09-12 20:51:33 +02:00
parent 9909b937b5
commit 88c041ef2b
15 changed files with 191 additions and 133 deletions

View File

@@ -133,8 +133,8 @@ object DigitaltMuseumShared {
val km = (radiusMeters / 1000.0).coerceAtLeast(0.1) // Solr använder km; vi tvingar min 0.1 km för rimlighet
// Solr local params:
// geofilt: {!geofilt sfield=artifact.coordinate pt=lat,lon d=km}
// bbox: {!bbox sfield=artifact.coordinate pt=lat,lon d=km}
// geofilt: {!geofilt sfield=artifact.coordinate pt=lat,lon d=km}
// bbox: {!bbox sfield=artifact.coordinate pt=lat,lon d=km}
val geoClause = if (useBBox) "{!bbox sfield=$FIELD_COORD pt=$lat,$lon d=$km}"
else "{!geofilt sfield=$FIELD_COORD pt=$lat,$lon d=$km}"