Fix JS error when using hamqth
这个提交包含在:
父节点
eac07da0c0
当前提交
89f97531fe
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -257,7 +257,7 @@ $(document).ready(function(){
|
||||||
|
|
||||||
// Set Map to Lat/Long
|
// Set Map to Lat/Long
|
||||||
markers.clearLayers();
|
markers.clearLayers();
|
||||||
if (typeof result.latlng !== "undefined") {
|
if (typeof result.latlng !== "undefined" && result.latlng !== false) {
|
||||||
var marker = L.marker([result.latlng[0], result.latlng[1]]);
|
var marker = L.marker([result.latlng[0], result.latlng[1]]);
|
||||||
mymap.setView([result.latlng[0], result.latlng[1]], 8);
|
mymap.setView([result.latlng[0], result.latlng[1]], 8);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用