Skip to content

Commit

Permalink
Check for invalid layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowm committed Jan 14, 2025
1 parent f0005ea commit f755b54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/cesium.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const useCesiumStore = defineStore("cesium", {
url: "layers",
serialize: (v) => v.join(","),
deserialize: (v) => v.split(",").filter((e) => e),
valid: (v) => v.every((l) => ["Offline", "OfflineHighres", "ArcGis", "OSM", "Topo", "BlackMarble", "Tiles", "GOES-IR", "Nextrad"].includes(l.split("_")[0])),
default: ["OfflineHighres"],
}, {
name: "terrainProvider",
Expand Down

0 comments on commit f755b54

Please sign in to comment.