开发者

iPhone - Add annotation to My own Map

开发者 https://www.devze.com 2023-01-05 13:52 出处:网络
I have an image plan of stores of exhibitors hall. So I need to add annotation to each store in the plan, which is a jpg file.

I have an image plan of stores of exhibitors hall. So I need to add annotation to each store in the plan, which is a jpg file.

iPhone MapKit开发者_Python百科 looks like supports only world map. Are there any way I can add my own picture and add annotation to it like google map annotation.

Thanks


I don't think you can do that.

What you can do is using a UIScrollView to scroll and zoom in/out your jpg plan and use subviews to simulate annotations. That's what I would do.


MapKit does not support custom tiles, so your only option is to implement your own map using UIScrollView (and potentially CATiledLayer if the map is large / has many zoom levels).

0

精彩评论

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

关注公众号