Google Maps API v3 - Different markers/labels on different zoom levels

前端 未结 2 1653
情话喂你
情话喂你 2021-02-14 17:01

I was wondering if it is possible that Google has a feature to view different markers on different zoom levels.

For example, on zoom level 1, I want one marker over Chin

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-14 17:28

    Looks like thing you are trying to make is called Marker Clustering.

    Here you are lots of official google exmamples https://developers.google.com/maps/articles/toomanymarkers written on native javascript

    http://gmap3.net/examples/clustering.html - using jQuery library.

    I hope this will help you.

提交回复
热议问题