loading custom image on mkmaps

馋奶兔 提交于 2020-01-06 04:45:09

问题


I want to develop a mall navigator however i am unsure where to start. I want to create something similar to this screenshot - http://navigationapps.com/wp-content/uploads/2010/10/point-inside-2.png . I believe its a custom loaded map with a pin tracker on it however how can i do this? (are there any tutorials/examples i could look at?). Furthermore, assuming that the mall has a clear signal, how accurate will the tracking be - within how many meters?). Would appreciate some help on this. Thanks.


回答1:


Recently I had to develop an app using MKMapView using custom callouts (annotations). You won't get around subclassing MKAnnotationView if you want to do a lot of customizations to it.

What helped me most were those tutorials:

Intro Tutorial: http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial

Part 1: http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/

Part 2: http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-2/ (Also handles buttons inside your callout)




回答2:


I believe, You need tiles overlay.

Have a look at:

https://github.com/mtigas/iOS-MapLayerDemo

https://github.com/route-me/route-me



来源:https://stackoverflow.com/questions/7030998/loading-custom-image-on-mkmaps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!