6
votes

My question is about clustering feature introduced in iOS 11 of MapKit.

I am trying to cluster pins on MapView. I can see the pins getting clustered and un-clustered when i zoom in and zoom out.

But when all the pins are visible i am not able to get them clustered again. No matter how much i zoom in or zoom out. Sometimes one even pin remains without getting clustered.

I am customizing annotation and clustered annotation views.

I am following exactly same code as WWDC 2017 sample code but in Obj-C.

Can anyone guide me where can be the issue ?

1

1 Answers

13
votes

To answer my own questions: clusteringIdentifier was nil when dequeuing the annotation. So i am now setting the clusteringIdentifier after dequeuing.

I hope this helps.