swift - How to get objects/locations from google mp cluster on iOS? -
is there way objects/locations/markers google map cluster on ios. how list of objects cluster when user taps on it. there solution in swift? answers.
i found solution. used method below gmuclusterrendererdelegate
delegate , casted userdata
gmucluster
. after items
.
func mapview(_ mapview: gmsmapview, didtap marker: gmsmarker) -> bool { guard let cluster = marker.userdata as? gmucluster else { return false } print(cluster.items) print("didtap cluster") return true }
Comments
Post a Comment