在JavaScript /谷歌地图磁偏角 [英] Magnetic declination in JavaScript / Google Maps
本文介绍了在JavaScript /谷歌地图磁偏角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Google Map Javascript应用程序的环境中,获得特定Lat / Lon磁偏角的最佳方式是什么?
- 在JS中似乎没有简单的算法,或者我错了?
- 有没有Google Maps API可以确定这一点的方法,我还没有找到...
- 可以使用的Web服务..我发现 WebSites 提供此功能,但不支持API。 另请参阅
解决方案 / div>
他们有这个碎片。对于谷歌地图与源代码混搭,请参阅: -
http://www.bdcc.co.uk/Gmaps/Services.htm
In the context of a Google Map Javascript application, what is the best way to get the magnetic declination for a certain Lat/Lon?
- There seems to be no "easy" algorithm for that in JS, or am I wrong?
- Is there a way with Google Maps API to determine this, I haven't found one...
- A Web Service which can be used .. I have found WebSites offering this, but no API.
- Also see here, there they use a JavaScript class for this (see comment)
解决方案
They have shard this. For Google maps mashup with source see:-
http://www.bdcc.co.uk/Gmaps/Services.htm
这篇关于在JavaScript /谷歌地图磁偏角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文