user538593
user538593

Reputation: 21

How to add a load icon on google map while plotting markers

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

Answers (1)

Galen
Galen

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

Related Questions