Skip to content

Commit

Permalink
feat(map): allow custom iconView on GMSMarker subclasses
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
talipboke committed Oct 26, 2024
1 parent 3b47119 commit 00f7bdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ - (void)renderCluster:(id<GMUCluster>)cluster animated:(BOOL)animated {
} else {
for (id<GMUClusterItem> item in cluster.items) {
GMSMarker *marker;
if ([item class] == [GMSMarker class]) {
if ([item isKindOfClass:[GMSMarker class]]) {
marker = (GMSMarker<GMUClusterItem> *)item;
marker.map = _mapView;
} else {
Expand Down

0 comments on commit 00f7bdf

Please sign in to comment.