You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found an issue mapping a custom marker with latitude 0 and longitude 0.
With that coordinates the marker is always displayed on the center of the viewport, whatever position that is.
Looking at the source code it seems to me that the issue is due to this code:
this.marker.lat (or this.marker.lng) should not be used to check if the prop is available, because when it's 0, it will return false.
A check like typeof this.marker.lat === 'undefined' should be used instead.
The text was updated successfully, but these errors were encountered:
Found an issue mapping a custom marker with latitude 0 and longitude 0.
With that coordinates the marker is always displayed on the center of the viewport, whatever position that is.
Looking at the source code it seems to me that the issue is due to this code:
this.marker.lat
(orthis.marker.lng
) should not be used to check if the prop is available, because when it's 0, it will return false.A check like
typeof this.marker.lat === 'undefined'
should be used instead.The text was updated successfully, but these errors were encountered: