Loading src/js/AstroMap.js +6 −2 Original line number Diff line number Diff line Loading @@ -200,8 +200,12 @@ export default L.Map.AstroMap = L.Map.extend({ // show thumbnail on map when clicked - use stac-layer for this? handleClick: function(e) { const url_to_stac_item = e.layer.feature.links[0].href; console.log(e) if(!e) { let url_to_stac_item = e.layer.feature.links[0].href; console.log (url_to_stac_item); } // fetch(url_to_stac_item).then(res => res.json()).then(async feature => { // const thumbnail = await L.stacLayer(feature, {displayPreview: true}); // thumbnail.on("click", e => { Loading Loading
src/js/AstroMap.js +6 −2 Original line number Diff line number Diff line Loading @@ -200,8 +200,12 @@ export default L.Map.AstroMap = L.Map.extend({ // show thumbnail on map when clicked - use stac-layer for this? handleClick: function(e) { const url_to_stac_item = e.layer.feature.links[0].href; console.log(e) if(!e) { let url_to_stac_item = e.layer.feature.links[0].href; console.log (url_to_stac_item); } // fetch(url_to_stac_item).then(res => res.json()).then(async feature => { // const thumbnail = await L.stacLayer(feature, {displayPreview: true}); // thumbnail.on("click", e => { Loading