Fix: fix crashes in image related code

This commit is contained in:
Pieter Vander Vennet 2025-06-17 12:33:37 +02:00
parent b76da0f320
commit 7119d98af4
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@
class="pointer-events-none absolute bottom-0 left-0 flex w-full flex-wrap items-end justify-between" class="pointer-events-none absolute bottom-0 left-0 flex w-full flex-wrap items-end justify-between"
> >
<div class="pointer-events-auto m-1 w-fit transition-colors duration-200"> <div class="pointer-events-auto m-1 w-fit transition-colors duration-200">
<ImageAttribution image={$image} attributionFormat="large" /> <ImageAttribution {image} attributionFormat="large" />
</div> </div>
<slot /> <slot />

View file

@ -157,7 +157,7 @@
type: "Feature", type: "Feature",
geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) }, geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) },
properties: <HotspotProperties>{ properties: <HotspotProperties>{
name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt, name: layer.title?.GetRenderValue(feature.properties)?.Subs(feature.properties)?.txt ?? "Feature",
focus: true, focus: true,
}, },
}, },