and the selectedObj is of type MaplyScreenMarker. I've tried accessing the user object (which is nil) and everything else I can think of. What I need is the number of points in that cluster, or better yet an array of the individual markers.
Can someone point me in the right direction. Is there a different delegate method I should be using or something I'm not seeing in MaplyScreenObject that I can use?
I've been playing around with clustering which by the way is amazing! Over 50k points with terrific performance. Very impressive stuff.
The blog post mentions this on cluster selection:
When I tap on a cluster it triggers the
didSelect
method of theMaplyViewControllerDelegate
like so:func maplyViewController(_ viewC: MaplyViewController, didSelect selectedObj: NSObject, atLoc coord: WGCoordinate, onScreen screenPt: CGPoint)
and the
selectedObj
is of type MaplyScreenMarker. I've tried accessing the user object (which is nil) and everything else I can think of. What I need is the number of points in that cluster, or better yet an array of the individual markers.Can someone point me in the right direction. Is there a different delegate method I should be using or something I'm not seeing in MaplyScreenObject that I can use?