Skip to content

Feat/routing marker drag - #926

Open
JoselinGuevaraHoppe wants to merge 9 commits into
nextfrom
feat/routing-marker-drag
Open

JoselinGuevaraHoppe wants to merge 9 commits into
nextfrom
feat/routing-marker-drag

Conversation

@JoselinGuevaraHoppe

@JoselinGuevaraHoppe JoselinGuevaraHoppe commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add a dragging-feature to the markers of an existing route.

Instructions for local reproduction and review

  • add apiKey from HeiGit to PluginRouting in example/snowbox/index.js
  • select start and destination in the route plugin
  • select one of the markers and drag them to a new location on the map

@dopenguin dopenguin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should not be able to modify a feature while I am actively adding a new coordinate. It may also cause issues with other plugins. Please take a look at coreStore.maskInteraction and how this is handled for Draw in routing for both.

🏓 @JoselinGuevaraHoppe

Comment thread src/plugins/routing/composables/useMarkerLayer.ts Outdated
Comment thread src/plugins/routing/composables/useMarkerLayer.ts Outdated
Comment thread src/plugins/routing/composables/useMarkerLayer.ts Outdated
Comment thread src/plugins/routing/composables/useMarkerLayer.ts Outdated
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://Dataport.github.io/polar/pr-preview/pr-926/

Built to branch gh-pages at 2026-09-22 07:04 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@FinnDarge
FinnDarge force-pushed the feat/routing-marker-drag branch from 4035b68 to bedd4ac Compare September 22, 2026 07:00

@FinnDarge FinnDarge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Removed “globals: true” from the Vitest configuration.
  • Expanded the tests in useMarkerLayer so that the actual content of VectorSource is also checked.
  • Added tests for the modifyend logic.
  • Added tests for the pointermove cursor states (grabbing, grab, empty cursor).

@FinnDarge

Copy link
Copy Markdown
Contributor

@dopenguin 🏓

This branch has not been deployed

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants