camptocamp / mel-dataplatform

Source code for MEL's OpenData platform frontend
https://data.lillemetropole.fr/
GNU General Public License v3.0
2 stars 0 forks source link

[Dataset page] : Fix WFS/OGC api access #94

Open cmoinier opened 1 week ago

cmoinier commented 1 week ago

Description

This PR adds a copy button for the root URL to the API cards. This will allow users to add the service to QGIS, which was an issue in the case of WFS/OGC API services because of the "Output Format" param added through the API form. These params are not taken into account by QGIS when creating the service's layer anyway, so the root URL should be used for such ends.

tkohr commented 6 days ago

Thanks for the added error message. I was actually just thinking of the small warning like on the map, but the error component might even make more sense in order to not display the empty form. However, I also see the error component flash up the time the datahub queries the OGC API. I think we need to wait until we have the response (with a loading state, for example) before displaying an error message.