From da0617307b033ab17522059b05e50349d605a15c Mon Sep 17 00:00:00 2001 From: Yuri Akimov Date: Mon, 4 Jul 2016 09:54:07 +0300 Subject: [PATCH] Fix wrong decription of fitBounds() function. Need to pass bounds object, because {nw, se} are undefined (#188) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7962a7f..4ceb172 100644 --- a/README.md +++ b/README.md @@ -308,7 +308,7 @@ const size = { height: 380, // Map height in pixels }; -const {center, zoom} = fitBounds({nw, se}, size); +const {center, zoom} = fitBounds(bounds, size); ``` #### tile2LatLng (func)