From ff86ec87d09e4e0782f6e0f876782b4df5dd6c1f Mon Sep 17 00:00:00 2001 From: Santiago B Date: Sun, 5 Dec 2021 21:01:47 -0300 Subject: [PATCH] Add readme update regarding MyMap.realmap; --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index 14e1f11..c8837bc 100644 --- a/readme.md +++ b/readme.md @@ -151,6 +151,12 @@ Though our script wraps most of the use cases with map and infoboxes. You can st ```js MyMap.realmap; // returns Google Maps map object ``` +For MyMap.realmap; to work you need to call it inside of: + ```js +MyMap.onload(function() { + // MyMap.realmap will be undefined if you don't call it inside of this function. +}); +``` ## Development - `npm run build` - Build task that generates both minified and non-minified scripts, - `npm run watch` - watch changes, build only minified version;