2

I am receiving this warning while I am overlaying the geometry on the map. Any help is greatly appreciated.

Warning: "Sending MKShape to paramter of incompatible type id MKOverlay Nonnull."

enter image description here

@interface store : NSObject

@property (nonatomic, copy, readwrite) MKShape *storeGeometry;

// On map   
 if([store.storeGeometry isKindOfClass:MKPolygon.class]) {
                [self.map addOverlay:store.storeGeometry];
            }
Karen
  • 169
  • 1
  • 16
  • similar kind of question ... http://stackoverflow.com/questions/43234808/how-to-get-apple-maps-app-not-mapkit-to-add-an-annotation/43243556#43243556 – Fattie Apr 06 '17 at 11:14
  • @Fattie In the link that you have provided discusses more about `MKAnnotations`. My question is related to `MKOverlay` – Karen Apr 06 '17 at 17:28

0 Answers0