I have been using react leaflet succesful with Int/Float coordinates like [51.505, -0.09]
however, i have longitude and Latitude indicator included on my coordinates like ['51.505W', '-0.09S']
.
First options runs well with this code.
const position = [51.505, -0.09]
render(
<MapContainer center={position} zoom={13} scrollWheelZoom={false}>
<TileLayer
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Marker position={position}>
<Popup>
A pretty CSS3 popup. <br /> Easily customizable.
</Popup>
</Marker>
</MapContainer>
)
Thie second options breaks with error Invalid LatLng object How best can i handle this