Commit 31cc275c by niuxiaolin

replace point deng

parent e8c2d124
......@@ -764,7 +764,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
x1: opts.beforeClickIcon || s,
Xi: t,
uo: t,
mo: t,
customEditor: t,
aM: p
};
_this.U.we && (this.CX(_this.U.we.controls),
......@@ -817,8 +817,8 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
_this.xe.style.width = _this.width + "px";
_this.xe.style.height = _this.height + "px";
_this.Wd = {};
_this.pe = new J(0,0);
_this.fc = new J(0,0);
_this.pe = new Point(0,0);
_this.fc = new Point(0,0);
_this.Va = 3;
_this.Bc = 0;
_this.NB = s;
......@@ -868,7 +868,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
}, 1E3),
K.load("mapclick", function() {
window.MPC_Mgr = window.MPC_Mgr || {};
window.MPC_Mgr[c.ea] = new Wa(_this)
window.MPC_Mgr[_this.ea] = new Wa(_this)
}, p));
Xa() && K.load("oppc", function() {
_this.hu()
......@@ -1446,14 +1446,14 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
this.setNormalMapDisplay(t);
this.addEventListener("hidecopyright", function() {
c.bk.aa();
c.U.mo = !!a.customEditor;
c.U.mo === t && c.tE(new P(1,1))
c.U.customEditor = !!a.customEditor;
c.U.customEditor === t && c.tE(new P(1,1))
});
c.bk && c.bk.aa();
this.U.mo = !!a.customEditor;
this.U.customEditor = !!a.customEditor;
this.U.M4 = !!a.sharing;
this.U.s4 = !!a.preview;
this.U.mo === t && this.tE(new P(1,1));
this.U.customEditor === t && this.tE(new P(1,1));
K.load("hotspot", function() {
c.hu()
}, p);
......@@ -1482,7 +1482,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
c.MW(b, g)
}
}
c.JX()
c.onupdatestylesOroninitindoorlayer()
}
}
;
......@@ -1689,18 +1689,18 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
code: this.vr
}
},
os: function() {
getPanorama: function() {
this.W.zn();
return this.W
},
GX: function(a) {
initIndoorLayer: function(a) {
Pa.setMaxZoom(a.maxZoom || 19);
var b = new Q("oninitindoorlayer");
b.Te = a;
this.dispatchEvent(b);
this.U.Xi = t
},
JX: function(a) {
onupdatestylesOroninitindoorlayer: function(a) {
if (this.U.Xi) {
var b = new Q("onupdatestyles");
this.dispatchEvent(b)
......@@ -1713,6 +1713,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
},
setNormalMapDisplay: function(a) {
this.U.aM = a;
if(!this.oh.hc){
return;
}
this.oh.hc.parentElement.style.display = a ? "block" : "none"
},
setPanorama: function(a) {
......@@ -1875,11 +1878,11 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
c !== l && (e[parseInt(c, 10)] = p);
return e
},
RN: function(a, b) {
window.Tt[b] = a;
RN: function(style, b) {
window.Tt[b] = style;
if (!window.qh[b])
for (var c = this.Db.aj(), e = this.Db.Xh(); c <= e; c++)
window.qh[c] || (window.Tt[c] = a)
window.qh[c] || (window.Tt[c] = style)
},
ZE: function(a) {
if (!window.qh[a])
......@@ -2159,19 +2162,19 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
vB: {
"\u5317\u4eac": {
Dx: "bj",
o: new J(116.403874,39.914889)
o: new Point(116.403874,39.914889)
},
"\u4e0a\u6d77": {
Dx: "sh",
o: new J(121.487899,31.249162)
o: new Point(121.487899,31.249162)
},
"\u6df1\u5733": {
Dx: "sz",
o: new J(114.025974,22.546054)
o: new Point(114.025974,22.546054)
},
"\u5e7f\u5dde": {
Dx: "gz",
o: new J(113.30765,23.120049)
o: new Point(113.30765,23.120049)
}
},
fontFamily: "arial,sans-serif"
......@@ -3185,7 +3188,6 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
return c
}
;function pa(a, b) {
if (/^http/.test(a)) return;//修改 屏蔽ak验证,若调用外部资源直接返回
if (b) {
var c = (1E5 * Math.random()).toFixed(0);
BMap._rd["_cbk" + c] = function(a) {
......@@ -3289,7 +3291,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
RO: 0,
Bp: 1
},
pK: function() {
eventList: function() {
var a = "canvablepath";
if (!I() || !Ob())
Nb() || (Mb() ? a = "vmlcontext" : Ob());
......@@ -3335,22 +3337,22 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
OB: t,
Pd: {
il: {},
Wm: [],
layoutName: [],
qv: []
},
load: function(a, b, c) {
var e = this.lb(a);
load: function(eventName, b, c) {
var e = this.lb(eventName);
if (e.Ke == this.tj.Bp)
c && b();
else {
if (e.Ke == this.tj.BF) {
this.nJ(a);
this.EM(a);
this.nJ(eventName);
this.addLayoutName(eventName);
var f = this;
f.OB == t && (f.OB = p,
setTimeout(function() {
for (var a = [], b = 0, c = f.Pd.Wm.length; b < c; b++) {
var e = f.Pd.Wm[b]
for (var a = [], b = 0, c = f.Pd.layoutName.length; b < c; b++) {
var e = f.Pd.layoutName[b]
, n = "";
ja.Zx.iJ(e) ? n = ja.Zx.get(e) : (n = "",
a.push(e + "_" + Tb[e]));
......@@ -3360,33 +3362,34 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
})
}
f.OB = t;
f.Pd.Wm.length = 0;
// 0 == a.length ? f.XJ() : pa(f.tF.$O + "&mod=" + a.join(","))
console.log(a);
if(a.length>0){
for(i=0;i<a.length;i++){
mf=bmapcfg.home+ "modules/"+a[i]+'.js';
pa(mf);
console.log('load moudle:'+mf);
}
}
f.Pd.layoutName.length = 0;
0 == a.length ? f.XJ() : pa(f.tF.$O + "&mod=" + a.join(","))
// console.log(a);
// if(a.length>0){
// for(i=0;i<a.length;i++){
// mf=bmapcfg.home+ "modules/"+a[i]+'.js';
// pa(mf);
// console.log('load moudle:'+mf);
// }
// }
}, 1));
e.Ke = this.tj.RO
}
e.nu.push(b)
}
},
nJ: function(a) {
if (a && this.pK()[a])
for (var a = this.pK()[a], b = 0; b < a.length; b++)
nJ: function(eventName) {
if (eventName && this.eventList()[eventName])
for (var a = this.eventList()[eventName], b = 0; b < a.length; b++)
this.nJ(a[b]),
this.Pd.il[a[b]] || this.EM(a[b])
this.Pd.il[a[b]] || this.addLayoutName(a[b])
},
EM: function(a) {
for (var b = 0; b < this.Pd.Wm.length; b++)
if (this.Pd.Wm[b] == a)
addLayoutName: function(eventName) {
for (var b = 0; b < this.Pd.layoutName.length; b++)
if (this.Pd.layoutName[b] == eventName)
return;
this.Pd.Wm.push(a)
this.Pd.layoutName.push(eventName)
console.log(eventName)
},
jZ: function(a, b) {
var c = this.lb(a);
......@@ -4062,8 +4065,8 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
function hb(a, b) {
a && !b && (b = a);
this.Ge = this.Vd = this.Le = this.Xd = this.Al = this.ll = s;
a && (this.Al = new J(a.lng,a.lat),
this.ll = new J(b.lng,b.lat),
a && (this.Al = new Point(a.lng,a.lat),
this.ll = new Point(b.lng,b.lat),
this.Le = a.lng,
this.Xd = a.lat,
this.Ge = b.lng,
......@@ -4116,7 +4119,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
return this.lj() ? new J(0,0) : new J(Math.abs(this.Ge - this.Le),Math.abs(this.Vd - this.Xd))
}
});
function J(a, b) {
function Point(a, b) {
isNaN(a) && (a = Lb(a),
a = isNaN(a) ? 0 : a);
bb(a) && (a = parseFloat(a));
......@@ -4126,11 +4129,11 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
this.lng = a;
this.lat = b
}
J.iL = function(a) {
Point.iL = function(a) {
return a && 180 >= a.lng && -180 <= a.lng && 74 >= a.lat && -74 <= a.lat
}
;
J.prototype.oc = function(a) {
Point.prototype.oc = function(a) {
return a && this.lat == a.lat && this.lng == a.lng
}
;
......@@ -4222,7 +4225,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
var b, c;
a.lng = this.VC(a.lng, -180, 180);
a.lat = this.aD(a.lat, -85, 85);
b = new J(a.lng,a.lat);
b = new Point(a.lng,a.lat);
for (var e = 0; e < this.cu.length; e++)
if (b.lat >= this.cu[e]) {
c = this.CF[e];
......@@ -4235,7 +4238,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
break
}
a = this.sJ(a, c);
return a = new J(a.lng,a.lat)
return a = new Point(a.lng,a.lat)
},
sJ: function(a, b) {
if (a && b) {
......@@ -4244,7 +4247,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
, e = b[2] + b[3] * e + b[4] * e * e + b[5] * e * e * e + b[6] * e * e * e * e + b[7] * e * e * e * e * e + b[8] * e * e * e * e * e * e
, c = c * (0 > a.lng ? -1 : 1)
, e = e * (0 > a.lat ? -1 : 1);
return new J(c,e)
return new Point(c,e)
}
},
jf: function(a, b, c, e) {
......@@ -5438,20 +5441,20 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
this.tk = 0;
this.yD = p;
this.bV = {};
this.An = this.bq(1);
this.hg = this.bq(2);
this.ml = this.bq(3);
this.Hg = this.bq(4);
this.An = this.createAbsDiv(1);
this.hg = this.createAbsDiv(2);
this.ml = this.createAbsDiv(3);
this.Hg = this.createAbsDiv(4);
baiduInstance.platform.appendChild(this.An);
baiduInstance.platform.appendChild(this.hg);
baiduInstance.platform.appendChild(this.ml);
baiduInstance.platform.appendChild(this.Hg);
var b = 256 * Math.pow(2, 15)
, c = 3 * b
, a = S.Gb(new J(180,0)).lng
, a = S.Gb(new Point(180,0)).lng
, c = c - a
, b = -3 * b
, e = S.Gb(new J(-180,0)).lng;
, e = S.Gb(new Point(-180,0)).lng;
this.dA = a;
this.eA = e;
this.aA = c + (e - b);
......@@ -5515,7 +5518,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
}
this.kt()
},
bq: function(a) {
createAbsDiv: function(a) {
var b = O("div");
b.style.position = "absolute";
b.style.overflow = "visible";
......@@ -6100,17 +6103,17 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
a.zn()
}
var Tc = !z.ga.ma || 8 < z.ga.ma;
function Mc(a) {
function TileLayer(a) {
this.Te = a || {};
this.OU = this.Te.copyright || s;
this.F_ = this.Te.transparentPng || t;
this.Tv = this.Te.baseLayer || t;
this.zIndex = this.Te.zIndex || 0;
this.ea = Mc.uR++
this.ea = TileLayer.uR++
}
Mc.uR = 0;
z.lang.wa(Mc, z.lang.Ga, "TileLayer");
z.extend(Mc.prototype, {
TileLayer.uR = 0;
z.lang.wa(TileLayer, z.lang.Ga, "TileLayer");
z.extend(TileLayer.prototype, {
xa: function(a, b) {
this.Tv && (this.zIndex = -100);
this.map = a;
......@@ -6147,7 +6150,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
}
});
function Uc(a) {
Mc.call(this, a);
TileLayer.call(this, a);
this.m = a || {};
this.pL = p;
if (this.m.predictDate) {
......@@ -6158,9 +6161,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
}
this.vT = BMap.url.proto + BMap.url.domain.traffic + "/traffic/"
}
Uc.prototype = new Mc;
Uc.prototype = new TileLayer;
Uc.prototype.xa = function(a, b) {
Mc.prototype.xa.call(this, a, b);
TileLayer.prototype.xa.call(this, a, b);
this.M = a
}
;
......@@ -6213,9 +6216,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
c.Qd()
})
}
pb.prototype = new Mc;
pb.prototype = new TileLayer;
pb.prototype.xa = function(a, b) {
Mc.prototype.xa.call(this, a, b);
TileLayer.prototype.xa.call(this, a, b);
this.M = a
}
;
......@@ -7569,9 +7572,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
qd = 8;
rd = 15;
sd = 16;
function Lc(a, b, c) {
function Lc(map, b, c) {
c = c || {};
this.M = a;
this.map = map;
this.Bv = b;
this.Vc = b.JM;
this.$a = {
......@@ -7581,7 +7584,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
http: ["http://online0.map.bdimg.com/pvd/?qt=vtile", "http://online1.map.bdimg.com/pvd/?qt=vtile", "http://online2.map.bdimg.com/pvd/?qt=vtile", "http://online3.map.bdimg.com/pvd/?qt=vtile", "http://online4.map.bdimg.com/pvd/?qt=vtile"],
https: ["https://ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile", "https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile", "https://ss2.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile", "https://ss3.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/pvd/?qt=vtile", "https://ss0.bdstatic.com/8bo_dTSlQ1gBo1vgoIiO_jowehsv/pvd/?qt=vtile"]
},
oD: c.iconUrls || ["https://ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/", "https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/"],
iconUrls: c.iconUrls || ["https://ss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/", "https://ss1.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/sty/map_icons2x/"],
DE: p
};
this.XA = "";
......@@ -7604,15 +7607,15 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
Yc[a] ? a = Yc[a] : (b = new Zc(a,l),
a = Yc[a] = b);
this.Bd = a;
this.M.Bd = this.Bd
this.map.Bd = this.Bd
}
window.VectorIndoorTileLayer = "VectorIndoorTileLayer";
fa = Lc.prototype;
fa.xa = function() {
var a = this.M
var a = this.map
, b = a.oh;
if (!this.Rn) {
var c = b.bq(this.$a.zIndex);
var c = b.createAbsDiv(this.$a.zIndex);
c.style.WebkitTransform = "translate3d(0px, 0px, 0)";
this.Rn = c
}
......@@ -7812,7 +7815,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
i = this.ow[g],
i = a + "_" + i[0] + "_" + i[1] + "_" + e + "_" + c,
this.Ug[i] && (f[i] = this.Ug[i],
this.$E && this.Bv.cC.bC(this.Ug[i].T_, this.Ug[i].m_, this.Ug[i].Ol, this.Ug[i].Am, this.Ug[i].OD, this.Bd.Id(this.Ug[i].OD), this.Bd.XC(this.Ug[i].OD), this.$a.oD));
this.$E && this.Bv.cC.bC(this.Ug[i].T_, this.Ug[i].m_, this.Ug[i].Ol, this.Ug[i].Am, this.Ug[i].OD, this.Bd.Id(this.Ug[i].OD), this.Bd.XC(this.Ug[i].OD), this.$a.iconUrls));
this.Ug = f
} else {
this.Ls = o.length;
......@@ -7888,7 +7891,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
Am: c,
OD: n
},
k.Bv.cC.bC(a, f, b, c, n, k.Bd.Id(n), k.Bd.XC(n), k.$a.oD),
k.Bv.cC.bC(a, f, b, c, n, k.Bd.Id(n), k.Bd.XC(n), k.$a.iconUrls),
k.$a.DE) {
n = [];
n.n_ = [b, c, e];
......@@ -7937,7 +7940,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
var c = a.Bd
, e = b.ka()
, b = c.gs(b.ka());
a.Bv.cC.MJ(a.Fr, a.$a.oD, a.Qo, c.Id(e), Math.pow(2, e - b), e)
a.Bv.cC.MJ(a.Fr, a.$a.iconUrls, a.Qo, c.Id(e), Math.pow(2, e - b), e)
}
}
}
......@@ -8092,7 +8095,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
dy: 256,
OE: c.textColor || "black",
vC: c.errorImageUrl || "",
fb: new hb(new J(-21364736,-16023552),new J(23855104,19431424)),
fb: new hb(new Point(-21364736,-16023552),new Point(23855104,19431424)),
Pc: c.projection || new S
};
1 <= this.$e.length && (this.$e[0].Tv = p);
......@@ -10893,11 +10896,11 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
BMap.Map = Map;
BMap.Hotspot = kb;
BMap.MapType = Dd;
BMap.Point = J;
BMap.Point = Point;
BMap.Pixel = R;
BMap.Size = P;
BMap.Bounds = hb;
BMap.TileLayer = Mc;
BMap.TileLayer = TileLayer;
BMap.Projection = jc;
BMap.MercatorProjection = S;
BMap.PerspectiveProjection = jb;
......@@ -11024,8 +11027,8 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
setMapStyle: mapPrototype.kt,
enable3DBuilding: mapPrototype.ro,
disable3DBuilding: mapPrototype.lV,
getPanorama: mapPrototype.os,
initIndoorLayer: mapPrototype.GX,
getPanorama: mapPrototype.getPanorama,
initIndoorLayer: mapPrototype.initIndoorLayer,
setNormalMapDisplay: mapPrototype.setNormalMapDisplay,
setMapStyleV2: mapPrototype.setMapStyleV2,
setBMapCopyrightOffset: mapPrototype.tE,
......@@ -11192,7 +11195,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
getText: Of.eD,
setText: Of.ut
});
J.prototype.equals = J.prototype.oc;
Point.prototype.equals = Point.prototype.oc;
R.prototype.equals = R.prototype.oc;
P.prototype.equals = P.prototype.oc;
mergeAttribute(window, {
......
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