Skip to content

Commit 26c199a

Browse files
committed
Fix basemap switch
1 parent 1578bfe commit 26c199a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/composables/useMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ watch(
7676
return
7777
}
7878

79-
if (getEffectiveCloudlessYear(newYear) === getEffectiveCloudlessYear(oldYear)) {
79+
if (getEffectiveCloudlessYear(newYear) !== getEffectiveCloudlessYear(oldYear)) {
8080
// Remove the old cloudless layer if it exists
8181
if (cloudlessLayer.value) {
8282
map.value.removeLayer(cloudlessLayer.value)

0 commit comments

Comments
 (0)