Skip to content

Commit 4dc4c2f

Browse files
committed
Document requirement for container to have size.
1 parent 52286b8 commit 4dc4c2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ const {center, zoom} = fitBounds({nw, se}, size);
300300

301301
## Tips
302302

303+
### My map doesn't appear
304+
305+
Make sure the container element has width and height. The map will try to fill the parent container, but if the container has no size, the map will collapse to 0 width / height.
306+
303307
### Positioning a marker
304308

305309
Initially any map object has its top left corner at lat lng coordinates. It's up to you to set the object origin to 0,0 coordinates.

0 commit comments

Comments
 (0)