score:22

Accepted answer

you need to import the react leaflet components from react-leaflet instead of leaflet.

import { map } from 'react-leaflet';

score:0

sorry to be so late. in above example there is not value for width. if someone have the same issue, make sure to have: height and width setted on map component. for example:

if it doesn't works, change value for "position" in style


Related Query

More Query from same tag