Skip to content

Commit

Permalink
fix: handle zero as a valid value for marker position
Browse files Browse the repository at this point in the history
  • Loading branch information
s-montigny-desautels committed Jul 3, 2024
1 parent c5cdf54 commit f531337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marker-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class MarkerUtils {
return marker.position;
}
// since we can't cast to LatLngLiteral for reasons =(
if (marker.position.lat && marker.position.lng) {
if (marker.position.lat != null && marker.position.lng != null) {
return new google.maps.LatLng(
marker.position.lat,
marker.position.lng
Expand Down

0 comments on commit f531337

Please sign in to comment.