相关疑难解决方法(0)

Does the Google Maps Android API Utility Cluster Manager have a minimum number of markers before it will create a cluster?

I am using the Google Maps Android API Utility Library to enable clustering in my app. When five or more markers are co-located a cluster is created: enter image description here

Four or fewer similarly co-located markers won't create a cluster: enter image description here

Is this by design or am I doing something wrong, because my maps have 2, 3 or 4 markers that clearly overlap, but won't form a cluster?

The code to demonstrate the problem:

Map layout:

<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:map="http://schemas.android.com/apk/res-auto"
      android:id="@+id/map"
      android:layout_width="match_parent" …
Run Code Online (Sandbox Code Playgroud)

android google-maps-android-api-2

18
推荐指数
1
解决办法
9927
查看次数

标签 统计

android ×1

google-maps-android-api-2 ×1