-
Notifications
You must be signed in to change notification settings - Fork 152
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG markers not supported for categorised based rendering #262
Comments
Sorry I meant categorised, I am aware that rule is not supported. |
You just saved me typing that reply. OK, will investigate - sounds as though you are probably right, though. I'm fairly sure that categorized and graduated assumes that it is a simple marker. This one could be a swine to fix, actually. Might be OK in OL3 because Victor and Luca's code is properly modularized. Not so much the Leaflet stuff, though. Thanks a bunch, Phil... |
I'm surprised someone hasn't noticed before, I didn't even think to try until just now. I'm working on some maps for an HLF bid that have invasive non-native species categorised by species for which I am using SVG markers. It doesn't have to be a web map but I ran the plugin just to see if it would export it. |
Workaround is of course to split the layer out into separate layers. Still worth investigating a fix. |
Python error occurs with Leaflet. OL3 produces no error, but also produces no output. Agreed? |
Agreed. |
Crash trapped (issue was raised again as #328). Issue not solved, so not closing, but at least the crash is gone. |
Leaflet now implemented in master. Please test. |
Produces the following error:
Traceback (most recent call last):
File "C:/Users/philipb/.qgis2/python/plugins\qgis2web\maindialog.py", line 125, in previewMap
MainDialog.previewLeaflet(self)
File "C:/Users/philipb/.qgis2/python/plugins\qgis2web\maindialog.py", line 304, in previewLeaflet
visible, cluster, json, params, popup)
File "C:/Users/philipb/.qgis2/python/plugins\qgis2web\leafletWriter.py", line 159, in writeLeaflet
canvas)
File "C:/Users/philipb/.qgis2/python/plugins\qgis2web\leafletLayerScripts.py", line 186, in writeVectorLayer
json, wfsLayers)
File "C:/Users/philipb/.qgis2/python/plugins\qgis2web\leafletLayerScripts.py", line 448, in categorizedLayer
catLegend)
File "C:/Users/philipb/.qgis2/python/plugins\qgis2web\leafletLayerScripts.py", line 483, in categorizedPoint
border_transp = float(symbolLayer.borderColor().alpha()) / 255
AttributeError: 'QgsSvgMarkerSymbolLayerV2' object has no attribute 'borderColor'
I've tried half a dozen symbols and combinations of symbols, can anyone replicate?
The text was updated successfully, but these errors were encountered: