I have an array of Marker (google maps markers) with longitude and latitude. I want to create some sort of radar like view that'll display these markers as points where I'm looking toward their directions with an angle of 45°.
Do you guys have any idea how I can say "This marker is behind me, this marker is in front of me". I guess I should apply cos and sin considering my orientation, but that's too blurry atm.
Hope you'll help :) Thanks
I assume you already know your location and orientation. You can then calculate the directions of the array of markers using computeHeading()
method of Google maps Geometry Library on your current location and the points. Then you can adjust those values based on your current orientation.