Skip to main content

Posts

Showing posts with the label Custom image annotation

Google Maps Custom Annotation

                 let latitude = ( latArr . object (at: 0 ) as ! NSString ). doubleValue         let longitude = ( longArr . object (at: 0 ) as ! NSString ). doubleValue                  let camera = GMSCameraPosition . camera (withLatitude: latitude, longitude: longitude, zoom: 12 )         self . mapView . camera = camera                  mapView . isMyLocationEnabled = true         mapView . settings . myLocationButton = true         for (index, _ ) in latArr . enumerated () {                          let latitude = ( latArr . object (at: index) as ! NSString ). doubleValue             let longitude = ( longArr . object (at: index) as ! NS...