kartoza / gfdrr_oondra

GFDRR Challenge Online Operational Natural Disaster Risk Assessment platform
0 stars 3 forks source link

Previewing the layer before fetching it to GeoSAFE #41

Closed lucernae closed 7 years ago

lucernae commented 8 years ago

For WFS, I think it is possible to preview the layer in the Add Layer dialog in GeoSAFE. I tried to use json request but it got denied because of cross origin requests. So, I read that, in order for GeoSAFE to be able to preview staging oondra's WFS layer, we need to enable jsonp output format. This is the article I mentioned http://gis.stackexchange.com/questions/64406/getting-wfs-data-from-geoserver-into-leaflet. This is not really mandatory for fetching the layers, but I think it would help the user if they are able to see the layer when trying to filter the extent.

For WCS, I haven't found a way to get the preview in leaflet. But perhaps it can be done using WMS just to preview it if it supports.

CC @NyakudyaA @gubuntu

NyakudyaA commented 7 years ago

@lucernae Is this still relevant

lucernae commented 7 years ago

It works for WMS layer now (it was displayed in preview). For WFS, I haven't found any way to display it to preview. Possible way is to enable JSONP in WFS, and have GeoSAFE displayed it using JSONP. So for WFS, we're not able to show the preview.

gubuntu commented 7 years ago

WMS can (and should) be used for previews in all cases

gubuntu commented 7 years ago

This issue was moved to kartoza/geonode#331