qgis / qwc2-demo-app

QWC2 demo application
Other
241 stars 154 forks source link

Issue on QWC2-demo app - Error while changing tool in Measure Component #480

Closed VincentHeau closed 1 year ago

VincentHeau commented 1 year ago

image

The issue is located in the Measure Component. After selecting "lenght", and drawing a segment on the map, an error is raised if you close the menu or of you select an other option such as "Area", "Bearing" or "Position". As you can see it on the picture the errors are

Error: <line> attribute x1: Expected length, "NaN".
Error: <line> attribute x2: Expected length, "NaN".
chartist.js:2076 Error: <path> attribute d: Expected number, "MNaN,62.1LNaN,57.…".
chartist.js:2076 Error: <path> attribute d: Expected number, "MNaN,62.1LNaN,57.…"

Thank you for your attention to this matter. Vincent

manisandro commented 1 year ago

Is you QWC2 recent? Can you reproduce it on qwc2.sourcepole.ch?

VincentHeau commented 1 year ago

The error is on qwc2.sourcepole.ch as well

image

manisandro commented 1 year ago

Thanks, fixed by https://github.com/qgis/qwc2/commit/aba18110edd59db7a4345f885f425003f2bc9551

VincentHeau commented 1 year ago

Thank you 😊