planetfederal / qgis-webappbuilder-plugin

GNU General Public License v3.0
18 stars 20 forks source link

Do not allow OGC layers from servers with no CORS/JSONP (?) #365

Open gioman opened 7 years ago

gioman commented 7 years ago

Adding a OGC layer, a WMS from example, for a server with no CORS/JSONP will make WAB send a message like

"There was an error loading tiles."

then on webapp preview the layer with load to fail with

There was an error loading tiles.

wouldn't be better to "ban" altogether the OGC layers that are from services/servers that are not supported?

bartvde commented 7 years ago

Probably yes, I agree

Alternatively we could not set crossOrigin: 'anonymous' in those cases

gioman commented 7 years ago

@bartvde whatever can result in less confusion for users. I personally think strange (as user) I cannot add a whataver WMS Mapserver layer, but is that is not possible then block them.

SrNetoChan commented 7 years ago

Meanwhile, I will document this limitation in the troubleshooting section.