PaulLeCam / react-leaflet

React components for Leaflet maps
https://react-leaflet.js.org
Other
5.19k stars 887 forks source link

Marker with invalid lat, long values are shown in Antartica #1106

Open AbhaySBhosale opened 1 year ago

AbhaySBhosale commented 1 year ago

Bug report in v4

Please make sure to check the following boxes before submitting an issue.\ Issues opened without using this template will be closed unless they have a good reason not to follow this template.

Expected behavior

Markers with invalid lat, long values should not be shown in Antartica Or should have way to control there placement

Actual behavior

If we pass invalid lat and long then marker is rendered in Antartica which should not be the case

Please describe.

Steps to reproduce

pass following lat and long values "ong" : -190.0, "lat" : -190.0,

If we pass invalid lat and long then marker is rendered in Antartica which should not be the case

Please provide the simplest example possible to reproduce the issue, based on this StackBlitz.