aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/MainMap.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-24 12:49:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-24 12:49:47 -0700
commit50505e02d2464a5f353aa805c9622c6d4f940ebc (patch)
tree3c690a14c129f28308af126c2a612dfe06875a27 /modern/src/map/MainMap.js
parent26021f5220d9fd3b7306ecc09e1e86a3858a6e5a (diff)
downloadtrackermap-web-50505e02d2464a5f353aa805c9622c6d4f940ebc.tar.gz
trackermap-web-50505e02d2464a5f353aa805c9622c6d4f940ebc.tar.bz2
trackermap-web-50505e02d2464a5f353aa805c9622c6d4f940ebc.zip
Simplify map code
Diffstat (limited to 'modern/src/map/MainMap.js')
-rw-r--r--modern/src/map/MainMap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/MainMap.js b/modern/src/map/MainMap.js
index 7332d93e..c93c26dd 100644
--- a/modern/src/map/MainMap.js
+++ b/modern/src/map/MainMap.js
@@ -57,7 +57,7 @@ const MainMap = () => {
}, [containerEl]);
useEffect(() => {
- mapManager.registerListener(() => setMapReady(true));
+ mapManager.onMapReady(() => setMapReady(true));
}, []);
const markerClickHandler = (event) => {