googlemaps / googlemaps/google-maps-ios-utils

Google Maps SDK | iOS 11+ | Marker getting hidden when map is zoomed

Open
#369 2 comments 0 reactions 1 assignee Claimed by @arriolac View on GitHub
priority: p2 type: bug
Dominant language
Objective-C
Stars
778
Forks
441
PR merge metrics
No merged PRs in 30d

Description

For Google Maps SDK 3.10.0 for iOS, I am experiencing issue of marker getting hidden when map is zoomed. I would like to know that why SDK is setting a marker's map property in some cases as shown in attached screenshot.
![Screenshot 2021-04-03 at 7 31 46 PM](https://user-images.githubusercontent.com/7651317/113480988-c0868e80-94b4-11eb-8af1-00dd04932648.png)
Is it really needed to assign map property to nil inside SDK? How can we keep map property assigned to a marker while it is still visible or in visible area ? Should we implement below methods of GMSMapViewDelegate and assign map property again to a marker if it is nil ?

```
func mapView(_ mapView: GMSMapView, idleAt position: GMSCameraPosition)
func mapView(_ mapView: GMSMapView, didChange position: GMSCameraPosition)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.