Comments (13)
Can you attach your data in a zip?
Another user told me that qgis2web doesn't work with the latest version of QGIS, but I still have to investigate.
It certainly works with the LTR 3.34 version.
from qgis2web.
from qgis2web.
Attaching files via email doesn't work. you should create a zip file and upload it to the github discussion. Thank you.
from qgis2web.
@andreaordonselli, the symbollayer color property value in QGIS 3.36 is something like '190,178,151,255,rgb:0.74509803921568629,0.69803921568627447,0.59215686274509804,1'
while the plugin expect it as '190,178,151,255'
in
Lines 632 to 633 in b7dc3d9
See https://api.qgis.org/api/qgsfillsymbollayer_8cpp_source.html#l00355, https://api.qgis.org/api/qgscolorutils_8cpp_source.html#l00192
from qgis2web.
The 2 shp files were in one zip file
from qgis2web.
something is happening that doesn't allow you to attach, I still don't see the zip you upload. send it to me by email [email protected]
Thanks
from qgis2web.
@andreaordonselli, the symbollayer color property value in QGIS 3.36 is something like
'190,178,151,255,rgb:0.74509803921568629,0.69803921568627447,0.59215686274509804,1'
while the plugin expect it as'190,178,151,255'
Is this a QGIS breaking API change, @agiudiceandrea?
from qgis2web.
by applying a simple style to the two levels qgis2web has no problems exporting.
openlayers:
leaflet:
What styles are you applying? can you export your styles in the following way and send them to me?
from qgis2web.
@andreaordonselli, the symbollayer color property value in QGIS 3.36 is something like
'190,178,151,255,rgb:0.74509803921568629,0.69803921568627447,0.59215686274509804,1'
while the plugin expect it as'190,178,151,255'
Is this a QGIS breaking API change, @agiudiceandrea?
@tomchadwin, see: qgis/QGIS#55718 (comment) and subsequent comments.
from qgis2web.
@tomchadwin
@agiudiceandrea
I ask for your advice as an update would make qgis2web incompatible with previous versions of qgis. do I update and define the minimum version of qgis to use, or do I specify that it must be used with versions prior to the latest one, until an ltr version is released?
from qgis2web.
@andreaordonselli Wrap new code to try to parse the new format in a try
block, and put the existing code which parses the old format in the except
clause. Worth adding a comment that the old format is deprecated, so it can be found and removed later.
from qgis2web.
Thanks for your advice, I solved it by acquiring only the first 4 values and this will work with the old and new qgis.
can it be okay?
def getRGBAColor(color, alpha):
r, g, b, a = color.split(",")[:4]
a = (float(a) / 255) * alpha
return "'rgba(%s)'" % ",".join([r, g, b, str(a)])
from qgis2web.
Looks good to me. Thanks!
from qgis2web.
Related Issues (20)
- Overlapping polygons do not show on web report HOT 3
- Qgis2web crashes in different computers and with different qgis versions and projects HOT 1
- FILTERS in Qgis2Web HOT 2
- qgis2web 3.18.2 crashs since QGIS v3.36.0 at Win & Mac HOT 1
- Nested layer groups are still not supported HOT 1
- Warning: QgsVectorFileWriter.writeAsVectorFormat() is deprecated HOT 3
- Learning how to contribute HOT 1
- UKHab Style Sets Not Working HOT 9
- The export contains malware HOT 4
- max-height of popup-content HOT 2
- Python error HOT 1
- Unable to export with openlayers HOT 12
- Blank preview and map HOT 5
- Python error HOT 4
- WMS Map from geoportale.regione.lazio.it not showed HOT 6
- Incorrect translation from Dutch names (look like English) in the Dutch language again. HOT 2
- popup join data - popup link - popup video HOT 4
- qgis2web plugin produces a webmap with an 'image' icon instead of the attached image. HOT 13
- Layer Search not working with Geopackage fid HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis2web.