Skip to content
Snippets Groups Projects
Commit c21b4874 authored by Stamile, Amy M's avatar Stamile, Amy M Committed by Laura, Jason R
Browse files

Fixes Bbox error

parent 37f8c204
No related branches found
No related tags found
No related merge requests found
# GeoSTAC - Forked CartoCosmos Leaflet webmap with added ability to discover USGS Analysis Ready Data (ARD) holdings using the SpatioTemporal Asset Catalogs (STAC) API. # GeoSTAC - Forked CartoCosmos Leaflet webmap with added ability to discover USGS Analysis Ready Data (ARD) holdings using the SpatioTemporal Asset Catalogs (STAC) API.
Repository for the GeoSTAC Capstone Team. ## Local Requirements
### Building and running on localhost Anaconda or Miniconda installation
#
Install conda:
* [Windows](https://docs.conda.io/projects/conda/en/latest/user-guide/install/windows.html)
* [Mac](https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html)
* [Linux](https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html)
Clone repository ## Local Development
```sh
git clone https://github.com/GeoSTAC/CartoCosmos-with-STAC.git
```
Once the repository is cloned ```cd``` in to the ```app folder```
ie :
```sh
cd cloned_location/GeoSTAC/CartoCosmos/app
```
To setup the conda environment run the following command.
```sh
conda env create -f environment.yml
```
Once the conda environment is created run the following command to activate it.
```sh
conda activate GeoSTAC
```
Then to install the project run
```sh - pull and cd into project root
npm install - build environment in conda: `conda env create -f environment.yml`. This will create a `GeoSTAC` environment with nodejs
``` - activate your conda environment: `conda activate GeoSTAC`
- run `npm install` from the project root
- run `npm start` to launch your local development server. Changes should automatically refresh in the browser
##### To create a production build: ##### To create a production build:
...@@ -44,11 +19,3 @@ npm run build ...@@ -44,11 +19,3 @@ npm run build
``` ```
This will create a folder "dist" with all of the production files needed. This will create a folder "dist" with all of the production files needed.
##### To run the development server:
```sh
npm start
```
This will open a development server on port 8000 which will automatically compile and update in the browser window on save.
...@@ -3,5 +3,4 @@ channels: ...@@ -3,5 +3,4 @@ channels:
- conda-forge - conda-forge
- defaults - defaults
dependencies: dependencies:
- nodejs=16.13.1=hb931c9a_0 - nodejs
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
name="viewport" name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width" content="minimum-scale=1, initial-scale=1, width=device-width"
/> />
<title>CartoCosmos</title> <title>GeoSTAC</title>
</head> </head>
<body> <body>
<div id="map"></div> <div id="map"></div>
......
...@@ -161,7 +161,7 @@ export default L.Control.AstroDrawFilterControl = L.Control.Draw.extend({ ...@@ -161,7 +161,7 @@ export default L.Control.AstroDrawFilterControl = L.Control.Draw.extend({
bboxCoordArr[1][0], bboxCoordArr[1][0],
bboxCoordArr[1][1] bboxCoordArr[1][1]
]; ];
let queryString = "bbox=" + "[" + bboxArr + "]"; let queryString = "bbox=" + bboxArr;
return queryString; return queryString;
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment