Skip to content

Commit 125dfe5

Browse files
authored
feat(map): allow custom iconView on GMSMarker subclasses (#506)
Previously, when subclassing GMSMarker with a custom iconView, the iconView would not display on the map. This update enables custom iconViews to render correctly when using GMSMarker subclasses.
1 parent 3b47119 commit 125dfe5

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)