开发者

Is it possible to add a custom image in the info pane in mapkit?

开发者 https://www.devze.com 2023-01-01 15:37 出处:网络
I am trying to add a custom image for the info pane in google map once a user clicks on a marker. I can\'t find anything in the MKAnnotation class.

I am trying to add a custom image for the info pane in google map once a user clicks on a marker. I can't find anything in the MKAnnotation class. Any help would b开发者_运维问答e appreciated.


Apple's MapCallouts code sample demonstrates how do do this with the callout and their Weather Map sample shows how to do custom annotation views. There documentation is really excellent and these samples are both helpful.

http://developer.apple.com/iphone/library/samplecode/MapCallouts/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009746

http://developer.apple.com/iphone/library/samplecode/WeatherMap/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009491

0

精彩评论

暂无评论...
验证码 换一张
取 消