Skip to content

fix: properly handle centerMarker removal logic #460

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

Shaglock
Copy link
Contributor

πŸ”— Linked issue

This is a follow-up to my previous fix related to the centerMarkers #402 #454

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR addresses another issue with the centerMarker prop in the Google Maps component:

Fixed center marker removal bug: The marker removal logic was incorrectly protecting center markers from deletion regardless of the centerMarker prop state, causing center markers to persist even when disabled

Added explicit default value: Set centerMarker: true in props defaults to make the component's behavior predictable and consistent with its implicit logic

- Add explicit centerMarker: true default to props
- Fix center marker removal logic to respect centerMarker prop state
- Resolves issue where center markers persisted when centerMarker=false
Copy link

vercel bot commented May 30, 2025

@Shaglock is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@Baltazore Baltazore left a comment

Choose a reason for hiding this comment

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

hey glad someone caught it, I really need it in my current project, my dev was looking for issue last 2 weeks

@harlan-zw
Copy link
Collaborator

Thanks :)

@harlan-zw harlan-zw merged commit d1b2aef into nuxt:main Jun 2, 2025
1 of 3 checks passed
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.

3 participants