Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overview asset 2 #13

Merged
merged 27 commits into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9df1811
Fix STAC type detection
m-mohr Sep 7, 2021
2cbffdd
Add files via upload
DanielJDufour Sep 30, 2021
07dcdd1
Update README.md
DanielJDufour Sep 30, 2021
564c404
added .DS_Store to .gitignore
DanielJDufour Oct 12, 2021
8265d5e
Merge branch 'main' into overview-asset
DanielJDufour Oct 12, 2021
8c0328b
added test case for where COG is inaccessible because of CORS block a…
DanielJDufour Oct 13, 2021
5c26429
changed jpg to png for cog no cors overview test
DanielJDufour Oct 13, 2021
94d8328
added async imageOverlay function with additional immediate error det…
DanielJDufour Oct 22, 2021
dd506d8
updated test to use overview role per suggestion by @m-mohr
DanielJDufour Oct 22, 2021
8d749ad
moving getBoundingBox out of the main index.js and to its own file
DanielJDufour Oct 25, 2021
704a68c
moved findAsset to it's own file
DanielJDufour Oct 25, 2021
00e345f
added enhanced tileLayer function and withTimeout
DanielJDufour Oct 26, 2021
1b81b2a
updated tests and added one assertion test via flug lib
DanielJDufour Oct 26, 2021
b27d53f
ran formatting on bboxLayer.js
DanielJDufour Oct 26, 2021
5554529
formatted bboxToLatLngBounds.js
DanielJDufour Oct 26, 2021
3a6d64c
added pnpm-lock.yaml to .gitignore
DanielJDufour Oct 26, 2021
020276d
ran formatting on src/utils/find-asset.js
DanielJDufour Oct 26, 2021
165d1e5
simplified imageOverlay with easy-image-loader
DanielJDufour Oct 27, 2021
11a83f7
ran format on a few more utility files
DanielJDufour Oct 27, 2021
c299c9f
ran format on titiler-related files
DanielJDufour Oct 27, 2021
c51ce46
added timeout to georaster layer creation
DanielJDufour Oct 27, 2021
a7f1646
added skrafotos test
DanielJDufour Oct 27, 2021
294a17f
added gee-aafc-aci-display-preview.html
DanielJDufour Oct 27, 2021
60dd974
refactored to support more immediate discovery of CORS and other issues
DanielJDufour Oct 27, 2021
40c8edf
updated README.md and package-lock.json
DanielJDufour Oct 27, 2021
288bdf5
Fix build issue on Windows
m-mohr Oct 27, 2021
9125870
removed accidental top-level await test
DanielJDufour Oct 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,9 @@ build/

# Notes
*.txt

# other files
.DS_Store

# lock files
pnpm-lock.yaml
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# stac-layer
> Visualize [STAC](https://stacspec.org/) Data on a [LeafletJS](https://leafletjs.com/) Map

<img src="./stac-layer.gif" height=200>

# install
```bash
npm install stac-layer
Expand All @@ -25,7 +27,8 @@ const map = L.map('map');
const layer = await stacLayer(
data,
{
displayOverview: false
displayOverview: true,
displayPreview: false
}
);

Expand Down Expand Up @@ -173,4 +176,4 @@ layer.on("fallback", event => {
// layer.stac metadata may change after fallback
// so good to check again now
});
```
```
10,734 changes: 9,257 additions & 1,477 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"scripts": {
"build": "webpack",
"dev": "concurrently \"npx snowpack build --polyfill-node --watch\" \"cd build && npx http-server\"",
"format": "npx prettier --arrow-parens=avoid --print-width=120 --trailing-comma=none --write src/*.js",
"format": "npx prettier --arrow-parens=avoid --print-width=120 --trailing-comma=none --write src/*.js src/*/*.js",
"serve": "HOST=0.0.0.0 http-server --cors",
"test": "echo 'no automatic tests'",
"tiler": "docker run --name titiler -p 8000:8000 --env PORT=8000 --rm -t developmentseed/titiler"
Expand All @@ -51,10 +51,12 @@
"homepage": "https://github.com/DanielJDufour/stac-layer#readme",
"dependencies": {
"@babel/core": "^7.14.8",
"@mapbox/tilebelt": "^1.0.2",
"@turf/boolean-point-in-polygon": "^6.5.0",
"chroma-js": "^1.4.1",
"dynamic-client": "^0.0.1",
"georaster": "^1.5.4",
"easy-image-loader": "^0.0.2",
"georaster": "^1.5.5",
"georaster-layer-for-leaflet": "^3.2.0",
"get-depth": "^0.0.1",
"leaflet": "^1.7.1",
Expand Down
Loading