OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

GeoJSON Viewer - need a generic viewer in InfoMapper or a new application #430

Open smalers opened 2 years ago

smalers commented 2 years ago

The data.openwaterfoundation.org website is being used more to host datasets and dataset landing pages provide a list of resources, for example for Stream Reaches. Because some datasets have many files and the filenames may not be obvious, it would be helpful to allow preview of the layer, similar to how Esri servers and GitHub show the layer. For example, have a View button/link next to the filename

Default symbology could be used, such as single symbol, and all attributes could be shown by default. The following table summarizes design options. In each case a web application will be deployed on a public OWF site and will be accessed via a link, with URL query parameter specifying necessary input, for example as follows (with appropriate URL encoding):

https://data.openwaterfoundation.org/app/layer-viewer?layerUrl=https://data.openwaterfoundation.org/state/co/dwr/stream-reaches/co-stream-reaches-division3.geojson

It is also desirable to reuse the common library code.

Approach Pros Cons
Create map configurations for each dataset to preview the data layer file, with each layer having a configuration. Then point the public viewer to the map configuration and open in a new tab. Might involve the least amount of coding if InfoMapper can be used. Might require a lot of configuration files to be created and maintained.
Create map configurations for each dataset to preview the data layer file, with each dataset having one or a small number of configurations, each of which might display multiple layers. Then point the public viewer to the map configuration and open in a new tab. Might involve the least amount of coding if InfoMapper can be used. Map configurations may still require a lot of work to create and maintain.
Create view application configurations at appropriate scale (e.g., all of US, or all of Colorado) for the various datasets, for example cold use the US Rivers InfoMapper application. Might be able to leverage InfoMapper and use for marketing as a centralized data access portal. The layers could be very large and therefore may not be feasible.
Create a new application that has a map viewer and knows how to create map configurations on the fly, thereby requiring no or little input other than the layer URL. Might require the least amount of configuration and maintenance for datasets. It could also point out issues with using the common library in multiple applications (InfoMapper and this application). Would be another application to maintain and may be difficult to create as a simple application (thereby approaching InfoMapper in design so just use InfoMapper).
smalers commented 2 years ago

Doing some internet research, I did find the following websites that will show a GeoJSON file via a URL:

I think I'll try the second option as an interim solution but need something more advanced that allows the attribute table to be viewed and show attributes with mouse hover. This could be another existing free option on the web or something that needs to be created by OWF. Keep this issue open until that solution is implemented.