diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..303629c --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +DevProject +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5701189 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "Vue.volar" + ] +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..b6d6d3d --- /dev/null +++ b/index.html @@ -0,0 +1,33 @@ + + +
+ + + + + + + + +'); + if (!(1 > b)) { + if (this.page >= this.Xf) { + var e; + a.push('\u9996\u9875'.replace("{temp1}", "BMap.I('" + this.aa + "').toPage(1);")) + } + a.push('\u4e0a\u4e00\u9875'.replace("{temp2}", "BMap.I('" + this.aa + "').toPage(" + b + ");")) + } + if (this.page < this.Xf) + e = 0 == this.page % this.Xf ? this.page - this.Xf - 1 : this.page - this.page % this.Xf + 1, + b = e + this.Xf - 1; + else { + e = Math.floor(this.Xf / 2); + var f = this.Xf % 2 - 1 + , b = this.Kd > this.page + e ? this.page + e : this.Kd; + e = this.page - e - f + } + this.page > this.Kd - this.Xf && this.page >= this.Xf && (e = this.Kd - this.Xf + 1, + b = this.Kd); + for (f = e; f <= b; f++) + 0 < f && (f == this.page ? a.push('' + f + "") : 1 <= f && f <= this.Kd && (e = '[' + f + "]", + a.push(e.replace("{temp3}", "BMap.I('" + this.aa + "').toPage(" + f + ");")))); + c > this.Kd || a.push('\u4e0b\u4e00\u9875'.replace("{temp4}", "BMap.I('" + this.aa + "').toPage(" + c + ");")); + a.push("
"); + return a.join("") + }, + toPage: function(a) { + a = a ? a : 1; + "function" == typeof this.qK && (this.qK(a), + this.page = a); + this.update && this.va() + } + }); + function cb(a, b) { + W.call(this, a, b); + b = b || {}; + b.renderOptions = b.renderOptions || {}; + this.Np(b.pageCapacity); + "undefined" != typeof b.renderOptions.selectFirstResult && !b.renderOptions.selectFirstResult ? this.UC() : this.oD(); + this.ya = []; + this.yf = []; + this.mb = -1; + this.Pa = []; + var c = this; + K.load("local", function() { + c.Nz() + }, q) + } + z.ta(cb, W, "LocalSearch"); + cb.fq = 10; + cb.k1 = 1; + cb.En = 100; + cb.zG = 2E3; + cb.HG = 1E5; + z.extend(cb.prototype, { + search: function(a, b) { + this.Pa.push({ + method: "search", + arguments: [a, b] + }) + }, + an: function(a, b, c) { + this.Pa.push({ + method: "searchInBounds", + arguments: [a, b, c] + }) + }, + Jp: function(a, b, c, e) { + this.Pa.push({ + method: "searchNearby", + arguments: [a, b, c, e] + }) + }, + Pe: function() { + delete this.Ia; + delete this.Me; + delete this.ha; + delete this.ua; + this.mb = -1; + this.Ta(); + this.j.la.Ma && (this.j.la.Ma.innerHTML = "") + }, + Am: u(), + oD: function() { + this.j.la.Ut = q + }, + UC: function() { + this.j.la.Ut = t + }, + Np: function(a) { + this.j.Jk = "number" == typeof a && !isNaN(a) ? 1 > a ? cb.fq : a > cb.En ? cb.fq : a : cb.fq + }, + qf: function() { + return this.j.Jk + }, + toString: ca("LocalSearch") + }); + var Id = cb.prototype; + T(Id, { + clearResults: Id.Pe, + setPageCapacity: Id.Np, + getPageCapacity: Id.qf, + gotoPage: Id.Am, + searchNearby: Id.Jp, + searchInBounds: Id.an, + search: Id.search, + enableFirstResultSelection: Id.oD, + disableFirstResultSelection: Id.UC + }); + function Jd(a, b) { + W.call(this, a, b) + } + z.ta(Jd, W, "BaseRoute"); + z.extend(Jd.prototype, { + Pe: u() + }); + function Kd(a, b) { + W.call(this, a, b); + b = b || {}; + this.bu(b.policy); + this.oO(b.intercityPolicy); + this.xO(b.transitTypePolicy); + this.Np(b.pageCapacity); + this.Ab = zd; + this.mq = qd; + this.ya = []; + this.mb = -1; + this.j.Vn = b.enableTraffic || t; + this.Pa = []; + var c = this; + K.load("route", function() { + c.Sd() + }) + } + Kd.En = 100; + Kd.HP = [0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1]; + Kd.IP = [0, 3, 4, 0, 0, 0, 5]; + z.ta(Kd, Jd, "TransitRoute"); + z.extend(Kd.prototype, { + bu: function(a) { + this.j.ie = 0 <= a && 5 >= a ? a : 0 + }, + oO: function(a) { + this.j.Hm = 0 <= a && 2 >= a ? a : 0 + }, + xO: function(a) { + this.j.tn = 0 <= a && 2 >= a ? a : 0 + }, + NA: function(a, b) { + this.Pa.push({ + method: "_internalSearch", + arguments: [a, b] + }) + }, + search: function(a, b) { + this.Pa.push({ + method: "search", + arguments: [a, b] + }) + }, + Np: function(a) { + if ("string" === typeof a && (a = parseInt(a, 10), + isNaN(a))) { + this.j.Jk = Kd.En; + return + } + this.j.Jk = "number" !== typeof a ? Kd.En : 1 <= a && a <= Kd.En ? Math.round(a) : Kd.En + }, + toString: ca("TransitRoute"), + Z1: function(a) { + return a.replace(/\(.*\)/, "") + } + }); + var Ld = Kd.prototype; + T(Ld, { + _internalSearch: Ld.NA + }); + function Md(a, b) { + W.call(this, a, b); + this.ya = []; + this.mb = -1; + this.Pa = []; + var c = this + , e = this.j.la; + 1 !== e.kt && 2 !== e.kt && (e.kt = 1); + this.kv = this.j.la.Wb ? q : t; + K.load("route", function() { + c.Sd() + }); + this.vE && this.vE() + } + Md.WP = " \u73af\u5c9b \u65e0\u5c5e\u6027\u9053\u8def \u4e3b\u8def \u9ad8\u901f\u8fde\u63a5\u8def \u4ea4\u53c9\u70b9\u5185\u8def\u6bb5 \u8fde\u63a5\u9053\u8def \u505c\u8f66\u573a\u5185\u90e8\u9053\u8def \u670d\u52a1\u533a\u5185\u90e8\u9053\u8def \u6865 \u6b65\u884c\u8857 \u8f85\u8def \u531d\u9053 \u5168\u5c01\u95ed\u9053\u8def \u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df POI\u8fde\u63a5\u8def \u96a7\u9053 \u6b65\u884c\u9053 \u516c\u4ea4\u4e13\u7528\u9053 \u63d0\u524d\u53f3\u8f6c\u9053".split(" "); + z.ta(Md, Jd, "DWRoute"); + z.extend(Md.prototype, { + search: function(a, b, c) { + this.Pa.push({ + method: "search", + arguments: [a, b, c] + }) + } + }); + function Nd(a, b) { + Md.call(this, a, b); + b = b || {}; + this.j.Vn = b.enableTraffic || t; + this.bu(b.policy); + this.Ab = Ad; + this.mq = wd + } + z.ta(Nd, Md, "DrivingRoute"); + Nd.prototype.bu = function(a) { + this.j.ie = 0 <= a && 5 >= a ? a : 0 + } + ; + function Od(a, b) { + Md.call(this, a, b); + this.Ab = Bd; + this.mq = vd; + this.kv = t + } + z.ta(Od, Md, "WalkingRoute"); + function Pd(a, b) { + Md.call(this, a, b); + this.Ab = Ed; + this.mq = xd; + this.kv = t + } + z.ta(Pd, Md, "RidingRoute"); + function Qd(a, b) { + z.lang.Ca.call(this); + this.Vf = []; + this.Kk = []; + this.j = b; + this.uj = a; + this.map = this.j.la.map || s; + this.hO = this.j.hO; + this.zb = s; + this.pk = 0; + this.SF = ""; + this.nf = 1; + this.uD = ""; + this.Ep = [0, 0, 0, 0, 0, 0, 0]; + this.XM = []; + this.os = [1, 1, 1, 1, 1, 1, 1]; + this.VO = [1, 1, 1, 1, 1, 1, 1]; + this.Fp = [0, 0, 0, 0, 0, 0, 0]; + this.Zm = [0, 0, 0, 0, 0, 0, 0]; + this.Ib = [{ + m: "", + Ed: 0, + vn: 0, + x: 0, + y: 0, + pa: -1 + }, { + m: "", + Ed: 0, + vn: 0, + x: 0, + y: 0, + pa: -1 + }, { + m: "", + Ed: 0, + vn: 0, + x: 0, + y: 0, + pa: -1 + }, { + m: "", + Ed: 0, + vn: 0, + x: 0, + y: 0, + pa: -1 + }, { + m: "", + Ed: 0, + vn: 0, + x: 0, + y: 0, + pa: -1 + }, { + m: "", + Ed: 0, + vn: 0, + x: 0, + y: 0, + pa: -1 + }, { + m: "", + Ed: 0, + vn: 0, + x: 0, + y: 0, + pa: -1 + }]; + this.bi = -1; + this.ru = []; + this.aG = []; + K.load("route", u()) + } + z.lang.ta(Qd, z.lang.Ca, "RouteAddr"); + var Rd = navigator.userAgent; + /ipad|iphone|ipod|iph/i.test(Rd); + var Sd = /android/i.test(Rd); + function Td(a) { + this.vf = a || {} + } + z.extend(Td.prototype, { + gO: function(a, b, c) { + var e = this; + K.load("route", function() { + e.Sd(a, b, c) + }) + } + }); + function Ud(a) { + this.j = {}; + z.extend(this.j, a); + this.Pa = []; + var b = this; + K.load("othersearch", function() { + b.Sd() + }) + } + z.ta(Ud, z.lang.Ca, "Geocoder"); + z.extend(Ud.prototype, { + vm: function(a, b, c) { + this.Pa.push({ + method: "getPoint", + arguments: [a, b, c] + }) + }, + rm: function(a, b, c) { + this.Pa.push({ + method: "getLocation", + arguments: [a, b, c] + }) + }, + toString: ca("Geocoder") + }); + var Vd = Ud.prototype; + T(Vd, { + getPoint: Vd.vm, + getLocation: Vd.rm + }); + function Geolocation(a) { + a = a || {}; + this.K = { + timeout: a.timeout || 1E4, + maximumAge: a.maximumAge || 6E5, + enableHighAccuracy: a.enableHighAccuracy || t, + zi: a.SDKLocation || t + }; + this.pe = []; + var b = this; + K.load("othersearch", function() { + for (var a = 0, e; e = b.pe[a]; a++) + b[e.method].apply(b, e.arguments) + }) + } + z.extend(Geolocation.prototype, { + getCurrentPosition: function(a, b) { + this.pe.push({ + method: "getCurrentPosition", + arguments: arguments + }) + }, + getStatus: function() { + return sd + }, + enableSDKLocation: function() { + H() && (this.K.zi = q) + }, + disableSDKLocation: function() { + this.K.zi = t + } + }); + function Wd(a) { + a = a || {}; + a.la = a.renderOptions || {}; + this.j = { + la: { + map: a.la.map || s + } + }; + this.Pa = []; + var b = this; + K.load("othersearch", function() { + b.Sd() + }) + } + z.ta(Wd, z.lang.Ca, "LocalCity"); + z.extend(Wd.prototype, { + get: function(a) { + this.Pa.push({ + method: "get", + arguments: [a] + }) + }, + toString: ca("LocalCity") + }); + function Xd() { + this.Pa = []; + var a = this; + K.load("othersearch", function() { + a.Sd() + }) + } + z.ta(Xd, z.lang.Ca, "Boundary"); + z.extend(Xd.prototype, { + get: function(a, b) { + this.Pa.push({ + method: "get", + arguments: [a, b] + }) + }, + toString: ca("Boundary") + }); + function Yd(a, b) { + W.call(this, a, b); + this.TP = Cd; + this.VP = Fd; + this.SP = Dd; + this.UP = Gd; + this.Pa = []; + var c = this; + K.load("buslinesearch", function() { + c.Sd() + }) + } + Yd.zv = G.qa + "iw_plus.gif"; + Yd.YS = G.qa + "iw_minus.gif"; + Yd.RU = G.qa + "stop_icon.png"; + z.ta(Yd, W); + z.extend(Yd.prototype, { + getBusList: function(a) { + this.Pa.push({ + method: "getBusList", + arguments: [a] + }) + }, + getBusLine: function(a) { + this.Pa.push({ + method: "getBusLine", + arguments: [a] + }) + }, + setGetBusListCompleteCallback: function(a) { + this.j.zN = a || u() + }, + setGetBusLineCompleteCallback: function(a) { + this.j.yN = a || u() + }, + setBusListHtmlSetCallback: function(a) { + this.j.wN = a || u() + }, + setBusLineHtmlSetCallback: function(a) { + this.j.vN = a || u() + }, + setPolylinesSetCallback: function(a) { + this.j.bF = a || u() + } + }); + function Zd(a) { + W.call(this, a); + a = a || {}; + this.ub = { + input: a.input || s, + gC: a.baseDom || s, + types: a.types || [], + py: a.onSearchComplete || u() + }; + this.Ad.src = a.location || "\u5168\u56fd"; + this.Wi = ""; + this.pg = s; + this.lI = ""; + this.Mi(); + Ra(Ha); + var b = this; + K.load("autocomplete", function() { + b.Sd() + }) + } + z.ta(Zd, W, "Autocomplete"); + z.extend(Zd.prototype, { + Mi: u(), + show: u(), + U: u(), + KF: function(a) { + this.ub.types = a + }, + fn: function(a) { + this.Ad.src = a + }, + search: ba("Wi"), + Ly: ba("lI") + }); + var Ta; + function Oa(a, b) { + function c() { + f.j.visible ? ("inter" === f.Ke && f.j.haveBreakId && f.j.indoorExitControl === q ? z.D.show(f.GA) : z.D.U(f.GA), + this.j.closeControl && this.Bf && this.B && this.B.La() === this.C ? z.D.show(f.Bf) : z.D.U(f.Bf), + this.j.forceCloseControl && z.D.show(f.Bf)) : (z.D.U(f.Bf), + z.D.U(f.GA)) + } + this.C = "string" == typeof a ? z.$(a) : a; + this.aa = $d++; + this.j = { + enableScrollWheelZoom: q, + panoramaRenderer: "flash", + swfSrc: B.vg("main_domain_nocdn", "res/swf/") + "APILoader.swf", + visible: q, + indoorExitControl: q, + indoorFloorControl: t, + linksControl: q, + clickOnRoad: q, + navigationControl: q, + closeControl: q, + indoorSceneSwitchControl: q, + albumsControl: t, + albumsControlOptions: {}, + copyrightControlOptions: {}, + forceCloseControl: t, + haveBreakId: t + }; + var b = b || {}, e; + for (e in b) + this.j[e] = b[e]; + b.closeControl === q && (this.j.forceCloseControl = q); + b.useWebGL === t && Na(t); + this.Da = { + heading: 0, + pitch: 0 + }; + this.bo = []; + this.Lb = this.Za = s; + this.dk = this.er(); + this.ya = []; + this.Mc = 1; + this.Ke = this.xT = this.jl = ""; + this.Je = {}; + this.Of = s; + this.Sg = []; + this.xr = []; + "cvsRender" == this.dk || Na() ? (this.Vj = 90, + this.Xj = -90) : "cssRender" == this.dk && (this.Vj = 45, + this.Xj = -45); + this.Br = t; + var f = this; + this.co = function() { + this.dk === "flashRender" ? K.load("panoramaflash", function() { + f.Mi() + }, q) : K.load("panorama", function() { + f.ib() + }, q); + b.of == "api" ? Ra(Da) : Ra(Ea); + this.co = u() + } + ; + this.j.jT !== q && (this.co(), + B.Fn("cus.fire", "count", "z_loadpanoramacount")); + this.aU(this.C); + this.addEventListener("id_changed", function() { + Ra(Ca, { + from: b.of + }) + }); + this.mQ(); + this.addEventListener("indoorexit_options_changed", c); + this.addEventListener("scene_type_changed", c); + this.addEventListener("onclose_options_changed", c); + this.addEventListener("onvisible_changed", c) + } + var ae = 4 + , be = 1 + , $d = 0; + z.lang.ta(Oa, z.lang.Ca, "Panorama"); + z.extend(Oa.prototype, { + mQ: function() { + var a = this + , b = this.Bf = L("div"); + b.className = "pano_close"; + b.style.cssText = "z-index: 1201;display: none"; + b.title = "\u9000\u51fa\u5168\u666f"; + b.onclick = function() { + a.U() + } + ; + this.C.appendChild(b); + var c = this.GA = L("a"); + c.className = "pano_pc_indoor_exit"; + c.style.cssText = "z-index: 1201;display: none"; + c.innerHTML = '\u51fa\u53e3'; + c.title = "\u9000\u51fa\u5ba4\u5185\u666f"; + c.onclick = function() { + a.Vo() + } + ; + this.C.appendChild(c); + window.ActiveXObject && !document.addEventListener && (b.style.backgroundColor = "rgb(37,37,37)", + c.style.backgroundColor = "rgb(37,37,37)") + }, + Vo: u(), + aU: function(a) { + var b, c; + b = a.style; + c = Va(a).position; + "absolute" != c && "relative" != c && (b.position = "relative", + b.zIndex = 0); + if ("absolute" === c || "relative" === c) + if (a = Va(a).zIndex, + !a || "auto" === a) + b.zIndex = 0 + }, + OX: w("bo"), + Xb: w("Za"), + pY: w("jw"), + wO: w("jw"), + ga: w("Lb"), + Ea: w("Da"), + fa: w("Mc"), + jj: w("jl"), + I3: function() { + return this.U1 || [] + }, + D3: w("xT"), + ft: w("Ke"), + Ny: function(a) { + a !== this.Ke && (this.Ke = a, + this.dispatchEvent(new P("onscene_type_changed"))) + }, + vc: function(a, b, c) { + "object" === typeof b && (c = b, + b = l); + a != this.Za && (this.ul = this.Za, + this.vl = this.Lb, + this.Za = a, + this.Ke = b || "street", + this.Lb = s, + c && c.pov && this.Pc(c.pov)) + }, + sa: function(a) { + a.pb(this.Lb) || (this.ul = this.Za, + this.vl = this.Lb, + this.Lb = a, + this.Za = s) + }, + Pc: function(a) { + a && (this.Da = a, + a = this.Da.pitch, + a > this.Vj ? a = this.Vj : a < this.Xj && (a = this.Xj), + this.Br = q, + this.Da.pitch = a) + }, + H_: function(a, b) { + this.Xj = 0 <= a ? 0 : a; + this.Vj = 0 >= b ? 0 : b + }, + Qc: function(a) { + a != this.Mc && (a > ae && (a = ae), + a < be && (a = be), + a != this.Mc && (this.Mc = a), + "cssRender" === this.dk && this.Pc(this.Da)) + }, + GB: function() { + if (this.B) + for (var a = this.B.Hx(), b = 0; b < a.length; b++) + (a[b]instanceof U || a[b]instanceof uc) && a[b].point && this.ya.push(a[b]) + }, + GF: ba("B"), + au: function(a) { + this.Of = a || "none" + }, + Qk: function(a) { + for (var b in a) { + if ("object" == typeof a[b]) + for (var c in a[b]) + this.j[b][c] = a[b][c]; + else + this.j[b] = a[b]; + a.closeControl === q && (this.j.forceCloseControl = q); + a.closeControl === t && (this.j.forceCloseControl = t); + switch (b) { + case "linksControl": + this.dispatchEvent(new P("onlinks_visible_changed")); + break; + case "clickOnRoad": + this.dispatchEvent(new P("onclickonroad_changed")); + break; + case "navigationControl": + this.dispatchEvent(new P("onnavigation_visible_changed")); + break; + case "indoorSceneSwitchControl": + this.dispatchEvent(new P("onindoor_default_switch_mode_changed")); + break; + case "albumsControl": + this.dispatchEvent(new P("onalbums_visible_changed")); + break; + case "albumsControlOptions": + this.dispatchEvent(new P("onalbums_options_changed")); + break; + case "copyrightControlOptions": + this.dispatchEvent(new P("oncopyright_options_changed")); + break; + case "closeControl": + this.dispatchEvent(new P("onclose_options_changed")); + break; + case "indoorExitControl": + this.dispatchEvent(new P("onindoorexit_options_changed")); + break; + case "indoorFloorControl": + this.dispatchEvent(new P("onindoorfloor_options_changed")) + } + } + }, + Ek: function() { + this.Dl.style.visibility = "hidden" + }, + Ry: function() { + this.Dl.style.visibility = "visible" + }, + cX: function() { + this.j.enableScrollWheelZoom = q + }, + NW: function() { + this.j.enableScrollWheelZoom = t + }, + show: function() { + this.j.visible = q + }, + U: function() { + this.j.visible = t + }, + er: function() { + return Ua() && !H() && "javascript" != this.j.panoramaRenderer ? "flashRender" : !H() && Ob() ? "cvsRender" : "cssRender" + }, + Ga: function(a) { + this.Je[a.ld] = a + }, + Qb: function(a) { + delete this.Je[a] + }, + kE: function() { + return this.j.visible + }, + fh: function() { + return new O(this.C.clientWidth,this.C.clientHeight) + }, + La: w("C"), + yL: function() { + var a = B.vg("baidumap", "?") + , b = this.Xb(); + if (b) { + var b = { + panotype: this.ft(), + heading: this.Ea().heading, + pitch: this.Ea().pitch, + pid: b, + panoid: b, + from: "api" + }, c; + for (c in b) + a += c + "=" + b[c] + "&" + } + return a.slice(0, -1) + }, + Px: function() { + this.Qk({ + copyrightControlOptions: { + logoVisible: t + } + }) + }, + NF: function() { + this.Qk({ + copyrightControlOptions: { + logoVisible: q + } + }) + }, + aC: function(a) { + function b(a, b) { + return function() { + a.xr.push({ + iN: b, + hN: arguments + }) + } + } + for (var c = a.getPanoMethodList(), e = "", f = 0, g = c.length; f < g; f++) + e = c[f], + this[e] = b(this, e); + this.Sg.push(a) + }, + rF: function(a) { + for (var b = this.Sg.length; b--; ) + this.Sg[b] === a && this.Sg.splice(b, 1) + }, + FF: u() + }); + var ce = Oa.prototype; + T(ce, { + setId: ce.vc, + setPosition: ce.sa, + setPov: ce.Pc, + setZoom: ce.Qc, + setOptions: ce.Qk, + getId: ce.Xb, + getPosition: ce.ga, + getPov: ce.Ea, + getZoom: ce.fa, + getLinks: ce.OX, + getBaiduMapUrl: ce.yL, + hideMapLogo: ce.Px, + showMapLogo: ce.NF, + enableDoubleClickZoom: ce.W2, + disableDoubleClickZoom: ce.J2, + enableScrollWheelZoom: ce.cX, + disableScrollWheelZoom: ce.NW, + show: ce.show, + hide: ce.U, + addPlugin: ce.aC, + removePlugin: ce.rF, + getVisible: ce.kE, + addOverlay: ce.Ga, + removeOverlay: ce.Qb, + getSceneType: ce.ft, + setPanoramaPOIType: ce.au, + exitInter: ce.Vo, + setInteractiveState: ce.FF + }); + T(window, { + BMAP_PANORAMA_POI_HOTEL: "hotel", + BMAP_PANORAMA_POI_CATERING: "catering", + BMAP_PANORAMA_POI_MOVIE: "movie", + BMAP_PANORAMA_POI_TRANSIT: "transit", + BMAP_PANORAMA_POI_INDOOR_SCENE: "indoor_scene", + BMAP_PANORAMA_POI_NONE: "none", + BMAP_PANORAMA_INDOOR_SCENE: "inter", + BMAP_PANORAMA_STREET_SCENE: "street" + }); + function de() { + z.lang.Ca.call(this); + this.ld = "PanoramaOverlay_" + this.aa; + this.P = s; + this.Qa = q + } + z.lang.ta(de, z.lang.Ca, "PanoramaOverlayBase"); + z.extend(de.prototype, { + E3: w("ld"), + na: function() { + aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + remove: function() { + aa("remove\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + Nf: function() { + aa("_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0") + } + }); + function ee(a, b) { + de.call(this); + var c = { + position: s, + altitude: 2, + displayDistance: q + }, b = b || {}, e; + for (e in b) + c[e] = b[e]; + this.Lb = c.position; + this.Ij = a; + this.xq = c.altitude; + this.zR = c.displayDistance; + this.UF = c.color; + this.kM = c.hoverColor; + this.backgroundColor = c.backgroundColor; + this.jK = c.backgroundHoverColor; + this.borderColor = c.borderColor; + this.oK = c.borderHoverColor; + this.fontSize = c.fontSize; + this.padding = c.padding; + this.pE = c.imageUrl; + this.size = c.size; + this.xe = c.image; + this.width = c.width; + this.height = c.height; + this.HY = c.imageData; + this.borderWidth = c.borderWidth + } + z.lang.ta(ee, de, "PanoramaLabel"); + z.extend(ee.prototype, { + j3: w("borderWidth"), + getImageData: w("HY"), + zm: w("UF"), + y3: w("kM"), + f3: w("backgroundColor"), + g3: w("jK"), + h3: w("borderColor"), + i3: w("oK"), + w3: w("fontSize"), + F3: w("padding"), + z3: w("pE"), + cb: w("size"), + zx: w("xe"), + sa: function(a) { + this.Lb = a; + this.Nf("position", a) + }, + ga: w("Lb"), + dd: function(a) { + this.Ij = a; + this.Nf("content", a) + }, + xk: w("Ij"), + AF: function(a) { + this.xq = a; + this.Nf("altitude", a) + }, + Yo: w("xq"), + Ea: function() { + var a = this.ga() + , b = s + , c = s; + this.P && (c = this.P.ga()); + if (a && c) + if (a.pb(c)) + b = this.P.Ea(); + else { + b = {}; + b.heading = fe(a.lng - c.lng, a.lat - c.lat) || 0; + var a = b + , c = this.Yo() + , e = this.Xn(); + a.pitch = Math.round(180 * (Math.atan(c / e) / Math.PI)) || 0 + } + return b + }, + Xn: function() { + var a = 0, b, c; + this.P && (b = this.P.ga(), + (c = this.ga()) && !c.pb(b) && (a = S.$o(b, c))); + return a + }, + U: function() { + aa("hide\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + show: function() { + aa("show\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + Nf: u() + }); + var ge = ee.prototype; + T(ge, { + setPosition: ge.sa, + getPosition: ge.ga, + setContent: ge.dd, + getContent: ge.xk, + setAltitude: ge.AF, + getAltitude: ge.Yo, + getPov: ge.Ea, + show: ge.show, + hide: ge.U + }); + function he(a, b) { + de.call(this); + var c = { + icon: "", + title: "", + panoInfo: s, + altitude: 2 + }, b = b || {}, e; + for (e in b) + c[e] = b[e]; + this.Lb = a; + this.gI = c.icon; + this.DJ = c.title; + this.xq = c.altitude; + this.OT = c.panoInfo; + this.Da = { + heading: 0, + pitch: 0 + } + } + z.lang.ta(he, de, "PanoramaMarker"); + z.extend(he.prototype, { + sa: function(a) { + this.Lb = a; + this.Nf("position", a) + }, + ga: w("Lb"), + Ec: function(a) { + this.DJ = a; + this.Nf("title", a) + }, + gp: w("DJ"), + Rb: function(a) { + this.gI = icon; + this.Nf("icon", a) + }, + ap: w("gI"), + AF: function(a) { + this.xq = a; + this.Nf("altitude", a) + }, + Yo: w("xq"), + $D: w("OT"), + Ea: function() { + var a = s; + if (this.P) { + var a = this.P.ga() + , b = this.ga() + , a = fe(b.lng - a.lng, b.lat - a.lat); + isNaN(a) && (a = 0); + a = { + heading: a, + pitch: 0 + } + } else + a = this.Da; + return a + }, + Nf: u() + }); + var ie = he.prototype; + T(ie, { + setPosition: ie.sa, + getPosition: ie.ga, + setTitle: ie.Ec, + getTitle: ie.gp, + setAltitude: ie.AF, + getAltitude: ie.Yo, + getPanoInfo: ie.$D, + getIcon: ie.ap, + setIcon: ie.Rb, + getPov: ie.Ea + }); + function fe(a, b) { + var c = 0; + if (0 !== a && 0 !== b) { + var c = 180 * (Math.atan(a / b) / Math.PI) + , e = 0; + 0 < a && 0 > b && (e = 90); + 0 > a && 0 > b && (e = 180); + 0 > a && 0 < b && (e = 270); + c = (c + 90) % 90 + e + } else + 0 === a ? c = 0 > b ? 180 : 0 : 0 === b && (c = 0 < a ? 90 : 270); + return Math.round(c) + } + function Na(a) { + if ("boolean" === typeof je) + return je; + if (a === t || !window.WebGLRenderingContext) + return je = t; + if (z.platform.Jm) { + a = 0; + try { + a = navigator.userAgent.split("Android ")[1].charAt(0) + } catch (b) {} + if (5 > a) + return je = t + } + var a = document.createElement("canvas") + , c = s; + try { + c = a.getContext("webgl") + } catch (e) { + je = t + } + return je = c === s ? t : q + } + var je; + function ke() { + if ("boolean" === typeof le) + return le; + le = q; + if (z.platform.zE) + return q; + var a = navigator.userAgent; + return -1 < a.indexOf("Chrome") || -1 < a.indexOf("SAMSUNG-GT-I9508") ? q : le = t + } + var le; + function ec(a, b) { + this.P = a || s; + var c = this; + c.P && c.ba(); + K.load("pservice", function() { + c.SQ() + }); + "api" == (b || {}).of ? Ra(Fa) : Ra(Ga); + this.xd = { + getPanoramaById: [], + getPanoramaByLocation: [], + getVisiblePOIs: [], + getRecommendPanosById: [], + getPanoramaVersions: [], + checkPanoSupportByCityCode: [], + getPanoramaByPOIId: [], + getCopyrightProviders: [] + } + } + B.Tm(function(a) { + "flashRender" !== a.er() && new ec(a,{ + of: "api" + }) + }); + z.extend(ec.prototype, { + ba: function() { + function a(a) { + if (a) { + if (a.id != b.jw) { + b.wO(a.id); + b.ea = a; + ke() || b.dispatchEvent(new P("onthumbnail_complete")); + b.Za != s && (b.vl = b._position); + for (var c in a) + if (a.hasOwnProperty(c)) + switch (b["_" + c] = a[c], + c) { + case "position": + b.Lb = a[c]; + break; + case "id": + b.Za = a[c]; + break; + case "links": + b.bo = a[c]; + break; + case "zoom": + b.Mc = a[c] + } + if (b.vl) { + var g = b.vl + , i = b._position; + c = g.lat; + var k = i.lat + , m = Pb(k - c) + , g = Pb(i.lng - g.lng); + c = Math.sin(m / 2) * Math.sin(m / 2) + Math.cos(Pb(c)) * Math.cos(Pb(k)) * Math.sin(g / 2) * Math.sin(g / 2); + b.wH = 6371E3 * 2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)) + } + c = new P("ondataload"); + c.data = a; + b.dispatchEvent(c); + b.dispatchEvent(new P("onposition_changed")); + b.dispatchEvent(new P("onlinks_changed")); + b.dispatchEvent(new P("oncopyright_changed"), { + copyright: a.copyright + }); + a.bm && b.j.closeControl ? z.D.show(b.WR) : z.D.U(b.WR) + } + } else + b.Za = b.ul, + b.Lb = b.vl, + b.dispatchEvent(new P("onnoresult")) + } + var b = this.P + , c = this; + b.addEventListener("id_changed", function() { + c.ep(b.Xb(), a) + }); + b.addEventListener("iid_changed", function() { + c.Tg(ec.el + "qt=idata&iid=" + b.CA + "&fn=", function(b) { + if (b && b.result && 0 == b.result.error) { + var b = b.content[0].interinfo + , f = {}; + f.bm = b.BreakID; + for (var g = b.Defaultfloor, i = s, k = 0; k < b.Floors.length; k++) + if (b.Floors[k].Floor == g) { + i = b.Floors[k]; + break + } + f.id = i.StartID || i.Points[0].PID; + c.ep(f.id, a, f) + } + }) + }); + b.addEventListener("position_changed_inner", function() { + c.kj(b.ga(), a) + }) + }, + ep: function(a, b) { + this.xd.getPanoramaById.push(arguments) + }, + kj: function(a, b, c) { + this.xd.getPanoramaByLocation.push(arguments) + }, + lE: function(a, b, c, e) { + this.xd.getVisiblePOIs.push(arguments) + }, + Kx: function(a, b) { + this.xd.getRecommendPanosById.push(arguments) + }, + Jx: function(a) { + this.xd.getPanoramaVersions.push(arguments) + }, + nC: function(a, b) { + this.xd.checkPanoSupportByCityCode.push(arguments) + }, + Ix: function(a, b) { + this.xd.getPanoramaByPOIId.push(arguments) + }, + CL: function(a) { + this.xd.getCopyrightProviders.push(arguments) + } + }); + var ne = ec.prototype; + T(ne, { + getPanoramaById: ne.ep, + getPanoramaByLocation: ne.kj, + getPanoramaByPOIId: ne.Ix + }); + function dc(a) { + Mc.call(this); + "api" == (a || {}).of ? Ra(Aa) : Ra(Ba) + } + dc.OG = B.vg("pano", "tile/"); + dc.prototype = new Mc; + dc.prototype.getTilesUrl = function(a, b) { + var c = dc.OG[(a.x + a.y) % dc.OG.length] + "?udt=20150114&qt=tile&styles=pl&x=" + a.x + "&y=" + a.y + "&z=" + b; + z.ca.ia && 6 >= z.ca.ia && (c += "&color_dep=32"); + return c + } + ; + dc.prototype.zt = ca(q); + oe.Wd = new S; + function oe() {} + z.extend(oe, { + OW: function(a, b, c) { + c = z.lang.Nc(c); + b = { + data: b + }; + "position_changed" == a && (b.data = oe.Wd.xj(new Q(b.data.mercatorX,b.data.mercatorY))); + c.dispatchEvent(new P("on" + a), b) + } + }); + var pe = oe; + T(pe, { + dispatchFlashEvent: pe.OW + }); + var qe = { + KP: 50 + }; + qe.Ou = B.vg("pano")[0]; + qe.Mu = { + width: 220, + height: 60 + }; + z.extend(qe, { + tM: function(a, b, c, e) { + if (!b || !c || !c.lngLat || !c.panoInstance) + e(); + else { + this.jo === l && (this.jo = new ec(s,{ + of: "api" + })); + var f = this; + this.jo.nC(b, function(b) { + b ? f.jo.kj(c.lngLat, qe.KP, function(b) { + if (b && b.id) { + var g = b.id + , m = b.rh + , b = b.th + , n = ec.Wd.kh(c.lngLat) + , o = f.AS(n, { + x: m, + y: b + }) + , m = f.PL(g, o, 0, qe.Mu.width, qe.Mu.height); + a.content = f.BS(a.content, m, c.titleTip, c.beforeDomId); + a.addEventListener("open", function() { + ia.M(z.Fc("infoWndPano"), "click", function() { + c.panoInstance.vc(g); + c.panoInstance.show(); + c.panoInstance.Pc({ + heading: o, + pitch: 0 + }) + }) + }) + } + e() + }) : e() + }) + } + }, + BS: function(a, b, c, e) { + var c = c || "", f; + !e || !a.split(e)[0] ? (e = a, + a = "") : (e = a.split(e)[0], + f = e.lastIndexOf("<"), + e = a.substring(0, f), + a = a.substring(f)); + f = []; + var g = qe.Mu.width + , i = qe.Mu.height; + f.push(e); + f.push("
\\u6cbf\\u7ebf\\u5730\\u94c1\\u7ad9:
\'):c.push(\'\\u6cbf\\u7ebf\\u516c\\u4ea4\\u7ad9\\u70b9:
\');c.push(\'| \'+(e+1)+" | "+this.Gc.ux(e).name+" | ");c.push("
\\u5f53\\u524d\\u57ce\\u5e02\\uff1a\'+this.B.$g+"";Ab(g,\'
\'); f.appendChild(g);g=L("div",{"class":"city_content_medium"});Ab(g,\'| \';b+=\' | \'+c+" | ";b+=\'\';for(e=0;e\'+a[c][e]+"";b+=" |
| \':(b+=\' | ||
\'+c+" | ",e=q);for(var b=b+(\'\'+f+": | "),b=b+\'\',g=a[c][f],i=0;i |