qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.09k stars 2.93k forks source link

Blank Export to Web using qgis2web #56615

Closed trosser1 closed 4 months ago

trosser1 commented 4 months ago

What is the bug or the crash?

The google maps renders fine. But when I add my custom layer with lat and long locations the export is blank. If I try and use the leaflet layout then it crashes on.

An error has occurred while executing Python code:

ValueError: too many values to unpack (expected 4) Traceback (most recent call last): File "C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\maindialog.py", line 394, in saveMap results = writer.write(self.iface, File "C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletWriter.py", line 90, in write self.preview_file = self.writeLeaflet( File "C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletWriter.py", line 261, in writeLeaflet useOSMB) = writeVectorLayer(layer, safeLayerName, File "C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletLayerScripts.py", line 125, in writeVectorLayer useShapes) = getLayerStyle(layer, safeLayerName, interactive, File "C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletStyleScripts.py", line 136, in getLayerStyle pattern) = getSymbolAsStyle(rule.symbol(), markerFolder, File "C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletStyleScripts.py", line 186, in getSymbolAsStyle color = getRGBAColor(props["color"], alpha) File "C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\utils.py", line 633, in getRGBAColor r, g, b, a = color.split(",") ValueError: too many values to unpack (expected 4)

Python version: 3.9.18 (heads/master:5eba59e, Feb 1 2024, 20:02:10) [MSC v.1929 64 bit (AMD64)] QGIS version: 3.36.0-Maidenhead Maidenhead, 09951dc0

Python Path: C:\Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\google-street-view-layer-master C:/PROGRA~1/QGIS33~1.0/apps/qgis/./python C:/Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS33~1.0/apps/qgis/./python/plugins C:\PROGRA~1\QGIS33~1.0\apps\grass\grass83\etc\python C:\Windows C:\PROGRA~1\QGIS33~1.0\bin\python39.zip C:\PROGRA~1\QGIS33~1.0\apps\Python39\DLLs C:\PROGRA~1\QGIS33~1.0\apps\Python39\lib C:\PROGRA~1\QGIS33~1.0\bin C:\PROGRA~1\QGIS33~1.0\apps\Python39 C:\PROGRA~1\QGIS33~1.0\apps\Python39\lib\site-packages C:\PROGRA~1\QGIS33~1.0\apps\Python39\lib\site-packages\win32 C:\PROGRA~1\QGIS33~1.0\apps\Python39\lib\site-packages\win32\lib C:\PROGRA~1\QGIS33~1.0\apps\Python39\lib\site-packages\Pythonwin C:/Users/tom.rosser/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users\tom.rosser\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins //TRDP-DC02/Redirected Folders$/tom.rosser/Desktop

Steps to reproduce the issue

Add google maps layer. Import locations and add layer over the top. Try and export to web.

Versions

3.36.0

Supported QGIS version

New profile

Additional context

No response

elpaso commented 4 months ago

This is not a QGIS issue, please file a bug report for the qgis2web plugin