Reputation: 21
I have used Google map v3 API to create Google map and to plot multiple markers on certain locations of the map. Since, there are plenty of marker to plot it takes a while to load. I want to display a loading icon while the map is loading and plotting the markers. Can any suggest me how to do this....
Upvotes: 2
Views: 731
Reputation: 30170
When the page loads display the loader in the map div. Add an event listener (once) to the 'idle' event of the map that hides the loader.
Upvotes: 1