【问题标题】:Zoom in and out in mapKit using slider使用滑块放大和缩小 mapKit
【发布时间】:2016-11-24 00:17:07
【问题描述】:

我有一个地图视图,其中显示了用户的当前位置以及我拥有的所有其他位置。我想使用滑块放大和缩小, 例如,用户想要显示距离他当前位置 1 公里的位置。怎么能实现呢?谢谢

【问题讨论】:

    标签: ios mapkit core-location uislider


    【解决方案1】:

    您将不得不实施某种偏差,但这是我过去使用的(使用 Google 的 MapViewKit):

    mapView.animate(toZoom: MySlider.Value * Bias)
    

    【讨论】:

    • 对不起,我不明白。 Bias应该基于什么?如何确定?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-19
    相关资源
    最近更新 更多