Can we display KML data on Google maps using Mapki

2020-07-18 06:29发布

问题:

I have a requirement wherein I have to show some maps and some data corresponding to that maps. The problem is that the backend server uses MapXtreme to generate GIS data, and there is no MapX client for iOS devices. The server people tell me that they can send me KML files for generating the maps.

Is there any way to use KML files to display geographic information on Google maps using Mapkit framework?

EDIT: I have gone through a similar question in this link. In one of the answer vy32 shared a link of Google earth's tutorial site to create a KML file. He also argues that it can be used in Mapkit. The question remains ...how de we do it??

回答1:

There's no built-in functionality for this. Apple provide sample code that parses a subset of KML that you can use.



回答2:

Google web can take a kml URL in place of a street address.Have you considered using webkit to show Google web map?

Note: The kml url can be a CGI query into a database.