             mapViewImage = finalImage
             
             semaphore.signal()
-        } as! MKMapSnapshotCompletionHandler)
+        }
         let delayTime = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
         let _ = semaphore.wait(timeout: delayTime)
 

}

public extension Geometry {
    public func debugQuickLookObject() -> AnyObject? {
        
        let region: MKCoordinateRegion

        let semaphore = DispatchSemaphore(value: 0);
        let mapRect = mapView.visibleMapRect
//        let boundingBox = MKMapRect(region)
            
        snapshotter.start(with: backgroundQueue) { snapshot, error in
            guard let snapshot = snapshot else {
                semaphore.signal()
                return
