简体   繁体   中英

How can I get the normal Google Maps blue current location marker?

I know how i can get my current location and how to place a marker on given coordinates. What I am trying to figure out is how I can get that blue round current location marker that you get in your normal Google Maps app. Which moves as the device changes location fluently without any lag and shows you the direction you are facing. I will add an image to make it clearer. I am guessing it also uses some sort of animation to show the changing location fluently. I am working on AndroidStudio.

在此处输入图片说明

mMap.setMyLocationEnabled(true);

帮我解决了这个问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM