Reputation: 67
Hello everyone I have to show my pointer to Qibla direction as given in attached image from my current location. I have lat/lang of Qibla and also lat/lang of my current position.
how i will do it?.
Thanks in advance.
Upvotes: 0
Views: 1337
Reputation: 4784
So you need 2 markers, one facing north, and one pointing to Qibla.
For the second marker, you can use this marker setRotation function to rotate the marker to point to the Qibla.
Note that rotation of the marker is in degrees clockwise about the marker's anchor point, and I saw you have a counter clockwise degree listed, so be sure to convert that.
Upvotes: 2