开发者

Drawing route/lines on a custom map image (iphone)

I have a custom map image of an area.. There are about 9 regions and the number of distinct lines needed is only 11 (based on all possible routes).

What is the best way to draw a route on th开发者_如何学运维e map?

The brute force/hacky way is to create static images of every route possible- insane as it amounts to over a million images. Another way is to have layered images with the lines as images on top of the map (is this possible? Would zooming mess it up?)... Any other suggestions to tackle this? I could programmatically draw lines on top of the map but would it be responsive to zooming and such?

Note: The map image is a vectored image (svg) and does not contain GPS coordinates

Thank you!


You'll probably want to check out coreGraphics, it's perfectly suited for this task. Zooming and all.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜