iOS, How to use GMSCoordinateBounds to show all the markers of the map?

后端 未结 10 1909
无人共我
无人共我 2020-12-23 09:28

I want to show all the markers that are on my map, after doing some searches I found that it should be done with GMSCoordinateBounds (Google Maps SDK) I\'ve

10条回答
  •  半阙折子戏
    2020-12-23 10:03

    @IBOutlet weak var mapView: GMSMapView!
    
    let camera = GMSCameraPosition.cameraWithLatitude(23.0793, longitude:  
    72.4957, zoom: 5)
    mapView.camera = camera
    mapView.delegate = self
    mapView.myLocationEnabled = true
    
    *** arry has dictionary object which has value of Latitude and Longitude. ***
    let path = GMSMutablePath()
    
    for i in 0..

提交回复
热议问题