Closed lucernae closed 7 years ago
@lucernae Is this still relevant
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.
WMS can (and should) be used for previews in all cases
This issue was moved to kartoza/geonode#331
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