efremidze / Cluster

Easy Map Annotation Clustering 📍
MIT License
1.28k stars 121 forks source link

Customize the distance from contested location #115

Closed grifas closed 5 years ago

grifas commented 5 years ago

Is your feature request related to a problem? Please describe. On my app, I have a map with a limited zoom level, that is to say I can't zoom in to the max because I don't want to see the exact location of the annotation. When I have a lot of annotations at the same location, they are displayed around the location but as I limited the zoom level I can't see them. (see the picture)

Describe the solution you'd like I would like to customize the distance from contested location to increase it to see the annotations with the same location at my max zoom in.

Describe alternatives you've considered I tested to multiplicate the distanceFromContestedLocation.

(annotation as? MKPointAnnotation)?.coordinate = annotation.coordinate.coordinate(onBearingInRadians: bearing, atDistanceInMeters: distanceFromContestedLocation * 10)

Additional context

Before (at max zoom in) After (at max zoom in)
IMG_2194 IMG_2195

Checklist

efremidze commented 5 years ago

Resolved by #116