Questions tagged [mkpolygonview]

The MKPolygonView class provides the visual representation for an MKPolygon annotation object. This view fills and strokes the area represented by the annotation. You can change the color and other drawing attributes of the polygon by modifying the properties inherited from the MKOverlayPathView class. This class is typically used as is and not subclassed.

The MKPolygonView class provides the visual representation for an MKPolygon annotation object. This view fills and strokes the area represented by the annotation. You can change the color and other drawing attributes of the polygon by modifying the properties inherited from the MKOverlayPathView class. This class is typically used as is and not subclassed.

Click Here for class reference.

3 questions
28
votes
2 answers

How to determine if an annotation is inside of MKPolygonView (iOS)

I'm trying to calculate if a specific annotation(like the blue circle of the user location) or a MKPinAnnotation is inside an MKPolygon layer on the mapview. Any advice to achieve this?
Mat
  • 7,613
  • 4
  • 40
  • 56
1
vote
1 answer

'initWithPolygon:' & 'initWithPolyline:' are deprecated: first deprecated in iOS 7.0: is there any solution for this warning in iOS?

I am using KMLParser library for offline map to download .kml file from server but I found these warnings. Please give any solution to remove these warnings. Here is function for both: for initWithPolygon, - (MKOverlayPathView…
crazydev
  • 103
  • 1
  • 1
  • 9
1
vote
1 answer

Multiple Polygon overlays from array

I have an array with polygons created from a data file with coordinates per polygon. So when I plot them on my map I use: [mapView addOverlays:polygonArray]; and in my viewForOverlay: if ([overlay isKindOfClass:[MKPolygon class]]) { …
wkberg
  • 391
  • 2
  • 12