mapbox-plugins-android icon indicating copy to clipboard operation
mapbox-plugins-android copied to clipboard

Is there any API to keep the current position always in the center of screen?

Open frankgogoland opened this issue 6 years ago • 6 comments

I had try tracking function (like tracking gps,tracking compass) .I hope there is a mode called follow mode like Baidu Map. Could anyone tell me how to realize it? thanks

frankgogoland avatar Nov 23 '19 11:11 frankgogoland

What is "follow mode like Baidu Map"? Try locationComponent.setCameraMode(CameraMode.TRACKING);

Camera mode information can be found at https://docs.mapbox.com/android/maps/overview/location-component/#cameramode.

There's also this demo app example that enables you to see what the different modes are https://docs.mapbox.com/android/maps/examples/location-component-camera-options/

langsmith avatar Nov 23 '19 23:11 langsmith

Dear Smith:

         I had try this API. it is not the real tracking gps. the FOLLOW mode means the current gps is always in the center of screen. 

 thanks

------------------ 原始邮件 ------------------ 发件人: "Langston Smith"<[email protected]>; 发送时间: 2019年11月24日(星期天) 上午7:47 收件人: "mapbox/mapbox-plugins-android"<[email protected]>; 抄送: "冰冻三尺"<[email protected]>;"Author"<[email protected]>; 主题: Re: [mapbox/mapbox-plugins-android] Is there any API to keep the current position always in the center of screen? (#1073)

What is "follow mode like Baidu Map"? Try locationComponent.setCameraMode(CameraMode.TRACKING);

Camera mode information can be found at https://docs.mapbox.com/android/maps/overview/location-component/#cameramode.

There's also this demo app example that enables you to see what the different modes are https://docs.mapbox.com/android/maps/examples/location-component-camera-options/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

frankgogoland avatar Nov 24 '19 03:11 frankgogoland

the FOLLOW mode means the current gps is always in the center of screen

do you mean by that that the user should not be able to move the map away?

sebastienrouif avatar Nov 25 '19 14:11 sebastienrouif

NO, user can move the other place with select normal mode. I suggest you download a baidmap demo .

BTW, Because abroad customer hope me to use Mapbox,so I really hope you can optimize this function. 

I use CircleManager create function to draw circle every 1 seconds. when the points arrive to 3000 points , I can move map any more.

I don't know reason.

------------------ 原始邮件 ------------------ 发件人: "Sebastien ROUIF"<[email protected]>; 发送时间: 2019年11月25日(星期一) 晚上10:39 收件人: "mapbox/mapbox-plugins-android"<[email protected]>; 抄送: "冰冻三尺"<[email protected]>;"Author"<[email protected]>; 主题: Re: [mapbox/mapbox-plugins-android] Is there any API to keep the current position always in the center of screen? (#1073)

the FOLLOW mode means the current gps is always in the center of screen do you mean by that that the user should not be able to move the map away?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

frankgogoland avatar Nov 25 '19 14:11 frankgogoland

download a baidmap demo

Can you share a link so that I can download this demo? I still don't understand what the difference will be between CameraMode.TRACKING and Baidu's follow mode.

langsmith avatar Nov 25 '19 16:11 langsmith

Yes, you can download my product in CoolMarket.

https://www.coolapk.com/apk/make.more.r2d2.cellular_pro

App will prompt  if your phone is not root.warning, please ignore it

thanks

------------------ 原始邮件 ------------------ 发件人: "Langston Smith"<[email protected]>; 发送时间: 2019年11月26日(星期二) 凌晨0:20 收件人: "mapbox/mapbox-plugins-android"<[email protected]>; 抄送: "冰冻三尺"<[email protected]>;"Author"<[email protected]>; 主题: Re: [mapbox/mapbox-plugins-android] Is there any API to keep the current position always in the center of screen? (#1073)

download a baidmap demo

Can you share a link so that I can download this demo? I still don't understand what the difference will be between CameraMode.TRACKING and Baidu's follow mode.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

frankgogoland avatar Nov 26 '19 00:11 frankgogoland