PermafrostDiscoveryGateway / pdg-portal

Design and mockup documents for the PDG portal
Apache License 2.0
0 stars 0 forks source link

add LEO layer to PDG portal #2

Closed mbjones closed 2 years ago

mbjones commented 3 years ago

During the team call on 2021-04-29, we discussed adding LEO network linkages and information to the portal. Two potential approaches were raised:

mbjones commented 3 years ago

Mike Brubaker and Mike Brook provided the following information about getting LEO data in GEOJSON format from their API:

Yes. You can generate a GEOJSON URL for any search results, which will automatically include more posts as they are added to the system. For example, here are the current permafrost posts in the system:

https://www.leonetwork.org/en/explore/posts?query=&type=TWEET&type=POST&type=ARTICLE&mode=list&region=&polygon=&bbox=&minlat=&maxlat=&near=&radius=&categories=PERMAFROST%7CPermafrost+Change&categories_anyOrAll=ANY&fromdate=&todate=

You can browse those results, or download them in a few different formats here:

https://www.leonetwork.org/en/explore/posts?query=&type=TWEET&type=POST&type=ARTICLE&mode=data&region=&polygon=&bbox=&minlat=&maxlat=&near=&radius=&categories=PERMAFROST%7cPermafrost+Change&categories_anyOrAll=ANY&fromdate=&todate=

I'm guessing GEOJSON will be the easiest one to work with. This is the URL for those results as GEOJSON:

https://www.leonetwork.org/explore/posts?query=&type=TWEET&type=POST&type=ARTICLE&mode=geojson_compact&region=&polygon=&bbox=&minlat=&maxlat=&near=&radius=&categories=PERMAFROST%7cPermafrost+Change&categories_anyOrAll=ANY&fromdate=&todate=

The GEOJSON endpoint supports cross-domain requests, so you should be able to do the query right from the browser. I realize the fluid earth browser has its own rendering engine, but this is an example of using the Google Maps SDK in an analogous way:

https://leonetwork.org/content/gmaps_api.html

Hope that helps. Let me know if you need more info. This is the general pattern we use to integrate with external sites.

Mike

Mike Brook Alaska Native Tribal Health Consortium mjbrook@anthc.org // www.anthc.org

robyngit commented 3 years ago

Note that the bottom of the Info Box should say "Read more on LEO Network", followed by the logo, and link to the associated news story.

robyngit commented 3 years ago

update from Mike on how this information should be displayed:

If you could change “LEO Network News” to “LEO Network New and Local Observations”, or “LEO Network Posts”, I think it would better encompass the different information sources we host in our platform.

laurenwalker commented 2 years ago

@robyngit I think this can be added to the production portal now, right?

robyngit commented 2 years ago

Yes! I will test it out and then update the portal doc

robyngit commented 2 years ago

The LEO Network Posts are now available on the production PDG portal:

leo_layer leo_detail