More than one marker on same place - MarkerClusterer

前端 未结 3 1938
甜味超标
甜味超标 2020-12-08 05:15

I am using MarkerClusterer. When I have two or more markers on the exact same spot, The API only displays 1 marker - the top one. But somehow I want to show all the markers

3条回答
  •  生来不讨喜
    2020-12-08 06:21

    MarkerClusterer has option to define maxZoom upto which cluster should be visible in map. You can set its value to 18, so it wont show cluster when user zoomed in to its maximum:

     const markerCluster = new MarkerClusterer(map, markers,{maxZoom: 18});
    

提交回复
热议问题