Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Work with KML files Swift Application

Tags:

ios

swift

maps

kml

I am working on a interesting project, this project allow to visualise some information (light pollution, cloud info, etc..) from KML/KMZ files on Maps or Google Maps. I would like to restitute this information with an iOS Application using Swift programming language. I would like to know if it is possible to do this with iOS.

Thank you very much,

YM

like image 864
YMonnier Avatar asked Nov 03 '25 22:11

YMonnier


1 Answers

Step 1:

Download apple's sample code here.

Step 2:

Bridge KMLParser.m and KMLParser.h files from Apple's sample code to your project ( you can just drag it to your project ) If you never done it before, you can find a simple tutorial here.

Step 3:

Add your KML File to your project in Xcode.

Step 4:

Example to parsing a polygon from KML file to MKMap:

enter image description here

like image 87
Vadim F. Avatar answered Nov 05 '25 15:11

Vadim F.