We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3302f44 commit e2e5f69Copy full SHA for e2e5f69
samples/kyotoishibumimap.html
@@ -42,7 +42,9 @@
42
if (!o.lat || !o.lng)
43
return
44
const dms2d = function(dms) {
45
- return (Math.floor(dms) + Math.floor(dms * 100) % 100 / 60 + Math.floor(dms * 10000) % 100 / (60 * 60)).toFixed(5)
+ // return (Math.floor(dms) + Math.floor(dms * 100) % 100 / 60 + Math.floor(dms * 10000) % 100 / (60 * 60)).toFixed(5)
46
+ // 度分秒の秒の小数点以下に対応する修正
47
+ return (Math.floor(dms) + Math.floor(dms * 100) % 100 / 60 + Math.floor(dms * 10000) % 100 / (60 * 60) + Math.floor(dms * 1000000) % 100 / (60 * 60 * 100)).toFixed(6)
48
}
49
o.lat = dms2d(o.lat)
50
o.lng = dms2d(o.lng)
0 commit comments