johnwalley / allotment

A React component for resizable split views
https://allotment.mulberryhousesoftware.com/
MIT License
973 stars 55 forks source link

How to draw a leaflet map in an Allotment #655

Closed barbalex closed 1 year ago

barbalex commented 1 year ago

I like this tool. In one of my projects it works great. In the other two leaflet maps would have to be placed inside Allotments.

Here an example: https://codesandbox.io/s/affectionate-beaver-8ddjk8?file=/src/App.js

In the example I placed a basic leaflet map inside an Allotment. Unfortunately only parts of the map are drawn:

2023-07-16_12h46_20

How could this be achieved?

barbalex commented 1 year ago

On more thorough investigation I am getting the impression that this is a react-leaflet or leaflet issue an has nothing to do with allotment. Closing.

barbalex commented 1 year ago

So it was my bad. Forgot importing leaflet/dist/leaflet.css