问题
i have a small map of a town, i want to place it into the google map, any idea how to do it ? i am doing so because i need google map to point out user current location.
回答1:
Checkout the TileMap example code from Apple
回答2:
To display a custom map in MKMapView your custom map needs to be in Keyhole Markup Language (KML). KML is a file format used to display geographic data in an Earth browser such as Google Earth, Google Maps, and Google Maps for mobile. The file can include custom images and annotations.
- KML Documentation Introduction
- Google Earth
- KML Tutorial I would follow this tutorial before working on your app. It will give you a better overview of what is possible.
- iOS sample code KMLViewer
http://developer.apple.com/library/ios/#samplecode/KMLViewer/Introduction/Intro.html
来源:https://stackoverflow.com/questions/5691925/how-to-display-my-own-map-in-mkmapview