Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Asc Geostac
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
Asc Geostac
Commits
c21b4874
Commit
c21b4874
authored
2 years ago
by
Stamile, Amy M
Committed by
Laura, Jason R
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes Bbox error
parent
37f8c204
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+8
-41
8 additions, 41 deletions
README.md
environment.yml
+1
-2
1 addition, 2 deletions
environment.yml
src/index.html
+1
-1
1 addition, 1 deletion
src/index.html
src/js/AstroDrawFilterControl.js
+1
-1
1 addition, 1 deletion
src/js/AstroDrawFilterControl.js
with
11 additions
and
45 deletions
README.md
+
8
−
41
View file @
c21b4874
# 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
#
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
)
Anaconda or Miniconda installation
Clone repository
```
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
## Local Development
```
sh
npm
install
```
-
pull and cd into project root
-
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:
...
...
@@ -44,11 +19,3 @@ npm run build
```
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.
This diff is collapsed.
Click to expand it.
environment.yml
+
1
−
2
View file @
c21b4874
...
...
@@ -3,5 +3,4 @@ channels:
-
conda-forge
-
defaults
dependencies
:
-
nodejs=16.13.1=hb931c9a_0
-
nodejs
This diff is collapsed.
Click to expand it.
src/index.html
+
1
−
1
View file @
c21b4874
...
...
@@ -6,7 +6,7 @@
name=
"viewport"
content=
"minimum-scale=1, initial-scale=1, width=device-width"
/>
<title>
CartoCosmos
</title>
<title>
GeoSTAC
</title>
</head>
<body>
<div
id=
"map"
></div>
...
...
This diff is collapsed.
Click to expand it.
src/js/AstroDrawFilterControl.js
+
1
−
1
View file @
c21b4874
...
...
@@ -161,7 +161,7 @@ export default L.Control.AstroDrawFilterControl = L.Control.Draw.extend({
bboxCoordArr
[
1
][
0
],
bboxCoordArr
[
1
][
1
]
];
let
queryString
=
"
bbox=
"
+
"
[
"
+
bboxArr
+
"
]
"
;
let
queryString
=
"
bbox=
"
+
bboxArr
;
return
queryString
;
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment