Skip to content

Commit 4ed59e8

Browse files
author
talip
committed
Add subclass allowance on renderer
If can not subclass GMSMarker with custom iconView can not see iconView on Map
1 parent 3b47119 commit 4ed59e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GoogleMapsUtilsObjC/include/GMUDefaultClusterRenderer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ - (void)renderCluster:(id<GMUCluster>)cluster animated:(BOOL)animated {
284284
} else {
285285
for (id<GMUClusterItem> item in cluster.items) {
286286
GMSMarker *marker;
287-
if ([item class] == [GMSMarker class]) {
287+
if ([item isKindOfClass:[GMSMarker class]]) {
288288
marker = (GMSMarker<GMUClusterItem> *)item;
289289
marker.map = _mapView;
290290
} else {

0 commit comments

Comments
 (0)