Commit fd038c65 authored by fengruiyu's avatar fengruiyu

js修改

parent 6cefe223
...@@ -267,8 +267,15 @@ var vm = new Vue({ ...@@ -267,8 +267,15 @@ var vm = new Vue({
var point = B_MAP.getCenter(); var point = B_MAP.getCenter();
this.initCenter(point) this.initCenter(point)
var tog=false;
if (zoom >= 8){
tog=true
}//小于9不切换
if(point.lng>180||point.lng<-180){
tog=true;
}
if (zoom < 8)//小于9不切换 if(tog==false)
return; return;
getLocation(point, function (res) { getLocation(point, function (res) {
...@@ -307,6 +314,7 @@ var vm = new Vue({ ...@@ -307,6 +314,7 @@ var vm = new Vue({
window.onload = function () { window.onload = function () {
// console.log("window.load_+++++++++++=")170.89184781519282,-9.108152184807182 // console.log("window.load_+++++++++++=")170.89184781519282,-9.108152184807182
allIsOk(); allIsOk();
//vm.initZsMap('{"lng": 116.62140839829881, "lat": 39.86241650494492}')
} }
......
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