Skip to content

Commit 6d080c0

Browse files
committed
filter STAC prefetch to vector types
1 parent 0578edb commit 6d080c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/essence/Basics/Layers_/Layers_.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3620,9 +3620,9 @@ function parseConfig(configData, urlOnLayers) {
36203620

36213621
//Iterate over each layer
36223622
for (let i = 0; i < d.length; i++) {
3623-
// check if this is a STAC catalog or collection
3623+
// check if this is a vector STAC catalog or collection
36243624
// if so, prefetch the data and replace this entry
3625-
if (stacRegex.test(d[i].url)) {
3625+
if (d[i].type === "vector" && stacRegex.test(d[i].url)) {
36263626
d[i] = getSTACLayers(d[i])
36273627
}
36283628

0 commit comments

Comments
 (0)