开发者

MapKit lines and polygons

I have a map and line (poly-line) on it. I'm trying to make a smooth polygon around this line. The problem I'm f开发者_JAVA百科acing is how to create that polygon look smooth with rounded ends. any suggestions/solutions? I've tried to draw another line over existing one with different thickness, but it doesn't work well with zooming...


In MKOverlayPathView which is a superclass of MKPolylineView there is a property called lineCap. Set it to

kCGLineCapRound

check here: http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKOverlayPathView_class/Reference/Reference.html

Hope it helps.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜