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.