<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 9:08 PM, Tom Chadwin <span dir="ltr"><<a href="mailto:tom.chadwin@nnpa.org.uk" target="_blank">tom.chadwin@nnpa.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hrm. I wonder if Luigi is right. Try running it with the Python console open.<br>
If it still doesn't work, can you try commenting out the print line? It's<br>
just for debugging. Thanks for testing. Very much appreciated.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Right, with the console open, I get no error in the plugin map preview are and the following output on the QGIS python console:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">Python Console </div><div class="gmail_default">Use iface to access QGIS API interface or Type help(iface) for more info</div><div class="gmail_default">Traceback (most recent call last):</div><div class="gmail_default"> File "C:/Users/anita/.qgis2/python/plugins\qgis2web\utils.py", line 219, in is25d</div><div class="gmail_default"> symbol = renderer.symbolForFeature(feature)</div><div class="gmail_default">TypeError: Qgs25DRenderer.symbolForFeature(QgsFeature, QgsRenderContext): not enough arguments</div><div class="gmail_default"><br></div><div class="gmail_default">Traceback (most recent call last):</div><div class="gmail_default"> File "C:/Users/anita/.qgis2/python/plugins\qgis2web\utils.py", line 219, in is25d</div><div class="gmail_default"> symbol = renderer.symbolForFeature(feature)</div><div class="gmail_default">TypeError: Qgs25DRenderer.symbolForFeature(QgsFeature, QgsRenderContext): not enough arguments</div><div class="gmail_default"><br></div><div class="gmail_default">Traceback (most recent call last):</div><div class="gmail_default"> File "C:/Users/anita/.qgis2/python/plugins\qgis2web\utils.py", line 219, in is25d</div><div class="gmail_default"> symbol = renderer.symbolForFeature(feature)</div><div class="gmail_default">TypeError: Qgs25DRenderer.symbolForFeature(QgsFeature, QgsRenderContext): not enough arguments</div><div class="gmail_default"><br></div><div class="gmail_default">Traceback (most recent call last):</div><div class="gmail_default"> File "C:/Users/anita/.qgis2/python/plugins\qgis2web\utils.py", line 219, in is25d</div><div class="gmail_default"> symbol = renderer.symbolForFeature(feature)</div><div class="gmail_default">TypeError: Qgs25DRenderer.symbolForFeature(QgsFeature, QgsRenderContext): not enough arguments</div><div class="gmail_default"><br></div><div class="gmail_default">Traceback (most recent call last):</div><div class="gmail_default"> File "C:/Users/anita/.qgis2/python/plugins\qgis2web\utils.py", line 219, in is25d</div><div class="gmail_default"> symbol = renderer.symbolForFeature(feature)</div><div class="gmail_default">TypeError: Qgs25DRenderer.symbolForFeature(QgsFeature, QgsRenderContext): not enough arguments<span style="font-size:small"></span></div><div class="gmail_default"><span style="font-size:small"><br></span></div><div class="gmail_default"><span style="font-size:small"><br></span></div><div class="gmail_default"><span style="font-size:small">Commenting out the print statement also gets rid of the error in the webview.</span></div><div class="gmail_default"><span style="font-size:small"><br></span></div><div class="gmail_default"><span style="font-size:small"><br></span></div><div class="gmail_default"><span style="font-size:small">These are the errors I get in the plugin webview console:</span></div><div class="gmail_default"><span style="font-size:small"><br></span></div><div class="gmail_default"><a href="https://www.dropbox.com/s/7yzx09zeycdi7w9/Screenshot%202016-03-14%2021.30.16.png?dl=0">https://www.dropbox.com/s/7yzx09zeycdi7w9/Screenshot%202016-03-14%2021.30.16.png?dl=0</a><br></div><div class="gmail_default"><br></div><div class="gmail_default"><a href="https://www.dropbox.com/s/fjlvtwykxxq5fdg/Screenshot%202016-03-14%2021.30.12.png?dl=0">https://www.dropbox.com/s/fjlvtwykxxq5fdg/Screenshot%202016-03-14%2021.30.12.png?dl=0</a><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">Best wishes,</div><div class="gmail_default">Anita</div><div class="gmail_default"><span style="font-size:small"><br></span></div><div class="gmail_default"><br></div></div></div></div></div>