OpenLayers is completely free, Open Source JavaScript which makes it easy to put a dynamic map in any web page.
I am using Openlayers in my project. Here is the problem which I am facing in it:
Using OpenLayers I am able to get Longitude and Latitude but I want the angle from the Openlayers.
So is there any API available in OpenLayer which converts the lat and long to angle. I did try to find API in the openlayers “Util” section but was not able to get it.
ofcourse there are many math functions which can do that but I am curious to get it through Openlayers only.
You can extend
feature.geometryor write util function for angle calculation, for example: