Adjust RMMarker to user's current location automatically in oflline maps using MBTiles

这一生的挚爱 提交于 2019-12-25 05:12:25

问题


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.


回答1:


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).




回答2:


Use setLocation:location method we get Latitude longitude while moving using Cellular data. The marker follows the location.



来源:https://stackoverflow.com/questions/25880687/adjust-rmmarker-to-users-current-location-automatically-in-oflline-maps-using-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!