Effective KML rendering as MapKit overlay on iPhone

Hello everybody. I am working on a project that (ideally) will require rendering large, complex KML files as overlay / overlays in MapKit MKMapView.

I tried the KML parser, which provides documentation modeled after Apple, and it is more likely not able to execute as needed. Now I am wondering if anyone knows about another affordable solution.

+6
iphone mapkit mkmapview kml
source share
1 answer

If you mean Apple KMLViewer, it uses NSXMLParser, which is the slowest method. enter image description here

I'm not sure how fast you need, if TouchXML's performance is good enough for you, you should take a look at Simple-KML . If this is not fast enough, I think you should implement your own TBXML- based parser , but without confirmation + XPath support. (Suppose Google data is always ceremonial, -)

Edit: Another user finds Simple-KML not fast enough and uses TBXML directly.

KMLViewer iOS Extension for KML NetworkLink Elements Processing

+5
source share

All Articles