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 marker position has valid numeric coordinates. #950

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

usefulthink
Copy link
Contributor

@usefulthink usefulthink commented Jan 29, 2025

Updated the condition to check if lat and lng are finite numbers before creating a LatLng object. This prevents potential runtime errors when lat and lng are 0.

Replaces: #892 and #927
Fixes: #891

Updated the condition to check if `lat` and `lng` are finite numbers before creating a `LatLng` object. This prevents potential runtime errors when lat and lng are 0.
@usefulthink usefulthink enabled auto-merge (squash) January 31, 2025 16:08
@usefulthink usefulthink merged commit 21d62c5 into googlemaps:main Jan 31, 2025
13 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 31, 2025
Updated the condition to check if `lat` and `lng` are finite numbers before creating a `LatLng` object. This prevents potential runtime errors when lat and lng are 0. 21d62c5
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.

Handle (0,0) coordinates for marker
2 participants