Experimental Viewer for STAC & JSON#200
Experimental Viewer for STAC & JSON#200m-mohr wants to merge 1 commit intosource-cooperative:mainfrom
Conversation
|
@m-mohr is attempting to deploy a commit to the Radiant Earth Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Love it. Approved. Possible to get it to match our styles? https://github.com/source-cooperative/source.coop/wiki/0001-%E2%80%90-Copy-styles-manually-from-source.coop-to-embedded-viewers |
It's possible, yes. @jedsundwall Where do I get the CSS from? The readme doesn't say it really and I can't find a central CSS in the source.coop GitHub. Can you provide me with a CSS file for the most common style declarations, please? |
|
Some very basic styling has been applied, if more styles are required, please PR them to https://github.com/moregeo-it/stac-web-component/blob/main/index.html Happy to move the stac-web-component over to the source-cooperative org if you want. This is ready for review. |
|
@jedsundwall this already includes a very basic JSON Viewer. Not sure whether it meets your requirements for a basic JSON Viewer. What are the requirements? |
|
Yeah, we owe you a better explanation of our requirements. We noticed that this viewer did have a simple view, but we didn't find it intuitive. @alukach what did you use to display json in the browser? Was it something built into Firefox? Do you mind sharing a screenshot? We've created an issue to work on generic json here: #205. |
Yeah, I'm using a Chrome-port of that: https://github.com/pd4d10/json-viewer. May be useful for inspiration |
|
I vibe coded a solution slapping the OpenEO component onto a clone of the Firefox JSON Viewer built with React JSON Tree Repo: https://github.com/alukach/viewer-json-eo Perhaps we can do something like this? Merging VueJS and ReactJS is a bit smelly, perhaps the code should be rebuilt as a VueJS only app if we want to keep the OpenEO viewer, but that could be a future thing. Warning There's a bug where once you navigate away from the OpenEO tab, it loads as |
|
Yeah something like that looks right to me! |


What I'm changing
Adding a basic viewer for STAC & JSON
How I did it
It's based on a web-component in openeo-vue-components:
Open-EO/openeo-vue-components#114
(Despite the name, the STAC components are not openEO specific.)
How you can test it
For example here: https://source.coop/fiboa/ai4sf/stac/collection.json
This is a proof-of-concept, I'd want to deploy the viewer somewhere else if we want to proceed with this PR.
Wasn't able to test myself due to #201