MKPolylineRenderer produces jagged, unequal paths

后端 未结 6 750
天涯浪人
天涯浪人 2020-12-17 22:10

I am using the iOS 7 MapKit APIs to produce 3D camera movements on a map that displays an MKDirectionsRequest-produced path. The path is rendered by MKOverlayRenderer like s

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 22:30

    once the line is drawn on the map it may not get re-rendered if the user zooms. Or, if it does, it may get re-rendered before the user finishes zooming. In this case the width after zooming will no longer reflect your desired width in meters. One way to deal with this is to override regionDidChangeAnimated and remove the overlay and add it back.

提交回复
热议问题