Tag: markerclusterer

自定义标记使用GMUClusterManager

我想使用GMUClusterManager显示自定义标记。 我在这里遵循了标记聚类的所有步骤。 但是有这样的蓝色和红色的图标。 但是,当我放大那个地图时,它只显示红色的标记,但我不想那样。 有实例方法,我已经实现了我的逻辑,但没有用。 – (instancetype)initWithMapView:(GMSMapView *)mapView clusterIconGenerator:(id<GMUClusterIconGenerator>)iconGenerator { if ((self = [super init])) { GMSMarker *marker= [GMSMarker markerWithPosition:CLLocationCoordinate2DMake(24.0, 75.30)]; UIView *customMarker =[[UIView alloc] initWithFrame:CGRectMake(0, 0, 63, 40)]; customMarker.backgroundColor = [UIColor blueColor]; marker.iconView = [self EmployeeMarker:0] ; marker.appearAnimation = kGMSMarkerAnimationPop; marker.map = mapView; } return self; } -(UIView *)EmployeeMarker:(int)labelTextInt{ UIView *customMarker =[[UIView alloc] initWithFrame:CGRectMake(0, […]