Skip to content

Commit

Permalink
fix: fixed bug of when layer is deleted. (#4699)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinIgarashi authored Jan 8, 2025
1 parent 6004be7 commit aad7a9a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-peas-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"geohub": patch
---

fix: fixed bug of when layer is deleted.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@

{#if $editingLayerStore.dataset?.properties.is_raster === true}
<RasterLayer bind:layer={$editingLayerStore} />
{:else}
{:else if $editingLayerStore.dataset?.properties.is_raster === false}
<VectorLayer bind:layer={$editingLayerStore} />
{/if}
</FloatingPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@

<div class="editor-contents" style="max-height: {mapHeight}px; overflow-y: auto;">
<div hidden={activeTab !== TabNames.STYLE}>
<VectorLegend
bind:layerId={layer.id}
bind:metadata
bind:tags={layer.dataset.properties.tags as Tag[]}
/>
<VectorLegend layerId={layer?.id} {metadata} tags={layer?.dataset?.properties.tags as Tag[]} />
</div>
<div hidden={activeTab !== TabNames.FILTER}>
<VectorFilter {layer} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
<IconSize
{layerId}
{metadata}
bind:defaultIconSize={page.data.config.IconSize}
defaultIconSize={page.data.config.IconSize}
bind:defaultColor={$defaultColorStore}
bind:numberOfClasses={$numberOfClassesValueStore}
numberOfClassesMinimum={NumberOfClassesMinimum}
Expand Down

0 comments on commit aad7a9a

Please sign in to comment.