SYMapPlacesClusterSettings Class Reference

SYMapPlacesClusterSettings contain parameters for the clustering calculation. The clustering joins nearby places to cluster objects containing a count of grouped places when a view is zoomed out. The radius defines an area covered by the cluster object on a specified zoom level. Radii on all other zoom levels are calculated from the provided radius. The clustering calculation uses the equirectangular projection https://en.wikipedia.org/wiki/Equirectangular_projection. One radius unit is 1/100000 of geographic coordinates in degrees, its size is similar to metres. Examples of values for default settings: radius 6400.0 on zoom level 8; radius 600.0 on zoom level 12; radius 32.0 on level 17. To specify which places should use clustering, see SYMapPlaceCategory.clusterId. More...

#import <SYMapPlacesManager.h>

Inheritance diagram for SYMapPlacesClusterSettings:
Collaboration diagram for SYMapPlacesClusterSettings:

Instance Methods

(nonnull instancetype) - initWithZoomLevel:radius:
 

Properties

NSInteger zoomLevel
 Zoom level for which the cluster radius is specified. More...
 
CGFloat radius
 Radius of cluster on specified zoom level. More...
 

Detailed Description

SYMapPlacesClusterSettings contain parameters for the clustering calculation. The clustering joins nearby places to cluster objects containing a count of grouped places when a view is zoomed out. The radius defines an area covered by the cluster object on a specified zoom level. Radii on all other zoom levels are calculated from the provided radius. The clustering calculation uses the equirectangular projection https://en.wikipedia.org/wiki/Equirectangular_projection. One radius unit is 1/100000 of geographic coordinates in degrees, its size is similar to metres. Examples of values for default settings: radius 6400.0 on zoom level 8; radius 600.0 on zoom level 12; radius 32.0 on level 17. To specify which places should use clustering, see SYMapPlaceCategory.clusterId.

Method Documentation

◆ initWithZoomLevel:radius:

- (nonnull instancetype) initWithZoomLevel: (NSInteger)  zoomLevel
radius: (CGFloat)  radius 

Property Documentation

◆ zoomLevel

- (NSInteger) zoomLevel
readwritenonatomicassign

Zoom level for which the cluster radius is specified.

◆ radius

- (CGFloat) radius
readwritenonatomicassign

Radius of cluster on specified zoom level.


The documentation for this class was generated from the following file: