最近同事遇到有關 Google Maps API 的問題,其中一個 marker cluster 的用法,在大量的產生 marker 時,會有 performance 的問題。找到下列兩篇資料留存參考
1. https://developers.google.com/maps/articles/toomanymarkers
2. http://www.svennerberg.com/2009/01/handling-large-amounts-of-markers-in-google-maps/
第二篇的作者把全部跟 GOOGLE MAPs API 有關的套件都測試過了,其中他推薦用 MarkerClusterer。
1. https://developers.google.com/maps/articles/toomanymarkers
2. http://www.svennerberg.com/2009/01/handling-large-amounts-of-markers-in-google-maps/
第二篇的作者把全部跟 GOOGLE MAPs API 有關的套件都測試過了,其中他推薦用 MarkerClusterer。
留言