Skip to content

Commit

Permalink
Add subclass allowance on renderer
Browse files Browse the repository at this point in the history
If can not subclass GMSMarker with custom iconView can not see iconView on Map
  • Loading branch information
talipboke committed Oct 25, 2024
1 parent 3b47119 commit 0436e1e
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 0436e1e

Please sign in to comment.