mkcircle

Inverted Circle Overlay Not Showing On Map

戏子无情 提交于 2020-02-06 07:32:49
问题 I am trying to create a inverted MKCircle overlay on the map but it will not show up. Heres my inverted circle class code: import Foundation import MapKit class MKInvertedCircle : NSObject, MKOverlay { var coordinate: CLLocationCoordinate2D var boundingMapRect: MKMapRect { return MKMapRect.world } init(center coord: CLLocationCoordinate2D) { self.coordinate = coord } } Heres my inverted circle renderer class code: import Foundation import UIKit import MapKit class

Inverted Circle Overlay Not Showing On Map

你。 提交于 2020-02-06 07:32:29
问题 I am trying to create a inverted MKCircle overlay on the map but it will not show up. Heres my inverted circle class code: import Foundation import MapKit class MKInvertedCircle : NSObject, MKOverlay { var coordinate: CLLocationCoordinate2D var boundingMapRect: MKMapRect { return MKMapRect.world } init(center coord: CLLocationCoordinate2D) { self.coordinate = coord } } Heres my inverted circle renderer class code: import Foundation import UIKit import MapKit class