Skip to content
Drawing shape file polygons (shp) on MapKit, Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SHPonMapKit.xcodeproj
SHPonMapKit
Default-568h@2x.png
LICENSE
README.md

README.md

SHPonMapKit

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:

shape file on mapkit video

  • 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:

You can’t perform that action at this time.