React-Leaflet marker files not found

后端 未结 2 1038
既然无缘
既然无缘 2020-12-31 08:28

I\'ve got very simple code to display a map using react-leaflet and place a marker on it. However, i get the following two errors in my browser console

<
2条回答
  •  我在风中等你
    2020-12-31 08:54

    It seems not all stuff is properly integrated together when using react, leaflet and react-leaflet. I had the same problem and found this

    https://github.com/PaulLeCam/react-leaflet/issues/453

    You need to setup leafelet itself again, as something brokes after importing leaflet.css.

    Hope it helps

提交回复
热议问题