Questions tagged [mkpolygon]

The MKPolygon class (iOS Developer Library) represents a shape consisting of one or more points that define a closed polygon

The MKPolygon class represents a shape consisting of one or more points that define a closed polygon. The points are connected end-to-end in the order they are provided. The first and last points are connected to each other to create the closed shape.

When creating a polygon, you can mask out portions of the polygon by specifying one or more interior polygons. For the polygons you specify, this class uses the even-odd fill rule to determine the final occupied area. When applied to overlapping polygons, this rule can cause specific regions to be masked out (and thereby removed) from the total occupied area.

68 questions
0
votes
1 answer

How add description to MKPolyline & MKPolygon?

How add annotations to polyline and polygon in Swift & MapKit? By Point is simple.
Z.S.
  • 39
  • 1
  • 9
0
votes
1 answer

Having trouble using MKPolygon or polygonWithCoordinates (Swift)

I am a bit confused, possibly by XCode suggesting that I should have a third parameter for MKPolygon, or only 2 params when I at the third. I am sure it is something else small and silly in my formatting, but any help as to the best way to create an…
jbobrow
  • 83
  • 1
  • 6
0
votes
1 answer

Issue persisting MKPolygon points using Parse framework

I have the following method that saves points to Parse.com using the PFGeoPoint object: I capture them using: func convertPoint(touch: UITouch) { let location = touch.locationInView(self.mapView) as CGPoint let coordinate:…
gotnull
  • 26,454
  • 22
  • 137
  • 203
0
votes
0 answers

iOS mapkit: MKAnnotationView not centered inside MKPolygon

I have several MKPolygons for which I am using rendererForOverlay method override. Now inside each such polygons I need my annotation view to display. I observe that the annotation view positions are quite inaccurate. Only when I zoom fully to the…
Nirav Bhatt
  • 6,940
  • 5
  • 45
  • 89
0
votes
1 answer

Zip codes within an MKPolygon

I'm trying to find the zip codes contained within an MKPolygon overlay. I know it's trivial to find the zip code a coordinate is contained within. What about the area contained by a polygon? A few approaches I'm considering: Simply use the zip…
Benjamin Martin
  • 1,795
  • 3
  • 15
  • 17
0
votes
1 answer

read coordinates from SQLite and create a MKPolygon

I found a lot of example but still I could not success to show a dynamically created MKPolygon on the MKMapView. I have a SQLite db which has coordinates for polygons. I want to read coordinates from db and then create a polygon. It should not be…
Ufuk Ugur
  • 186
  • 1
  • 17
0
votes
1 answer

NSLog detect updating current location in MKPolygon

noob here. I've read up on how to detect a point in a MKPolygon but I'm having difficulties implementing it -- it might just have to do with the part in the code at which I'm checking the user location… I'm not even sure if it's consistently…
-1
votes
1 answer

Overlay on map as a polygon is added successfully, but i cant remove that polygon in my ios 8 device

Add overlays myPolygon=[MKPolygon polygonWithCoordinates:points count:numberOfPoints]; [self.mapView addOverlay:myPolygon]; remove overlay [self.mapView removeOverlay:myPolygon]; Thanks
bhavik
  • 1,673
  • 2
  • 14
  • 20
1 2 3 4
5