Open AbbyKloss opened 9 months ago
Similar bug found: Providing a single misspelled option for basemaps ie ' basemaps = ["OpenStreetMa"] ' causes errors and layers to not show up on the empty map.
Javascript console output:
jquery.js:4050 jQuery.Deferred exception: Cannot read properties of undefined (reading 'addEventListener') TypeError: Cannot read properties of undefined (reading 'addEventListener')
at X (https://cdn.jsdelivr.net/npm/openlayers-dist@6.12.0/ol.js:2:122935)
at n.Sn (https://cdn.jsdelivr.net/npm/openlayers-dist@6.12.0/ol.js:2:195772)
at n.kn (https://cdn.jsdelivr.net/npm/openlayers-dist@6.12.0/ol.js:2:196116)
at n.dispatchEvent (https://cdn.jsdelivr.net/npm/openlayers-dist@6.12.0/ol.js:2:122010)
at n.insertAt (https://cdn.jsdelivr.net/npm/openlayers-dist@6.12.0/ol.js:2:127487)
at n.push (https://cdn.jsdelivr.net/npm/openlayers-dist@6.12.0/ol.js:2:127669)
at n.addLayer (https://cdn.jsdelivr.net/npm/openlayers-dist@6.12.0/ol.js:2:227659)
at http://localhost:8000/static/tethys_gizmos/js/tethys_map_view.js:295:15
at Array.forEach (
Describe the bug A typo in the Map Layout class's basemaps attribute leads to that layer and any proceeding layer to not load.
To Reproduce Steps to reproduce the behavior:
basemaps = ["OpenStreetMap", "ERSI"]
Note: the correct line to add for a working page would bebasemaps = ["OpenStreetMap", "ESRI"]
Expected behavior What I would expect is for the misspelled error to be skipped over, rather than taking down every proceeding layer with it.
Errors/Traceback
JavaScript Console Output:
Tethys Log Output was empty.
Screenshots If applicable, add screenshots to help explain your problem.
Working:
Broken:
Tethys Environment Information Using a slight variation of the Docker Compose file