Drawing shape file polygons on MapKit
Simple & strightforward test of loading shape file and drawing it on MapKit using drawMapRect. plain project using shapelib, video here:
- draws only polygons so far
- primitive optimization, no scale optimization
polygons from shapefile are read in MultiPolygonOverlay
MultiPolygonOverlay *shpPolygonsOverlay = [[MultiPolygonOverlay alloc]
initWithLocalShpFile:[resourcePath stringByAppendingPathComponent:@"DOKMPARCELA_P"]];
drawing of MultiPolygonOverlay is on MultiPolygonRenderer : MKOverlayPathRenderer -drawMapRect
credits/inspiration: