hulab / ClusterKit

An iOS map clustering framework targeting MapKit, Google Maps and Mapbox.
MIT License
512 stars 86 forks source link

Inset/Margin #14

Closed emadd closed 7 years ago

emadd commented 7 years ago

Thanks for ClusterKit! Is it possible to tweak the inset/margins of an "unclustered" marker? Seems to zoom in a bit too much, particularly when there is only a few markers in the cluster.

simulator screen shot jul 9 2017 3 26 16 pm

maxep commented 7 years ago

Hi @emadd The GMSCameraUpdate extension provides methods to zoom with margins:

+ (GMSCameraUpdate *)fitCluster:(CKCluster *)cluster withPadding:(CGFloat)padding;
+ (GMSCameraUpdate *)fitCluster:(CKCluster *)cluster withEdgeInsets:(UIEdgeInsets)edgeInsets;
emadd commented 7 years ago

Many thanks