Comments (7)
Thanks for the test. Soon I will commit to github and publish the new version also in the QGIS plugin repository. Kindly consider donating a coffee to support the project. You can do this via the button on the home page. Thank you.
from qgis2web.
Released version 3.18.0 which includes a fix for this issue. The update will be available soon from the QGIS plugin repository. Thanks for the tip.
from qgis2web.
Good evening @danieljuschus
I ran some tests and report line style results that can be implemented with both openlayers and leaflet export, can they meet your expectations?
The difference between qgis and export is minimal, perhaps the scale could be adjusted slightly but the result is good. I believe that by using different thicknesses and colors already with these examples it is possible to differentiate the data visible on the map well. What do you think?
from qgis2web.
The problem emerges with thicker lines. I need to use those because I'm drawing over OSM tiles.
Here's what a Dot Line
with a Stroke width
of 3mm looks like in the editor:
The exported result:
When changing the parameter lineDash
of the layer style js file from [1,5]
to [10,20]
:
So perhaps we would need to figure out a better mapping between the QGIS and OL parameters?
from qgis2web.
@danieljuschus I would avoid print-based units - mm
have no meaning on screen. Pixels is definitely sfest. There is some code in there to try to handle map units, but I cannot remember how reliable it is. I'm not saying switching to pixels will fix the issue, but that's where I'd start.
from qgis2web.
I should have managed to fix everything for openlayers export.
@danieljuschus Can I ask you to run some tests?
I'll leave you the file to replace in this folder for windows sistem:
C:\Users\your_user\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\qgis2web
Make a backup copy of the existing file.
The new version fixes:
- line width with decimals (previously there was an approximation to the whole number)
- stroke length and space length based on line width (both for dotted line, dashed line, and dash/dot line)
- separate definitions for lines or outer lines of polygons
from qgis2web.
That seems to work perfectly now, thank you!
from qgis2web.
Related Issues (20)
- Qgis2web crashes when I want to Update Preview or Export project to Web HOT 4
- In qgis2web two layers overlap hiding each other despite being seen in QGIS HOT 10
- hey
- legend for renderer invertedPolygonRenderer not supported HOT 6
- How to reduce information in Pop-up HOT 8
- File Name Too Long error when exporting to Leaflet HOT 5
- Qgis2web writes to /tmp - Firefox/snap can't read this. HOT 5
- WFS based layer exports are not working in leaflet nor openlayers
- QgsEmbeddedSymbolRenderer is not supported
- Do you want some money?
- I'm unable to export REST API layers from ArcGIS Map Service; latest version HOT 1
- Export/preview map empty/blank without error HOT 3
- Relative path attachment widget not working HOT 3
- Announcement: repository transferred HOT 2
- Popup options not showing up HOT 3
- 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 keeps failing with python errors HOT 13
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.