Commit fe26f3f5 by niuxiaolin

latest ui 08/09/2019 12:28:53

parent 23df14da
...@@ -7868,8 +7868,8 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -7868,8 +7868,8 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
, q = q + a.XA + "v=" + w + "&udt=" + v + "&fn=window." + y , q = q + a.XA + "v=" + w + "&udt=" + v + "&fn=window." + y
, w = n[o] + "&" + q , w = n[o] + "&" + q
//xiaolin //xiaolin
, w = n[o] + "&param=" + window.encodeURIComponent(Kb(q)); //, w = n[o] + "&rand="+Math.random()+"&param=" + window.encodeURIComponent(Kb(q));
// , w = n[o] + "/" + window.encodeURIComponent(Kb(q)); , w = n[o] + "/" + window.encodeURIComponent(Kb(q));
window[y] = function(a) { window[y] = function(a) {
clearTimeout(i[g].Ik); clearTimeout(i[g].Ik);
...@@ -7934,10 +7934,14 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -7934,10 +7934,14 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
pa(w); pa(w);
//xiaolin //xiaolin
//改为异步方式处理数据 //改为异步方式处理数据
httpGetAsync(w,function(body){ // httpGetAsync(w,function(body){
// try{
eval(JSON.parse(body).data) // eval(JSON.parse(body).data)
}) // }catch{
// console.log(JSON.parse(body).data)
// }
// })
//改为异步请求 //改为异步请求
i[g].status = "loading"; i[g].status = "loading";
...@@ -11486,3 +11490,15 @@ function httpGetAsync(theUrl, callback) ...@@ -11486,3 +11490,15 @@ function httpGetAsync(theUrl, callback)
xmlHttp.open("GET", theUrl, true); // true for asynchronous xmlHttp.open("GET", theUrl, true); // true for asynchronous
xmlHttp.send(null); xmlHttp.send(null);
} }
window.onmousewheel=function(e){
var curZoom = map.getZoom();
if(e.deltaY>0){
map.setZoom(curZoom-1);
}else{
map.setZoom(curZoom+1);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment