Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/essence/Basics/Layers_/Layers_.js
Original file line number Diff line number Diff line change
Expand Up @@ -3631,6 +3631,15 @@ async function parseConfig(configData, urlOnLayers) {

//Iterate over each layer
for (let i = 0; i < d.length; i++) {
// If sourceType, prefix onto url
if (
d[i].sourceType != null &&
d[i].sourceType !== 'url' &&
d[i].url.indexOf(`${d[i].sourceType}:`) !== 0
) {
d[i].url = `${d[i].sourceType}:${d[i].url}`
}

// check if this is a vector STAC catalog or collection
// if so, prefetch the data and replace this entry
if (d[i].type === 'vector' && stacRegex.test(d[i].url)) {
Expand All @@ -3648,15 +3657,6 @@ async function parseConfig(configData, urlOnLayers) {
d[i] = { display_name: d[i].name, ...d[i] }
d[i].name = d[i].uuid || d[i].name

// If sourceType, prefix onto url
if (
d[i].sourceType != null &&
d[i].sourceType !== 'url' &&
d[i].url.indexOf(`${d[i].sourceType}:`) !== 0
) {
d[i].url = `${d[i].sourceType}:${d[i].url}`
}

// Create parsed layers named
L_.layers.data[d[i].name] = d[i]

Expand Down Expand Up @@ -3947,7 +3947,7 @@ async function parseConfig(configData, urlOnLayers) {
error: (resp) => {
console.warn(resp)
resolve(d)
}
},
})
} else {
resolve(d)
Expand Down