Skip to content

Commit abc57f0

Browse files
committed
Fix the default basemap config
1 parent d24c23b commit abc57f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

basemaps.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Collection } from './src/models/stac';
2+
import { STAC } from 'stac-js'
23

34
// For documentation see https://github.com/radiantearth/stac-browser/blob/main/docs/basemaps.md
45

@@ -64,7 +65,7 @@ export default function configureBasemap(stac, i18n) {
6465
if (stac instanceof Collection) {
6566
targets = stac.getSummary('ssys:targets');
6667
}
67-
if (!targets) {
68+
if (stac instanceof STAC && !targets) {
6869
targets = stac.getMetadata('ssys:targets');
6970
}
7071
if (!targets) {

0 commit comments

Comments
 (0)