From 4dc4c2f2d2c09e496cce826be3de0500bc7d084f Mon Sep 17 00:00:00 2001 From: Matt Brookes Date: Wed, 18 Nov 2015 22:31:28 +0000 Subject: [PATCH] Document requirement for container to have size. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3ee253f..87bb6fa 100644 --- a/README.md +++ b/README.md @@ -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.