3

I'm using Google Map developer, but my position marker doesn't show the orientation or bearing of the calculated position.

Google Map library: compile 'com.google.android.gms:play-services-maps:8.1.0'

enter image description here enter image description here

Juan Cortés
  • 20,634
  • 8
  • 68
  • 91
Always Wei
  • 281
  • 2
  • 4
  • look two photo,you will understand my question better. – Always Wei Nov 05 '15 at 09:13
  • That's google map navigation app.it will not same in your application if your enable mylocation in your app though. – Anoop M Maddasseri Nov 05 '15 at 09:17
  • i already set location enable true,and i try to set every ui setting,but it not works.the location still not arrow...and i have looked other apps have arrows.@AnoopM – Always Wei Nov 05 '15 at 09:23
  • In short you will not get the arrow by using google map until your customizing such features.it's not the default. – Anoop M Maddasseri Nov 05 '15 at 09:27
  • http://stackoverflow.com/questions/17338900/how-to-create-a-location-arrow-marker-with-sensor-bearing-in-android-google-maps The problem here was clearly the inability to phrase the question properly, this question and answers should help you. Let me retag this for you – Juan Cortés Nov 05 '15 at 09:33
  • what do you means?is there any way to get arrow?i try to add Sensor listener,but just the map rotate,how to show the arrow?@AnoopM – Always Wei Nov 05 '15 at 09:36
  • The arrow is not *added* to the position marker. It's a whole bitmap, which includes the arrow, and is *rotated* according to what the `Location.getBearing()` method returns. Read the question I linked to – Juan Cortés Nov 05 '15 at 09:39
  • do you means i need add a market like the arrow,and add the sensor listener to change the market rotation,i use location.getBearing() on onMyLocationChange return 0. @JuanCortés – Always Wei Nov 05 '15 at 10:14

0 Answers0