Answers for "Attempted import error: 'Map' is not exported from 'react-leaflet' (imported as 'LeafletMap')."

0

Attempted import error: 'Map' is not exported from 'react-leaflet' (imported as 'LeafletMap').

import { MapContainer, TileLayer, Marker } from 'react-leaflet';

<MapContainer
  className="markercluster-map"
  center={[51.0, 19.0]}
  zoom={4}
  maxZoom={18}
>
  <TileLayer
    url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
    attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
  />
</MapContainer>
Posted by: Guest on January-02-2021

Code answers related to "Attempted import error: 'Map' is not exported from 'react-leaflet' (imported as 'LeafletMap')."

Code answers related to "Javascript"

Browse Popular Code Answers by Language