ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

Cannot show myLocation bearing #263

Closed omkarkhalipe closed 4 years ago

omkarkhalipe commented 4 years ago

I want to show maker with current direction user is facing. like this https://i.stack.imgur.com/sACLT.png I am using current code, and it works on 1-2 phones in Android but does not work on other is Android and iOS

let mapOptions: GoogleMapOptions = {
          camera: {
             target: {
               lat:this.lat,
               lng: this.lon
             },
             zoom: 22,
             tilt: 80
           },
           compass: true,
          myLocation: true,
          myLocationButton: true,
          mapToolbar: true,

        };

Is there a way to make it work? I am using Ionic 3

wf9a5m75 commented 4 years ago

The location icon is under the Google Maps native API, not this plugin. It means no way to control it.

omkarkhalipe commented 4 years ago

I don't want to change the location icon but show the direction use is facing along with the icon. If that is not possible, can we do it with custom marker?

wf9a5m75 commented 4 years ago

As I said, that is out of control.