[QRBCalc] Added fitbounds so that map is centered and zoomed on the path.
这个提交包含在:
父节点
72d128bd76
当前提交
41a72d3f51
共有 1 个文件被更改,包括 4 次插入 和 0 次删除
|
|
@ -595,6 +595,10 @@ function newpath(latlng1, latlng2, locator1, locator2) {
|
|||
}
|
||||
|
||||
const map = new L.map('mapqrb').setView([30, 0], 1.5);
|
||||
map.fitBounds([
|
||||
[latlng1[0], latlng1[1]],
|
||||
[latlng2[0], latlng2[1]]
|
||||
]);
|
||||
|
||||
var maidenhead = L.maidenheadqrb().addTo(map);
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用