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: maintain drawing labels when modifying features #493

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

jessicamcinchak
Copy link
Member

Previously, when a feature was modified it's label would shift because internally it was moving to the last position in the drawing source. Now, keep labels on modify by checking if the "label" property already exists and only add new labels to new features.

Expect we might revisit this again when getting further into remove-one-at-a-time, but this fixes our known existing bug !

chrome-capture-2024-8-2 (1)

Copy link

netlify bot commented Sep 2, 2024

Deploy Preview for oslmap ready!

Name Link
🔨 Latest commit 9ea227d
🔍 Latest deploy log https://app.netlify.com/sites/oslmap/deploys/66d5c11e6d245c0008e2e7c1
😎 Deploy Preview https://deploy-preview-493--oslmap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jessicamcinchak jessicamcinchak requested a review from a team September 2, 2024 13:44
@jessicamcinchak jessicamcinchak merged commit 978cbc4 into main Sep 2, 2024
5 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/fix-shifting-drawmany-labels branch September 2, 2024 16:39
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