Skip to content

Fix map sketching points order - #4649

Open
tomasMizera wants to merge 2 commits into
masterfrom
fix/map-sketching-points-order
Open

Fix map sketching points order#4649
tomasMizera wants to merge 2 commits into
masterfrom
fix/map-sketching-points-order

Conversation

@tomasMizera

Copy link
Copy Markdown
Collaborator

This PR reverts the order in which we add points to map sketching lines. Previously we prepended points, which resulted in points being stored in reversed order, starting with the last. Now we append points. This feels natural and it was a missed todo in map sketching code.

The request came from the community, see https://community.merginmaps.com/p/line-vertices - this will enable easy setup of arrow symbology.

There were a couple of JS runtime exceptions in the code that I fixed along the way:

On map sketching drawer open:

qrc:/com.merginmaps/imports/MMInput/map/MMMapSketchesDrawer.qml:84:9: Unable to assign [undefined] to QColor
qrc:/com.merginmaps/imports/MMInput/map/MMMapSketchesDrawer.qml:83:9: Unable to assign [undefined] to QList<QColor>

On color selection:

qt.qml.context: qrc:/com.merginmaps/imports/MMInput/map/MMMapSketchesDrawer.qml:89:9 Parameter "newColor" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead

No UI/UX change. Map sketching works just like before.

@tomasMizera
tomasMizera requested a review from Withalion August 12, 2026 20:49
@tomasMizera tomasMizera changed the title Fix/map sketching points order Fix map sketching points order Aug 12, 2026
@github-actions

Copy link
Copy Markdown

Coverage Report for CI Build 31638925720

Coverage decreased (-0.008%) to 59.094%

Details

  • Coverage decreased (-0.008%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 73 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

73 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
mm/app/mapsketchingcontroller.cpp 72 0.0%
mm/app/position/providers/simulatedpositionprovider.cpp 1 91.67%

Coverage Stats

Coverage Status
Relevant Lines: 15680
Covered Lines: 9266
Line Coverage: 59.09%
Coverage Strength: 97.59 hits per line

馃挍 - Coveralls

@github-actions

Copy link
Copy Markdown

馃摝 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 馃摤 Mergin Maps 71541 dmg Expires: 10/11/2026 #7154
linux Build 馃摤 Mergin Maps 71801 x86_64 Expires: 10/11/2026 #7180
win64 Build 馃摤 Mergin Maps 63561 win64 Expires: 10/11/2026 #6356
Android Build 馃摤 Mergin Maps 846551 APK [arm64-v8a] Expires: 10/11/2026 #8465
馃摤 Mergin Maps 846551 APK [arm64-v8a] Google Play Store #8465
Android Build 馃摤 Mergin Maps 846511 APK [armeabi-v7a] Expires: 10/11/2026 #8465
馃摤 Mergin Maps 846511 APK [armeabi-v7a] Google Play Store #8465
iOS Build 馃摤 Build number: 26.08.940611 #9406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants