Search code examples
iosskmaps

Skobbler map clustering


I'm trying to figure out how I can use pin clustering with SKMapView and SKAnnotation?I see that there is SKPOICluster, but I'm not sure there is a way to Use it with SKAnnotation.


Solution

  • Unfortunately there is no clustering support for SKAnnotations (you will have to implement yourself the logic for choosing which annotations are visible at each zoom level).

    Note: clustering support for SKAnnotations is work in progress

    The SKPoiCluster is to be used with SKMapPoi. (SKMapPoi offers clustering support) The tradeoff for SKMapPoi is that the icons that can be used are rather limited - sprites from a png file, so if you want to modify an icon you need to modify the png file.