使用MBTiles在oflline地图中自动调整RMMarker到用户的当前位置 [英] Adjust RMMarker to user's current location automatically in oflline maps using MBTiles

查看:189
本文介绍了使用MBTiles在oflline地图中自动调整RMMarker到用户的当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用MBTiles将RMMarker调整为用户的当前位置而无需点击地图吗?有没有任何方法或API可以在没有WiFi / 3G的mapbox中实现这一点?我只是想像谷歌地图一样将RMMarker与用户一起移动。

Can i adjust RMMarker to user's current location using MBTiles without tapping on map? Is there any method or API to achieve this in mapbox without WiFi/3G? I just wanted to move RMMarker along with user just like in google maps.

推荐答案

你可能想要使用 - [RMMapView setUserTrackingMode:] ,它使用核心位置,即使在离线时也可以仅使用GPS操作(虽然精度较低)。

You will probably want to use -[RMMapView setUserTrackingMode:], which uses Core Location and can operate with just the GPS even when offline (though with less accuracy).

这篇关于使用MBTiles在oflline地图中自动调整RMMarker到用户的当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆