forked from MapComplete/MapComplete
Fix: fix crashes in image related code
This commit is contained in:
parent
b76da0f320
commit
7119d98af4
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@
|
|||
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">
|
||||
<ImageAttribution image={$image} attributionFormat="large" />
|
||||
<ImageAttribution {image} attributionFormat="large" />
|
||||
</div>
|
||||
|
||||
<slot />
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
type: "Feature",
|
||||
geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) },
|
||||
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,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue