如何在缩小时隐藏多个标记

时间:2016-07-22 10:03:52

标签: javascript

任何人都知道如何避免在多个时间内显示相同的标记

      latlngbounds.extend(markers[i].getPosition());
      map.setCenter(latlngbounds);
      map.fitBounds(latlngbounds);

1 个答案:

答案 0 :(得分:0)

您可以使用Google地图标记群集来实现此功能。

Greate教程就在这里。

https://googlemaps.github.io/js-marker-clusterer/docs/examples.html

相关问题