geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
474 stars 255 forks source link

HTML Table layout problem with many-column features #115

Closed justb4 closed 5 years ago

justb4 commented 5 years ago

In some cases where a Feature has many attributes (columns), the HTML Table display within the items.html template gets "too compact". See image below (feature 'RD Point' has around 20 attributes/columns):

image

How to solve? Ideas:

tomkralidis commented 5 years ago

Another option could be to not display a table, and when a user clicks on a point, then show a table of just that feature's properties, displayed similarly to a single feature HTML page.

justb4 commented 5 years ago

Not displaying a table would affect non-Point geometries (see e.g. Great Lakes Dataset) as these can (currently) not be clicked in Map.

pvgenuchten commented 5 years ago

A table is usefull here imho.

As a start, we could limit the list to the first 8 columns?

If at some point we add more semantics to pygeoapi, for example indicate which field is id/name/description, we can select certain fields to display in list mode, or allow user to indicate which fields to show in list mode.

tomkralidis commented 5 years ago

+1

justb4 commented 5 years ago

Think we're done here. Thanks @pvgenuchten and @tomkralidis . Closing, pls re-open if still work needed.