From 50505e02d2464a5f353aa805c9622c6d4f940ebc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 24 Oct 2020 12:49:47 -0700 Subject: Simplify map code --- modern/src/map/MainMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/map/MainMap.js') 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) => { -- cgit v1.2.3