Skobbler地图无法使用zoomToRouteWithInsets进行缩放 [英] Skobbler map not zooming with zoomToRouteWithInsets
问题描述
在skobbler地图中,我计算了一条路线.如果我在地图上拖动了一些地方,则在此之后,单击按钮,我要查看我的路线.在给定的这些方法的两倍中,将地图缩放到当前计算出的路线.'.
In the skobbler map, I have calculated a route. If I drag some where in the map, After that in button Click I want to see my route. In the doumentation given these method for ' Zooms the map to the current calculated route. '.
[[SKRoutingService sharedInstance] zoomToRouteWithInsets:UIEdgeInsetsMake(100, 100, 0, 0)];
我已经给出了,但是,当我调用 zoomToRouteWithInsets
时,在地图上拖动后,仅显示路线.
I have given this but, When I called zoomToRouteWithInsets
After drag on the map , then only it showing the route.
推荐答案
zoomToRouteWithInsets中存在一个错误,该错误将在以后的版本中修复.
There is a bug with zoomToRouteWithInsets that will be fixed in a future version.
当前的解决方法是调用该方法两次(使用相同的参数),它将完成此工作:
The current workaround is to call the method twice (with the same parameters) and it will do the job:
[[SKRoutingService sharedInstance] zoomToRouteWithInsets:UIEdgeInsetsMake(100, 100, 0, 0)];
[[SKRoutingService sharedInstance] zoomToRouteWithInsets:UIEdgeInsetsMake(100, 100, 0, 0)];
这篇关于Skobbler地图无法使用zoomToRouteWithInsets进行缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!