Merge pull request #330 from Manawyrm/master

Fix JS error when using hamqth
这个提交包含在:
Peter Goodhall 2019-07-25 10:10:20 +01:00 提交者 GitHub
当前提交 827c565c36
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

@ -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 {