Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Ensure coord_path is a string in DirectSelect.onVertex #1333

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BlockCnFuture
Copy link

Problem

DirectSelect.onVertex fails when dragging MultiPoint geometries due to the coord_path property not being consistently a string. This causes issues, especially when dragging vertices in MultiPoint geometries.

Solution

  • Added a type check and conversion for coord_path to ensure it is always treated as a string:
    if (typeof about.coord_path !== 'string') about.coord_path = String(about.coord_path);

@BlockCnFuture BlockCnFuture requested a review from a team as a code owner December 26, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant