Skip to content

Commit 437f8a5

Browse files
committed
fix: remove setTimeout
1 parent 7b7986d commit 437f8a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vendors/Geo.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,7 @@ function Geo(props) {
725725

726726
//Add map init event
727727
map.once('rendercomplete', () => {
728-
//Detach from event
729-
setTimeout(() => { fireEvent('map:init', map) }, 100)
728+
fireEvent('map:init', map)
730729
})
731730
}
732731
}, [props.features, props.projection, props.startDate, props.endDate, map]);

0 commit comments

Comments
 (0)