Document requirement for container to have size.

This commit is contained in:
Matt Brookes 2015-11-18 22:31:28 +00:00
parent 52286b82d2
commit 4dc4c2f2d2

View File

@ -300,6 +300,10 @@ const {center, zoom} = fitBounds({nw, se}, size);
## Tips
### My map doesn't appear
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.
### Positioning a marker
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.