You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the short term, I'm not sure we can do much better than to trap the error properly. I don't know if Leaflet supports a pattern fill. If it does, we will have to extract the pattern into a web-friendly image format (which tiles, obviously).
Any ideas on how to pursue this one are gratefully received.
Will be nice to manage this error in some way.
Catch the error, show to user a warning, "The pattern fill conversion isn't supported, so layer: NAME_OF_LAYER pattern will be converted to plain fill" and then convert.
Here the qgis project to test this bug report: https://db.tt/4PVgTlwl
expand it into /tmp dir and try
Traceback (most recent call last):
File "/home/ubuntu/.qgis2/python/plugins/qgis2leaf/qgis2leafdialog.py", line 297, in export2leaf
qgis2leaf_exec(self.outFileName, self.basemapName, self.basemapMeta, self.basemapAddress, self.width, self.height, self.extent, self.full_screen, self.layer_list, self.visible, self.opacity, self.encode2JSON,self.createcluster, self.webpage_name, self.webmap_head,self.webmap_subhead, self.legend,self.locate,self.address, self.precision, self.labels, self.labelshover, self.matchCRS, self.selected)
File "/home/ubuntu/.qgis2/python/plugins/qgis2leaf/qgis2leaf_exec.py", line 273, in qgis2leaf_exec
borderColor_str = str(i.rendererV2().symbol().symbolLayer(0).borderColor().name())
AttributeError: 'QgsLinePatternFillSymbolLayer' object has no attribute 'borderColor'
Versione Python:
2.7.6 (default, Mar 22 2014, 23:03:41)
[GCC 4.8.2]
Versione di QGIS:
2.8.1-Wien Wien, exported
The text was updated successfully, but these errors were encountered: