Loading app/src/js/ApiJsonCollection.js +2 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,8 @@ var _numberMatched = 0; function callAPI() { return fetch( "https://stac.astrogeology.usgs.gov/api/collections" // "https://stac.astrogeology.usgs.gov/api/collections" "https://6vpdmaqce6.execute-api.us-west-2.amazonaws.com/dev/collections" ).then(response => response.json()); } Loading app/src/js/AstroDrawControl.js +5 −2 Original line number Diff line number Diff line Loading @@ -60,7 +60,6 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ } } } this.queryTextBox = L.DomUtil.get("query-textarea"); this.queryAuto = L.DomUtil.get("query-auto-checkbox"); this.queryAutoWkt = L.DomUtil.get("query-auto-wkt-checkbox"); Loading Loading @@ -168,6 +167,7 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ * @param {String} coords - The drawn shape’s coordinates. */ shapesToFootprint: function(coords) { console.log("in shpaes to footprints, val is: ",coords); let strArr = coords .slice(coords.indexOf("((") + 2, coords.indexOf("))")) .split(","); Loading Loading @@ -230,7 +230,9 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ } if (L.DomUtil.get("areaCheckBox").checked == true) { let bboxValue = this.shapesToFootprint(this.wktTextBox.value); console.log(this.wkt.components[0]); let bboxValue = this.shapesToFootprint(this.wkt.components[0]); filterOptions.push(bboxValue); } Loading @@ -249,6 +251,7 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ this._map._geoLayers[i].clearLayers(); } this._map.loadFootprintLayer(this._map._target, queryString); document.getElementById("query-textarea").innerText = queryString; }, /** Loading Loading
app/src/js/ApiJsonCollection.js +2 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,8 @@ var _numberMatched = 0; function callAPI() { return fetch( "https://stac.astrogeology.usgs.gov/api/collections" // "https://stac.astrogeology.usgs.gov/api/collections" "https://6vpdmaqce6.execute-api.us-west-2.amazonaws.com/dev/collections" ).then(response => response.json()); } Loading
app/src/js/AstroDrawControl.js +5 −2 Original line number Diff line number Diff line Loading @@ -60,7 +60,6 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ } } } this.queryTextBox = L.DomUtil.get("query-textarea"); this.queryAuto = L.DomUtil.get("query-auto-checkbox"); this.queryAutoWkt = L.DomUtil.get("query-auto-wkt-checkbox"); Loading Loading @@ -168,6 +167,7 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ * @param {String} coords - The drawn shape’s coordinates. */ shapesToFootprint: function(coords) { console.log("in shpaes to footprints, val is: ",coords); let strArr = coords .slice(coords.indexOf("((") + 2, coords.indexOf("))")) .split(","); Loading Loading @@ -230,7 +230,9 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ } if (L.DomUtil.get("areaCheckBox").checked == true) { let bboxValue = this.shapesToFootprint(this.wktTextBox.value); console.log(this.wkt.components[0]); let bboxValue = this.shapesToFootprint(this.wkt.components[0]); filterOptions.push(bboxValue); } Loading @@ -249,6 +251,7 @@ export default L.Control.AstroDrawControl = L.Control.Draw.extend({ this._map._geoLayers[i].clearLayers(); } this._map.loadFootprintLayer(this._map._target, queryString); document.getElementById("query-textarea").innerText = queryString; }, /** Loading