mkpolygon Questions

5

I have the swift code below that draws a polygon and drops an annotation on MKMapView. I am trying to figure out how i could identify if the annotation's coordinate is within the polygon? import U...
Mink asked 17/7, 2015 at 6:45

3

At this moment, I am trying to figure out whether a coordinate on a MKMapView is within a MKPolygon drawn out ahead of time with latitudes/longitudes. I am using CGPathContainsPoint to determine ...
Demetrius asked 21/8, 2015 at 20:50

4

Solved

I am trying to plot a MKPolygon on a MKMapView in iOS 4.0. I have an NSArray which contains custom objects that include properties for latitude/longitude. I have a code sample below: - (void)viewD...
Lifetime asked 29/3, 2011 at 14:38

2

Solved

I'm using iOS Mapbox SDK and I need to find the center coordinate in a polygon because I want to add a marker in the center coordinate. How can I do this in Swift? func drawPolygonFeature(shapes: ...
Dre asked 1/12, 2018 at 10:22

2

Solved

There seems to be an "issue" with overlays and the MapKit. Unlike annotations, overlays aren't reused and therefore when adding multiple overlays would cause memory-problems on a real device. I've ...
Shemeka asked 16/7, 2013 at 9:54

2

Solved

I have a custom polygon object so I can save map overlays to Realm. I'm able to create this objects successfully, but when I want to retrieve the var polygon object it returns nil. When I print the...
Clarita asked 30/5, 2016 at 5:3

3

Solved

I'm trying to make an area calculation category for MKPolygon. I found some JS code https://github.com/mapbox/geojson-area/blob/master/index.js#L1 with a link to the algorithm: http://trs-new.jpl.n...
Ulberto asked 26/2, 2014 at 10:43

1

Solved

I'm developing an app with a map in which the user can draw a polygon area. My issue is what it's possible drawing polygons with knots (see the image) (I don't know if knot is the right word). I d...
Exemplificative asked 31/3, 2015 at 16:1

1

Solved

I have some annotations presented on a map (somepoints) the map zooms in or out to fit all points - see working code below. MKPolygon *poly = [MKPolygon polygonWithPoints:somepoints count:i]; [sel...
Maloney asked 11/3, 2014 at 20:24
1

© 2022 - 2024 — McMap. All rights reserved.