简体   繁体   中英

Load markers dynamically while the page is loading

is it possible to initialise a google map and then load the pins dynamically on it? What I would like is a map where....as soon as the data is available, its marker pops up. I am on a situation where the data come quite slowely so...it would me nice to give a feedback showing this partial results while the rest of the data come.

Thanks in advance.

is it possible to initialise a google map and then load the pins dynamically on it? Yes, use AJAX to load the markers (note, that link is to a page from Mike Williams' v2 tutorial, that API is deprecated, but the same concepts apply to the current v3 API).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM