We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 605a197 commit 0578edbCopy full SHA for 0578edb
src/essence/Basics/Layers_/Layers_.js
@@ -3616,11 +3616,13 @@ function parseConfig(configData, urlOnLayers) {
3616
expandLayers(layers, 0, null)
3617
3618
function expandLayers(d, level, prevName) {
3619
+ const stacRegex = /^stac(-((item)|(catalog)|(collection)))?:/i
3620
+
3621
//Iterate over each layer
3622
for (let i = 0; i < d.length; i++) {
3623
// check if this is a STAC catalog or collection
3624
// if so, prefetch the data and replace this entry
- if (d[i].url.startsWith('stac:')) {
3625
+ if (stacRegex.test(d[i].url)) {
3626
d[i] = getSTACLayers(d[i])
3627
}
3628
0 commit comments