Hi Tom,

You can enable developer tools on a QWebView and then use the inspector
and interactive JS console for debugging. That's very handy.

Matthias

On 01/21/2016 04:22 PM, Tom Chadwin wrote:
> qgis2web's preview pane is a QWebView. OpenLayers 3.13.0 has just been
> released. I've tried upgrading qgis2web's OpenLayers to that version, but
> the preview stops working. I found instructions for how to redirect the
> QWebView's console output to the QGIS Python console. The (not very
> meaningful) error I am getting is:
>
> WARNING:root:JS undefined:0
> TypeError: 'undefined' is not a function
>
> However, if I export instead of previewing, and open the file in IE11 or
> Chrome/Win, I get no error. If I revert qgis2web to OL3.12.1, it starts
> working again.
>
> Can anyone help me fix this? I've filed an issue at:
>
> https://github.com/tomchadwin/qgis2web/issues/176
>
> Thanks
>
> Tom
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebView-no-error-in-IE11-or-Chrome-Win-tp5246541.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to