在JavaScript /谷歌地图磁偏角 [英] Magnetic declination in JavaScript / Google Maps

查看:160
本文介绍了在JavaScript /谷歌地图磁偏角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Google Map Javascript应用程序的环境中,获得特定Lat / Lon磁偏角的最佳方式是什么?


  1. 在JS中似乎没有简单的算法,或者我错了?

  2. 有没有Google Maps API可以确定这一点的方法,我还没有找到...

  3. 可以使用的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?

  1. There seems to be no "easy" algorithm for that in JS, or am I wrong?
  2. Is there a way with Google Maps API to determine this, I haven't found one...
  3. A Web Service which can be used .. I have found WebSites offering this, but no API.
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆