             return
         }
 
-        if view.isKind(of: MKPinAnnotationView.self) {
+        let defaultPin: Bool
+        if #available(iOS 11.0, *) {
+            defaultPin = view.isKind(of: MKMarkerAnnotationView.self)
+        } else {
+            defaultPin = false
+        }
+
+        if defaultPin || view.isKind(of: MKPinAnnotationView.self) {
             mapView.removeOverlays(mapView.overlays)
 
             let request = MKDirectionsRequest()


public class GPointAnnotation: MKPointAnnotation {
    private var onClick: ((GPointAnnotation) -> Void)?
//    var object: Any?

    public func coordinate(_ coordinate: CLLocationCoordinate2D) -> Self {
        self.coordinate = coordinate

        return self
    }

    public func onClick(_ command: @escaping (GPointAnnotation) -> Void) -> Self {
        onClick = command
        return self
