Using MKMapView with kml files

Just wondering what is the best way to get close to this?

I searched the source code to understand how this is done. But there are very few.

Any advice.

Thank.

+3
source share
3 answers

For default information only, the maps application supports the (basic) display of kml files if you specify the URL of the kml file on the Internet. You can open it from your application using openURLfor UIApplication and specify the URL of the KML file as a parameter.

+1
source

Cannot use kml files directly with MKMapView:

Use NSXMLParser and a parser (probably name, latitude, longitude).

0
source

Source: https://habr.com/ru/post/1754365/


All Articles