¡@

Home 

javascript Programming Glossary: angdist

How to add markers on Google Maps polylines based on distance along the line?

http://stackoverflow.com/questions/2698112/how-to-add-markers-on-google-maps-polylines-based-on-distance-along-the-line

lat2 Math.sin lat1 Math.cos lat2 Math.cos dLon var angDist distance 6371000 Earth's radius. Calculate the destination point.. source and bearing. lat2 Math.asin Math.sin lat1 Math.cos angDist Math.cos lat1 Math.sin angDist Math.cos brng lon2 lon1 Math.atan2.. Math.sin lat1 Math.cos angDist Math.cos lat1 Math.sin angDist Math.cos brng lon2 lon1 Math.atan2 Math.sin brng Math.sin angDist..