Start a new topic

Calculate marker angle from the user's current location

Calculate marker angle from the user's current location


Hy dude, check out this js library: http://www.movable-type.co.uk/scripts/latlong.html

No there is not. You however you have all the information avaiable to calculate the angle inside your javascript.

One possible solution would be:


Convert user lcoation and POI location to UTM (js apis are available that do that for you) -> gives you a cartesian coordinate system

Use angular functions to calculate the angle between these two points

Is there a function to calculate marker angle from the user's current location using the architect.js?
Login or Signup to post a comment