extension ViewController: MKMapViewDelegate {
func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
guard let annotation = annotation as? Artwork else { return nil }
let identifier = "marker"
var view: MKMarkerAnnotationView
if let dequeuedView = mapView.dequeueReusableAnnotationView(withIdentifier: identifier)
as? MKMarkerAnnotationView {
dequeuedView.annotation = annotation
view = dequeuedView
} else {
view = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: identifier)
view.canShowCallout = true
view.calloutOffset = CGPoint(x: -5, y: 5)
view.rightCalloutAccessoryView = UIButton(type: .detailDisclosure)
}
return view
}
}
https://www.thorntech.com/2016/01/how-to-search-for-location-using-apples-mapkit/
https://www.raywenderlich.com/160517/mapkit-tutorial-getting-started
https://github.com/ThornTechPublic/MapKitTutorial
https://github.com/waverun/MapKitTutorial-swit_3-xcode_8/tree/master
https://github.com/ThornTechPublic/MapKitTutorial/tree/jonathan
http://sweettutos.com/2015/04/24/swift-mapkit-tutorial-series-how-to-search-a-place-address-or-poi-in-the-map/
https://www.raywenderlich.com/109888/google-maps-ios-sdk-tutorial
https://www.youtube.com/watch?v=h0DqQ4AdM6g
https://kicencode.wordpress.com/2016/02/23/place-autocomplete-googlemaps-api-with-google-maps-sdk-on-ios-swift/😆😆😆😆
https://github.com/balitax/AutoCompleteAddressMaps😀😀😀😀
https://www.youtube.com/watch?v=gRQUoHleCGM😆😆😆
https://www.youtube.com/watch?v=NoTnn7o6eaQ+++ User Location
http://sweettutos.com/2015/12/14/how-to-make-a-custom-info-window-for-your-marker-with-google-maps-sdk-for-ios/=======Cusom view of GMSmark========https://github.com/phynet/iOS-GoogleMaps-Custom-InfoWindow
https://stackoverflow.com/questions/38721370/how-to-pass-data-between-uiviewcontrollers-with-protocols-delegates======== protocol
swif guy
Comments
Post a Comment