Mansoor Ahmad
Mansoor Ahmad

Reputation: 67

Android how to point Qibla direction on Google map

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. enter image description here

Upvotes: 0

Views: 1337

Answers (1)

kaho
kaho

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

Related Questions