stamen / modestmaps-js

Modest Maps javascript port
http://modestmaps.com
566 stars 152 forks source link

MM.Location bearing method #125

Closed chrisforbes closed 12 years ago

chrisforbes commented 12 years ago

Given two locations and an interpolation factor, return the bearing of the tangent to the great circle at that point.

Most of the code to support this already exists in MM.Location.interpolate, just needs rearranging.

tmcw commented 12 years ago

Do you think you'll be able to work on a path for this? If it comes together as a refactoring of the interpolate function (that needs some reformatting / docs anyway), that might be a positive change overall.

chrisforbes commented 12 years ago

OK, i'll clean up the version I have in my project.

tmcw commented 12 years ago

Committed in separate pull req.