diff --git a/public/plugin/offline/api2.0.js b/public/plugin/offline/api2.0.js
new file mode 100644
index 00000000..b58d2196
--- /dev/null
+++ b/public/plugin/offline/api2.0.js
@@ -0,0 +1,9401 @@
+/**
+ * Author: yang jian fei
+ * Email: 1294485765@qq.com
+ * Created Date: Monday, August 8th 2022, 6:55:12 pm
+ * Modified By: yang jian fei
+ * Desc: desc
+ * Copyright (c) 2022 黑发
+ */
+
+
+window.TILE_VERSION = {
+ "ditu": {
+ "normal": {
+ "version": "088",
+ "updateDate": "20220804"
+ },
+ "satellite": {
+ "version": "009",
+ "updateDate": "20220804"
+ },
+ "normalTraffic": {
+ "version": "081",
+ "updateDate": "20220804"
+ },
+ "satelliteTraffic": {
+ "version": "083",
+ "updateDate": "20220804"
+ },
+ "mapJS": {
+ "version": "104",
+ "updateDate": "20220804"
+ },
+ "satelliteStreet": {
+ "version": "083",
+ "updateDate": "20220804"
+ },
+ "earthVector": {
+ "version": "001",
+ "updateDate": "20220804"
+ }
+ },
+ "webapp": {
+ "high_normal": {
+ "version": "001",
+ "updateDate": "20220804"
+ },
+ "lower_normal": {
+ "version": "002",
+ "updateDate": "20220804"
+ }
+ },
+ "api_for_mobile": {
+ "vector": {
+ "version": "002",
+ "updateDate": "20220804"
+ },
+ "vectorIcon": {
+ "version": "002",
+ "updateDate": "20220804"
+ }
+ }
+};
+window.BMAP_AUTHENTIC_KEY = "Yp57V71dkOPiXjiN8VdcFRsVELzlVNKK";
+(function () {
+ function aa(a) {
+ throw a;
+ }
+ var j = void 0,
+ o = !0,
+ p = null,
+ q = !1;
+
+ function t() {
+ return function () { }
+ }
+
+ function da(a) {
+ return function (b) {
+ this[a] = b
+ }
+ }
+
+ function v(a) {
+ return function () {
+ return this[a]
+ }
+ }
+
+ function ea(a) {
+ return function () {
+ return a
+ }
+ }
+ var fa, ga = [];
+
+ function ha(a) {
+ return function () {
+ return ga[a].apply(this, arguments)
+ }
+ }
+
+ function ia(a, b) {
+ return ga[a] = b
+ }
+ var ja, x = ja = x || {
+ version: "1.3.4"
+ };
+ x.ba = "$BAIDU$";
+ window[x.ba] = window[x.ba] || {};
+ x.object = x.object || {};
+ x.extend = x.object.extend = function (a, b) {
+ for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]);
+ return a
+ };
+ x.K = x.K || {};
+ x.K.$ = function (a) {
+ return "string" == typeof a || a instanceof String ? document.getElementById(a) : a && a.nodeName && (1 == a.nodeType || 9 == a.nodeType) ? a : p
+ };
+ x.$ = x.Ec = x.K.$;
+ x.K.U = function (a) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ a.style.display = "none";
+ return a
+ };
+ x.U = x.K.U;
+ x.lang = x.lang || {};
+ x.lang.ug = function (a) {
+ return "[object String]" == Object.prototype.toString.call(a)
+ };
+ x.ug = x.lang.ug;
+ x.K.Wj = function (a) {
+ return x.lang.ug(a) ? document.getElementById(a) : a
+ };
+ x.Wj = x.K.Wj;
+ x.K.getElementsByClassName = function (a, b) {
+ var c;
+ if (a.getElementsByClassName) c = a.getElementsByClassName(b);
+ else {
+ var d = a;
+ d == p && (d = document);
+ c = [];
+ var d = d.getElementsByTagName("*"),
+ e = d.length,
+ f = RegExp("(^|\\s)" + b + "(\\s|$)"),
+ g, i;
+ for (i = g = 0; g < e; g++) f.test(d[g].className) && (c[i] = d[g], i++)
+ }
+ return c
+ };
+ x.getElementsByClassName = x.K.getElementsByClassName;
+ x.K.contains = function (a, b) {
+ var c = x.K.Wj,
+ a = c(a),
+ b = c(b);
+ return a.contains ? a != b && a.contains(b) : !!(a.compareDocumentPosition(b) & 16)
+ };
+ x.da = x.da || {};
+ /msie (\d+\.\d)/i.test(navigator.userAgent) && (x.da.ma = x.ma = document.documentMode || +RegExp.$1);
+ var ka = {
+ cellpadding: "cellPadding",
+ cellspacing: "cellSpacing",
+ colspan: "colSpan",
+ rowspan: "rowSpan",
+ valign: "vAlign",
+ usemap: "useMap",
+ frameborder: "frameBorder"
+ };
+ 8 > x.da.ma ? (ka["for"] = "htmlFor", ka["class"] = "className") : (ka.htmlFor = "for", ka.className = "class");
+ x.K.VG = ka;
+ x.K.HF = function (a, b, c) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ if ("style" == b) a.style.cssText = c;
+ else {
+ b = x.K.VG[b] || b;
+ a.setAttribute(b, c)
+ }
+ return a
+ };
+ x.HF = x.K.HF;
+ x.K.IF = function (a, b) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ for (var c in b) x.K.HF(a, c, b[c]);
+ return a
+ };
+ x.IF = x.K.IF;
+ x.Zk = x.Zk || {};
+ (function () {
+ var a = RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)", "g");
+ x.Zk.trim = function (b) {
+ return ("" + b).replace(a, "")
+ }
+ })();
+ x.trim = x.Zk.trim;
+ x.Zk.bp = function (a, b) {
+ var a = "" + a,
+ c = Array.prototype.slice.call(arguments, 1),
+ d = Object.prototype.toString;
+ if (c.length) {
+ c = c.length == 1 ? b !== p && /\[object Array\]|\[object Object\]/.test(d.call(b)) ? b : c : c;
+ return a.replace(/#\{(.+?)\}/g, function (a, b) {
+ var g = c[b];
+ "[object Function]" == d.call(g) && (g = g(b));
+ return "undefined" == typeof g ? "" : g
+ })
+ }
+ return a
+ };
+ x.bp = x.Zk.bp;
+ x.K.Tb = function (a, b) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ for (var c = a.className.split(/\s+/), d = b.split(/\s+/), e, f = d.length, g, i = 0; i < f; ++i) {
+ g = 0;
+ for (e = c.length; g < e; ++g)
+ if (c[g] == d[i]) {
+ c.splice(g, 1);
+ break
+ }
+ }
+ a.className = c.join(" ");
+ return a
+ };
+ x.Tb = x.K.Tb;
+ x.K.$x = function (a, b, c) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ var d;
+ if (a.insertAdjacentHTML) a.insertAdjacentHTML(b, c);
+ else {
+ d = a.ownerDocument.createRange();
+ b = b.toUpperCase();
+ if (b == "AFTERBEGIN" || b == "BEFOREEND") {
+ d.selectNodeContents(a);
+ d.collapse(b == "AFTERBEGIN")
+ } else {
+ b = b == "BEFOREBEGIN";
+ d[b ? "setStartBefore" : "setEndAfter"](a);
+ d.collapse(b)
+ }
+ d.insertNode(d.createContextualFragment(c))
+ }
+ return a
+ };
+ x.$x = x.K.$x;
+ x.K.show = function (a) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ a.style.display = "";
+ return a
+ };
+ x.show = x.K.show;
+ x.K.ZD = function (a) {
+ a = x.K.$(a);
+ return a === p ? a : a.nodeType == 9 ? a : a.ownerDocument || a.document
+ };
+ x.K.Ta = function (a, b) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ for (var c = b.split(/\s+/), d = a.className, e = " " + d + " ", f = 0, g = c.length; f < g; f++) e.indexOf(" " + c[f] + " ") < 0 && (d = d + (" " + c[f]));
+ a.className = d;
+ return a
+ };
+ x.Ta = x.K.Ta;
+ x.K.WB = x.K.WB || {};
+ x.K.Ul = x.K.Ul || [];
+ x.K.Ul.filter = function (a, b, c) {
+ for (var d = 0, e = x.K.Ul, f; f = e[d]; d++)
+ if (f = f[c]) b = f(a, b);
+ return b
+ };
+ x.Zk.QO = function (a) {
+ return a.indexOf("-") < 0 && a.indexOf("_") < 0 ? a : a.replace(/[-_][^-_]/g, function (a) {
+ return a.charAt(1).toUpperCase()
+ })
+ };
+ x.K.b0 = function (a) {
+ x.K.nt(a, "expand") ? x.K.Tb(a, "expand") : x.K.Ta(a, "expand")
+ };
+ x.K.nt = function (a) {
+ if (arguments.length <= 0 || typeof a === "function") return this;
+ if (this.size() <= 0) return q;
+ var a = a.replace(/^\s+/g, "").replace(/\s+$/g, "").replace(/\s+/g, " "),
+ b = a.split(" "),
+ c;
+ x.forEach(this, function (a) {
+ for (var a = a.className, e = 0; e < b.length; e++)
+ if (!~(" " + a + " ").indexOf(" " + b[e] + " ")) {
+ c = q;
+ return
+ }
+ c !== q && (c = o)
+ });
+ return c
+ };
+ x.K.wj = function (a, b) {
+ var c = x.K,
+ a = c.$(a);
+ if (a === p) return a;
+ var b = x.Zk.QO(b),
+ d = a.style[b];
+ if (!d) var e = c.WB[b],
+ d = a.currentStyle || (x.da.ma ? a.style : getComputedStyle(a, p)),
+ d = e && e.get ? e.get(a, d) : d[e || b];
+ if (e = c.Ul) d = e.filter(b, d, "get");
+ return d
+ };
+ x.wj = x.K.wj;
+ /opera\/(\d+\.\d)/i.test(navigator.userAgent) && (x.da.opera = +RegExp.$1);
+ x.da.FM = /webkit/i.test(navigator.userAgent);
+ x.da.KY = /gecko/i.test(navigator.userAgent) && !/like gecko/i.test(navigator.userAgent);
+ x.da.LE = "CSS1Compat" == document.compatMode;
+ x.K.ia = function (a) {
+ a = x.K.$(a);
+ if (a === p) return a;
+ var b = x.K.ZD(a),
+ c = x.da,
+ d = x.K.wj;
+ c.KY > 0 && b.getBoxObjectFor && d(a, "position");
+ var e = {
+ left: 0,
+ top: 0
+ },
+ f;
+ if (a == (c.ma && !c.LE ? b.body : b.documentElement)) return e;
+ if (a.getBoundingClientRect) {
+ a = a.getBoundingClientRect();
+ e.left = Math.floor(a.left) + Math.max(b.documentElement.scrollLeft, b.body.scrollLeft);
+ e.top = Math.floor(a.top) + Math.max(b.documentElement.scrollTop, b.body.scrollTop);
+ e.left = e.left - b.documentElement.clientLeft;
+ e.top = e.top - b.documentElement.clientTop;
+ a = b.body;
+ b = parseInt(d(a, "borderLeftWidth"));
+ d = parseInt(d(a, "borderTopWidth"));
+ if (c.ma && !c.LE) {
+ e.left = e.left - (isNaN(b) ? 2 : b);
+ e.top = e.top - (isNaN(d) ? 2 : d)
+ }
+ } else {
+ f = a;
+ do {
+ e.left = e.left + f.offsetLeft;
+ e.top = e.top + f.offsetTop;
+ if (c.FM > 0 && d(f, "position") == "fixed") {
+ e.left = e.left + b.body.scrollLeft;
+ e.top = e.top + b.body.scrollTop;
+ break
+ }
+ f = f.offsetParent
+ } while (f && f != a);
+ if (c.opera > 0 || c.FM > 0 && d(a, "position") == "absolute") e.top = e.top - b.body.offsetTop;
+ for (f = a.offsetParent; f && f != b.body;) {
+ e.left = e.left - f.scrollLeft;
+ if (!c.opera || f.tagName != "TR") e.top = e.top - f.scrollTop;
+ f = f.offsetParent
+ }
+ }
+ return e
+ };
+ /firefox\/(\d+\.\d)/i.test(navigator.userAgent) && (x.da.Te = +RegExp.$1);
+ /BIDUBrowser/i.test(navigator.userAgent) && (x.da.X1 = o);
+ var la = navigator.userAgent;
+ /(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(la) && !/chrome/i.test(la) && (x.da.BF = +(RegExp.$1 || RegExp.$2));
+ /chrome\/(\d+\.\d)/i.test(navigator.userAgent) && (x.da.Tw = +RegExp.$1);
+ x.jc = x.jc || {};
+ x.jc.Fb = function (a, b) {
+ var c, d, e = a.length;
+ if ("function" == typeof b)
+ for (d = 0; d < e; d++) {
+ c = a[d];
+ c = b.call(a, c, d);
+ if (c === q) break
+ }
+ return a
+ };
+ x.Fb = x.jc.Fb;
+ x.lang.ba = function () {
+ return "TANGRAM__" + (window[x.ba]._counter++).toString(36)
+ };
+ window[x.ba]._counter = window[x.ba]._counter || 1;
+ window[x.ba]._instances = window[x.ba]._instances || {};
+ x.lang.Dt = function (a) {
+ return "[object Function]" == Object.prototype.toString.call(a)
+ };
+ x.lang.Da = function (a) {
+ this.ba = a || x.lang.ba();
+ window[x.ba]._instances[this.ba] = this
+ };
+ window[x.ba]._instances = window[x.ba]._instances || {};
+ x.lang.Da.prototype.mi = ha(0);
+ x.lang.Da.prototype.toString = function () {
+ return "[object " + (this.VQ || "Object") + "]"
+ };
+ x.lang.vz = function (a, b) {
+ this.type = a;
+ this.returnValue = o;
+ this.target = b || p;
+ this.currentTarget = p
+ };
+ x.lang.Da.prototype.addEventListener = function (a, b, c) {
+ if (x.lang.Dt(b)) {
+ !b.Nj && (b.Nj = {});
+ !this.Mi && (this.Mi = {});
+ var d = this.Mi,
+ e;
+ if (typeof c == "string" && c) {
+ /[^\w\-]/.test(c) && aa("nonstandard key:" + c);
+ e = b.ot = c
+ }
+ a.indexOf("on") != 0 && (a = "on" + a);
+ typeof d[a] != "object" && (d[a] = {});
+ typeof b.Nj[a] != "object" && (b.Nj[a] = {});
+ e = e || x.lang.ba();
+ !b.Nj[a].ot && (b.Nj[a].ot = e);
+ d[a][e] = b
+ }
+ };
+ x.lang.Da.prototype.removeEventListener = function (a, b) {
+ a.indexOf("on") != 0 && (a = "on" + a);
+ if (x.lang.Dt(b)) {
+ if (!b.Nj || !b.Nj[a]) return;
+ b = b.Nj[a].ot
+ } else if (!x.lang.ug(b)) return;
+ !this.Mi && (this.Mi = {});
+ var c = this.Mi;
+ c[a] && c[a][b] && delete c[a][b]
+ };
+ x.lang.Da.prototype.dispatchEvent = function (a, b) {
+ x.lang.ug(a) && (a = new x.lang.vz(a));
+ !this.Mi && (this.Mi = {});
+ var b = b || {},
+ c;
+ for (c in b) a[c] = b[c];
+ var d = this.Mi,
+ e = a.type;
+ a.target = a.target || this;
+ a.currentTarget = this;
+ e.indexOf("on") != 0 && (e = "on" + e);
+ x.lang.Dt(this[e]) && this[e].apply(this, arguments);
+ if (typeof d[e] == "object")
+ for (c in d[e]) d[e][c].apply(this, arguments);
+ return a.returnValue
+ };
+ x.lang.ua = function (a, b, c) {
+ var d, e, f = a.prototype;
+ e = new Function;
+ e.prototype = b.prototype;
+ e = a.prototype = new e;
+ for (d in f) e[d] = f[d];
+ a.prototype.constructor = a;
+ a.T_ = b.prototype;
+ if ("string" == typeof c) e.VQ = c
+ };
+ x.ua = x.lang.ua;
+ x.lang.Lc = function (a) {
+ return window[x.ba]._instances[a] || p
+ };
+ x.platform = x.platform || {};
+ x.platform.yM = /macintosh/i.test(navigator.userAgent);
+ x.platform.K3 = /MicroMessenger/i.test(navigator.userAgent);
+ x.platform.GM = /windows/i.test(navigator.userAgent);
+ x.platform.SY = /x11/i.test(navigator.userAgent);
+ x.platform.Sm = /android/i.test(navigator.userAgent);
+ /android (\d+(\.\d)?)/i.test(navigator.userAgent) && (x.platform.iK = x.iK = RegExp.$1);
+ x.platform.MY = /ipad/i.test(navigator.userAgent);
+ x.platform.HE = /iphone/i.test(navigator.userAgent);
+
+ function ma(a, b) {
+ a.domEvent = b = window.event || b;
+ a.clientX = b.clientX || b.pageX;
+ a.clientY = b.clientY || b.pageY;
+ a.offsetX = b.offsetX || b.layerX;
+ a.offsetY = b.offsetY || b.layerY;
+ a.screenX = b.screenX;
+ a.screenY = b.screenY;
+ a.ctrlKey = b.ctrlKey || b.metaKey;
+ a.shiftKey = b.shiftKey;
+ a.altKey = b.altKey;
+ if (b.touches) {
+ a.touches = [];
+ for (var c = 0; c < b.touches.length; c++) a.touches.push({
+ clientX: b.touches[c].clientX,
+ clientY: b.touches[c].clientY,
+ screenX: b.touches[c].screenX,
+ screenY: b.touches[c].screenY,
+ pageX: b.touches[c].pageX,
+ pageY: b.touches[c].pageY,
+ target: b.touches[c].target,
+ identifier: b.touches[c].identifier
+ })
+ }
+ if (b.changedTouches) {
+ a.changedTouches = [];
+ for (c = 0; c < b.changedTouches.length; c++) a.changedTouches.push({
+ clientX: b.changedTouches[c].clientX,
+ clientY: b.changedTouches[c].clientY,
+ screenX: b.changedTouches[c].screenX,
+ screenY: b.changedTouches[c].screenY,
+ pageX: b.changedTouches[c].pageX,
+ pageY: b.changedTouches[c].pageY,
+ target: b.changedTouches[c].target,
+ identifier: b.changedTouches[c].identifier
+ })
+ }
+ if (b.targetTouches) {
+ a.targetTouches = [];
+ for (c = 0; c < b.targetTouches.length; c++) a.targetTouches.push({
+ clientX: b.targetTouches[c].clientX,
+ clientY: b.targetTouches[c].clientY,
+ screenX: b.targetTouches[c].screenX,
+ screenY: b.targetTouches[c].screenY,
+ pageX: b.targetTouches[c].pageX,
+ pageY: b.targetTouches[c].pageY,
+ target: b.targetTouches[c].target,
+ identifier: b.targetTouches[c].identifier
+ })
+ }
+ a.rotation = b.rotation;
+ a.scale = b.scale;
+ return a
+ }
+ x.lang.lx = function (a) {
+ var b = window[x.ba];
+ b.eT && delete b.eT[a]
+ };
+ x.event = {};
+ x.M = x.event.M = function (a, b, c) {
+ if (!(a = x.$(a))) return a;
+ b = b.replace(/^on/, "");
+ a.addEventListener ? a.addEventListener(b, c, q) : a.attachEvent && a.attachEvent("on" + b, c);
+ return a
+ };
+ x.cd = x.event.cd = function (a, b, c) {
+ if (!(a = x.$(a))) return a;
+ b = b.replace(/^on/, "");
+ a.removeEventListener ? a.removeEventListener(b, c, q) : a.detachEvent && a.detachEvent("on" + b, c);
+ return a
+ };
+ x.K.nt = function (a, b) {
+ if (!a || !a.className || typeof a.className != "string") return q;
+ var c = -1;
+ try {
+ c = a.className == b || a.className.search(RegExp("(\\s|^)" + b + "(\\s|$)"))
+ } catch (d) {
+ return q
+ }
+ return c > -1
+ };
+ x.nL = function () {
+ function a(a) {
+ document.addEventListener && (this.element = a, this.qL = this.Gk ? "touchstart" : "mousedown", this.GD = this.Gk ? "touchmove" : "mousemove", this.FD = this.Gk ? "touchend" : "mouseup", this.th = q, this.tu = this.su = 0, this.element.addEventListener(this.qL, this, q), ja.M(this.element, "mousedown", t()), this.handleEvent(p))
+ }
+ a.prototype = {
+ Gk: "ontouchstart" in window || "createTouch" in document,
+ start: function (a) {
+ na(a);
+ this.th = q;
+ this.su = this.Gk ? a.touches[0].clientX : a.clientX;
+ this.tu = this.Gk ? a.touches[0].clientY : a.clientY;
+ this.element.addEventListener(this.GD, this, q);
+ this.element.addEventListener(this.FD, this, q)
+ },
+ move: function (a) {
+ oa(a);
+ var c = this.Gk ? a.touches[0].clientY : a.clientY;
+ if (10 < Math.abs((this.Gk ? a.touches[0].clientX : a.clientX) - this.su) || 10 < Math.abs(c - this.tu)) this.th = o
+ },
+ end: function (a) {
+ oa(a);
+ this.th || (a = document.createEvent("Event"), a.initEvent("tap", q, o), this.element.dispatchEvent(a));
+ this.element.removeEventListener(this.GD, this, q);
+ this.element.removeEventListener(this.FD, this, q)
+ },
+ handleEvent: function (a) {
+ if (a) switch (a.type) {
+ case this.qL:
+ this.start(a);
+ break;
+ case this.GD:
+ this.move(a);
+ break;
+ case this.FD:
+ this.end(a)
+ }
+ }
+ };
+ return function (b) {
+ return new a(b)
+ }
+ }();
+ var B = window.BMap || {};
+ B.version = "2.0";
+
+ function pa(a, b) {
+ if (navigator.cookieEnabled) {
+ var c = new Date;
+ c.setTime(c.getTime() + 2592E6);
+ document.cookie = a + "=" + escape(b) + ";expires=" + c.toGMTString()
+ } else localStorage ? localStorage.setItem(a, b) : sessionStorage && sessionStorage.setItem(a, b)
+ }
+ B.dV = 0.34 > Math.random();
+ 0 <= B.version.indexOf("#") && (B.version = "2.0");
+ B.Pr = [];
+ B.Xe = function (a) {
+ this.Pr.push(a)
+ };
+ B.Fr = [];
+ B.bn = function (a) {
+ this.Fr.push(a)
+ };
+ B.B0 = function () {
+ var a = +new Date,
+ b = H("script", {
+ type: "text/javascript",
+ async: ""
+ });
+ b.charset = "utf-8";
+ b.src = "https://dlswbr.baidu.com/heicha/mw/abclite-2063-s.js?_t=" + a;
+ b.onload = function () {
+ window.___abvk && pa("SECKEY_ABVK", window.___abvk)
+ };
+ window.__abbaidu_2063_cb = function (a) {
+ a = JSON.parse(a);
+ pa("BMAP_SECKEY", a.data)
+ };
+ b.addEventListener ? b.addEventListener("load", function (a) {
+ a = a.target;
+ a.parentNode.removeChild(a)
+ }, q) : b.attachEvent && b.attachEvent("onreadystatechange", function () {
+ var a = window.event.srcElement;
+ a && (a.readyState == "loaded" || a.readyState == "complete") && a.parentNode.removeChild(a)
+ });
+ setTimeout(function () {
+ document.getElementsByTagName("head")[0].appendChild(b);
+ b = p
+ }, 1)
+ };
+ B.Jw = B.apiLoad || function (a) {
+ if (B.version && B.version >= 1.5) {
+ var b = B.oc + "?qt=verify&v=2.1&ak=" + qa;
+ a && (b = b + "&fromPanorama=" + a);
+ ra(b, function (a) {
+ if (a && a.error !== 0) {
+ B = p;
+ var b = "\u60a8\u63d0\u4f9b\u7684\u5bc6\u94a5\u4e0d\u662f\u6709\u6548\u7684\u767e\u5ea6LBS\u5f00\u653e\u5e73\u53f0\u5bc6\u94a5\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002";
+ a.error && sa[a.error] && (b = sa[a.error] + "\u8be6\u60c5\u67e5\u770b\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002");
+ alert(b);
+ if (typeof map !== "undefined" && typeof map.Ha === "function") {
+ map.Ha().innerHTML = "";
+ map.Mi = {}
+ }
+ }
+ })
+ }
+ };
+ var qa = window.BMAP_AUTHENTIC_KEY;
+ window.BMAP_AUTHENTIC_KEY = p;
+ var ta = window.BMap_loadScriptTime,
+ ua = (new Date).getTime(),
+ va = p,
+ wa = o,
+ xa = 5042,
+ ya = 5002,
+ za = 5003,
+ Aa = "load_mapclick",
+ Ba = 5038,
+ Ca = 5041,
+ Ea = 5047,
+ Fa = 5036,
+ Ga = 5039,
+ Ha = 5037,
+ Ia = 5040,
+ Ja = 5011,
+ Ka = 7E3,
+ sa = {
+ 101: "\u60a8\u6240\u4f7f\u7528\u7684\u5bc6\u94a5ak\u6709\u95ee\u9898\uff0c\u4e0d\u652f\u6301jsapi\u670d\u52a1\uff0c\u53ef\u4ee5\u8bbf\u95ee\u8be5\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u5bc6\u94a5\u3002",
+ 102: "MCODE\u53c2\u6570\u4e0d\u5b58\u5728\uff0cmobile\u7c7b\u578bMCODE\u53c2\u6570\u5fc5\u9700\u3002",
+ 200: "APP\u4e0d\u5b58\u5728\uff0cAK\u6709\u8bef\u8bf7\u68c0\u67e5\u518d\u91cd\u8bd5\u3002",
+ 201: "APP\u88ab\u60a8\u7981\u7528\u5566\u3002",
+ 202: "APP\u88ab\u7ba1\u7406\u5458\u5220\u9664\u5566\u3002",
+ 203: "APP\u7c7b\u578b\u9519\u8bef\u3002",
+ 210: "APP IP\u6821\u9a8c\u5931\u8d25\u3002",
+ 220: "APP Referer\u6821\u9a8c\u5931\u8d25\u3002\u8bf7\u68c0\u67e5\u8be5ak\u8bbe\u7f6e\u7684\u767d\u540d\u5355\u4e0e\u8bbf\u95ee\u6240\u6709\u7684\u57df\u540d\u662f\u5426\u4e00\u81f4\u3002",
+ 230: "APP Mcode\u7801\u6821\u9a8c\u5931\u8d25\u3002",
+ 240: "APP\u670d\u52a1\u88ab\u7981\u7528\u4e86\u3002",
+ 250: "\u8be5\u7528\u6237\u4e0d\u5b58\u5728...",
+ 251: "\u8be5\u7528\u6237\u88ab\u81ea\u5df1\u5220\u9664\u5566\u3002",
+ 252: "\u8be5\u7528\u6237\u88ab\u7ba1\u7406\u5458\u5220\u9664\u5566\u3002",
+ 260: "\u60a8\u6240\u4f7f\u7528\u7684\u5bc6\u94a5AK\u4e0d\u5305\u542b\u8be5\u670d\u52a1\u5462\uff0c",
+ 261: "\u60a8\u6240\u4f7f\u7528\u7684\u5bc6\u94a5AK\u7684\u8be5\u670d\u52a1\u88ab\u7981\u7528\u5566\uff0c",
+ 401: "\u60a8\u6240\u4f7f\u7528\u7684AK\u5e76\u53d1\u8d85\u9650\u4e86\uff0c",
+ 302: "\u60a8\u6240\u4f7f\u7528\u7684AK\u5929\u914d\u989d\u8d85\u9650\u4e86\uff0c"
+ };
+ var La = 0;
+ window.BMAP_COORD_BD09 = 5;
+ window.BMAP_COORD_GCJ02 = 3;
+
+ function Na(a, b) {
+ if (a = x.$(a)) {
+ var c = this;
+ x.lang.Da.call(c);
+ b = b || {};
+ c.B = {
+ yk: b.fixedZoomCenter || q,
+ BC: 200,
+ Gb: o,
+ tx: q,
+ yD: o,
+ Zo: o,
+ $o: b.enableWheelZoom || q,
+ lL: o,
+ AD: o,
+ wm: o,
+ Ss: o,
+ xm: o,
+ Xo: b.enable3DBuilding || q,
+ Hc: 25,
+ M0: 240,
+ fV: 450,
+ Xb: I.Xb,
+ Id: I.Id,
+ dy: !!b.dy,
+ fc: Math.round(b.minZoom) || 1,
+ Zb: Math.round(b.maxZoom) || 19,
+ xb: b.mapType || Oa,
+ B4: q,
+ gL: b.drawer || La,
+ sx: o,
+ px: 500,
+ TW: b.enableHighResolution !== q,
+ pj: b.enableMapClick !== q,
+ devicePixelRatio: b.devicePixelRatio || window.devicePixelRatio || 1,
+ lG: 99,
+ ze: b.mapStyle || p,
+ $Y: b.logoControl === q ? q : o,
+ xV: [],
+ Nw: b.beforeClickIcon || p,
+ uD: b.enableBizAuthLogo === q ? q : o,
+ ax: b.coordsType || 5
+ };
+ window.GCJMAP = this;
+ c.B.ze && (this.BY(c.B.ze.controls), this.tM(c.B.ze.geotableId));
+ c.B.ze && c.B.ze.styleId && c.u3(c.B.ze.styleId);
+ c.B.om = {
+ dark: {
+ backColor: "#2D2D2D",
+ textColor: "#bfbfbf",
+ iconUrl: "dicons"
+ },
+ normal: {
+ backColor: "#F3F1EC",
+ textColor: "#c61b1b",
+ iconUrl: "icons"
+ },
+ light: {
+ backColor: "#EBF8FC",
+ textColor: "#017fb4",
+ iconUrl: "licons"
+ }
+ };
+ b.enableAutoResize && (c.B.Ss = b.enableAutoResize);
+ b.enableStreetEntrance === q && (c.B.xm = b.enableStreetEntrance);
+ b.enableDeepZoom === q && (c.B.lL = b.enableDeepZoom);
+ var d = c.B.xV;
+ if (J())
+ for (var e = 0, f = d.length; e < f; e++)
+ if (x.da[d[e]]) {
+ c.B.devicePixelRatio = 1;
+ break
+ }
+ d = -1 < navigator.userAgent.toLowerCase().indexOf("android");
+ e = -1 < navigator.userAgent.toLowerCase().indexOf("mqqbrowser");
+ if (-1 < navigator.userAgent.toLowerCase().indexOf("UCBrowser") || d && e) c.B.lG = 99;
+ c.Ua = a;
+ c.PB(a);
+ a.unselectable = "on";
+ a.innerHTML = "";
+ a.appendChild(c.va());
+ b.size && this.Ce(b.size);
+ d = c.vb();
+ c.width = d.width;
+ c.height = d.height;
+ c.offsetX = 0;
+ c.offsetY = 0;
+ c.platform = a.firstChild;
+ c.Ae = c.platform.firstChild;
+ c.Ae.style.width = c.width + "px";
+ c.Ae.style.height = c.height + "px";
+ c.Zd = {};
+ c.re = new K(0, 0);
+ c.dc = new K(0, 0);
+ c.Na = 3;
+ c.Mc = 0;
+ c.TC = p;
+ c.SC = p;
+ c.Sb = "";
+ c.Uw = "";
+ c.Sh = {};
+ c.Sh.custom = {};
+ c.Sa = 0;
+ b.useWebGL === q && Pa(q);
+ c.P = new Qa(a, {
+ of: "api",
+ jT: o
+ });
+ c.P.U();
+ c.P.Ry(c);
+ b = b || {};
+ d = c.xb = c.B.xb;
+ c.Nd = d.Hm();
+ c.B.xb && this.oa().OF(this);
+ d === Ra && Ta(ya);
+ d === Ua && Ta(za);
+ d = c.B;
+ d.hP = Math.round(b.minZoom);
+ d.gP = Math.round(b.maxZoom);
+ c.gv();
+ c.R = {
+ Ic: q,
+ kc: 0,
+ Cp: 0,
+ KM: 0,
+ O3: 0,
+ tC: q,
+ tF: -1,
+ Re: []
+ };
+ c.platform.style.cursor = c.B.Xb;
+ for (e = 0; e < B.Pr.length; e++) B.Pr[e](c);
+ c.R.tF = e;
+ c.ca();
+ L.load("map", function () {
+ c.Ab()
+ });
+ c.B.pj && (setTimeout(function () {
+ Ta(Aa)
+ }, 1E3), L.load("mapclick", function () {
+ window.MPC_Mgr = window.MPC_Mgr || {};
+ window.MPC_Mgr[c.ba] = new Va(c)
+ }, o));
+ Xa() && L.load("oppc", function () {
+ c.Nz()
+ });
+ J() && L.load("opmb", function () {
+ c.Nz()
+ });
+ a = p;
+ c.cC = []
+ }
+ }
+ x.lang.ua(Na, x.lang.Da, "Map");
+ x.extend(Na.prototype, {
+ va: function () {
+ var a = H("div"),
+ b = a.style;
+ b.overflow = "visible";
+ b.position = "absolute";
+ b.zIndex = "0";
+ b.top = b.left = "0px";
+ var b = H("div", {
+ "class": "BMap_mask"
+ }),
+ c = b.style;
+ c.position = "absolute";
+ c.top = c.left = "0px";
+ c.zIndex = "9";
+ c.overflow = "hidden";
+ c.WebkitUserSelect = "none";
+ a.appendChild(b);
+ return a
+ },
+ PB: function (a) {
+ var b = a.style;
+ b.overflow = "hidden";
+ "absolute" !== Ya(a).position && (b.position = "relative", b.zIndex = 0);
+ b.backgroundColor = "#F3F1EC";
+ b.color = "#000";
+ b.textAlign = "left"
+ },
+ ca: function () {
+ var a = this;
+ a.Co = function () {
+ var b = a.vb();
+ if (a.width !== b.width || a.height !== b.height) {
+ var c = new M(a.width, a.height),
+ d = new N("onbeforeresize");
+ d.size = c;
+ a.dispatchEvent(d);
+ a.ok((b.width - a.width) / 2, (b.height - a.height) / 2);
+ a.Ae.style.width = (a.width = b.width) + "px";
+ a.Ae.style.height = (a.height = b.height) + "px";
+ c = new N("onresize");
+ c.size = b;
+ a.dispatchEvent(c)
+ }
+ };
+ a.B.Ss && (a.R.fm = setInterval(a.Co, 80))
+ },
+ ok: function (a, b, c, d) {
+ var e = this.oa().yc(this.ga()),
+ f = this.Nd,
+ g = o;
+ c && O.GE(c) && (this.re = new K(c.lng, c.lat), g = q);
+ if (c = c && d ? f.Jk(c, this.Sb) : this.dc)
+ if (this.dc = new K(c.lng + a * e, c.lat - b * e), (a = f.rh(this.dc, this.Sb)) && g) this.re = a
+ },
+ Ig: function (a, b) {
+ if (Za(a) && (this.gv(), this.dispatchEvent(new N("onzoomstart")), a = this.fo(a).zoom, a !== this.Na)) {
+ this.Mc = this.Na;
+ this.Na = a;
+ var c;
+ b ? c = new K($a(cp, me).lng, $a(b, me).lat) : this.lh() && (c = this.lh().ia());
+ c && (c = this.Cc(c, this.Mc), this.ok(this.width / 2 - c.x, this.height / 2 - c.y, this.Rb(c, this.Mc), o));
+ this.dispatchEvent(new N("onzoomstartcode"))
+ }
+ },
+ Oc: function (a) {
+ this.Ig(a)
+ },
+ pG: function (a) {
+ this.Ig(this.Na + 1, a)
+ },
+ qG: function (a) {
+ this.Ig(this.Na - 1, a)
+ },
+ Ai: function (a) {
+ if (a instanceof O || a instanceof K) a = $a(a, this), this.dc = this.Nd.Jk(a, this.Sb), this.re = K.GE(a) ? new K(a.lng, a.lat) : this.Nd.rh(this.dc, this.Sb)
+ },
+ zg: function (a, b) {
+ a = Math.round(a) || 0;
+ b = Math.round(b) || 0;
+ this.ok(-a, -b)
+ },
+ js: function (a) {
+ a && ab(a.Ie) && (a.Ie(this), this.dispatchEvent(new N("onaddcontrol", a)))
+ },
+ WN: function (a) {
+ a && ab(a.remove) && (a.remove(), this.dispatchEvent(new N("onremovecontrol", a)))
+ },
+ Fo: function (a) {
+ a && ab(a.ra) && (a.ra(this), this.dispatchEvent(new N("onaddcontextmenu", a)))
+ },
+ Op: function (a) {
+ a && ab(a.remove) && (this.dispatchEvent(new N("onremovecontextmenu", a)), a.remove())
+ },
+ Ka: function (a) {
+ a && ab(a.Ie) && (a.Ie(this), this.dispatchEvent(new N("onaddoverlay", a)))
+ },
+ Ub: function (a) {
+ a && ab(a.remove) && (a.remove(), this.dispatchEvent(new N("onremoveoverlay", a)))
+ },
+ CK: function () {
+ this.dispatchEvent(new N("onclearoverlays"))
+ },
+ $g: function (a) {
+ a && this.dispatchEvent(new N("onaddtilelayer", a))
+ },
+ Ah: function (a) {
+ a && this.dispatchEvent(new N("onremovetilelayer", a))
+ },
+ Fg: function (a) {
+ if (this.xb !== a) {
+ var b = new N("onsetmaptype");
+ b.s4 = this.xb;
+ this.xb = this.B.xb = a;
+ this.Nd = this.xb.Hm();
+ this.ok(0, 0, this.wc(), o);
+ this.xb.OF(this);
+ this.gv();
+ var c = this.fo(this.ga()).zoom;
+ this.Ig(c);
+ this.dispatchEvent(b);
+ b = new N("onmaptypechange");
+ b.Na = c;
+ b.xb = a;
+ this.dispatchEvent(b);
+ (a === bb || a === Ua) && Ta(za)
+ }
+ },
+ Xf: function (a) {
+ var b = this;
+ if (a instanceof O || a instanceof K) a = new K($a(a, b).lng, $a(a, b).lat), b.Ai(a, {
+ noAnimation: o
+ });
+ else if (cb(a))
+ if (b.xb === Ra) {
+ var c = I.xC[a];
+ c && (pt = c.m, b.Xf(pt))
+ } else {
+ var d = this.bI();
+ d.PF(function (c) {
+ 0 === d.Im() && 2 === d.Ga.result.type && (b.Xf(c.Ek(0).point), Ra.Ak(a) && b.JF(a))
+ });
+ d.search(a, {
+ log: "center"
+ })
+ }
+ },
+ Gd: function (a, b) {
+ "[object Undefined]" !== Object.prototype.toString.call(b) && (b = parseInt(b));
+ B.Ln("cus.fire", "time", {
+ z_loadscripttime: ua - ta
+ });
+ var c = this;
+ if (cb(a))
+ if (c.xb === Ra) {
+ var d = I.xC[a];
+ d && (pt = d.m, c.Gd(pt, b))
+ } else {
+ var e = c.bI();
+ e.PF(function (d) {
+ if (0 === e.Im() && (2 === e.Ga.result.type || 11 === e.Ga.result.type)) {
+ var d = d.Ek(0).point,
+ f = b || Q.xx(e.Ga.content.level, c);
+ c.Gd(d, f);
+ Ra.Ak(a) && c.JF(a)
+ }
+ });
+ e.search(a, {
+ log: "center"
+ })
+ }
+ else if ((a instanceof K || a instanceof O) && b) {
+ var b = c.fo(b).zoom,
+ f = $a(a, c);
+ c.Mc = c.Na || b;
+ c.Na = b;
+ d = c.re;
+ c.re = new K(f.lng, f.lat);
+ c.dc = c.Nd.Jk(c.re, c.Sb);
+ c.TC = c.TC || c.Na;
+ c.SC = c.SC || c.re;
+ var g = new N("onload"),
+ i = new N("onloadcode");
+ g.point = new K(f.lng, f.lat);
+ g.pixel = c.Cc(c.re, c.Na);
+ g.zoom = b;
+ c.loaded || (c.loaded = o, c.dispatchEvent(g), va || (va = db()));
+ c.dispatchEvent(i);
+ f = new N("onmoveend");
+ f.EH = "centerAndZoom";
+ d.ab(c.re) || c.dispatchEvent(f);
+ c.dispatchEvent(new N("onmoveend"));
+ c.Mc !== c.Na && (d = new N("onzoomend"), d.EH = "centerAndZoom", c.dispatchEvent(d));
+ c.B.Xo && c.Xo()
+ }
+ },
+ bI: function () {
+ this.R.UM || (this.R.UM = new eb(1));
+ return this.R.UM
+ },
+ reset: function () {
+ this.Gd(this.SC, this.TC, o)
+ },
+ enableDragging: function () {
+ this.B.Gb = o
+ },
+ disableDragging: function () {
+ this.B.Gb = q
+ },
+ enableInertialDragging: function () {
+ this.B.sx = o
+ },
+ disableInertialDragging: function () {
+ this.B.sx = q
+ },
+ enableScrollWheelZoom: function () {
+ this.B.$o = o
+ },
+ disableScrollWheelZoom: function () {
+ this.B.$o = q
+ },
+ enableContinuousZoom: function () {
+ this.B.Zo = o
+ },
+ disableContinuousZoom: function () {
+ this.B.Zo = q
+ },
+ enableDoubleClickZoom: function () {
+ this.B.yD = o
+ },
+ disableDoubleClickZoom: function () {
+ this.B.yD = q
+ },
+ enableKeyboard: function () {
+ this.B.tx = o
+ },
+ disableKeyboard: function () {
+ this.B.tx = q
+ },
+ enablePinchToZoom: function () {
+ this.B.wm = o
+ },
+ disablePinchToZoom: function () {
+ this.B.wm = q
+ },
+ enableAutoResize: function () {
+ this.B.Ss = o;
+ this.Co();
+ this.R.fm || (this.R.fm = setInterval(this.Co, 80))
+ },
+ disableAutoResize: function () {
+ this.B.Ss = q;
+ this.R.fm && (clearInterval(this.R.fm), this.R.fm = p)
+ },
+ enableBizAuthLogo: function () {
+ this.B.uD = o;
+ this.Ow && this.Ow.show()
+ },
+ disableBizAuthLogo: function () {
+ this.B.uD = q;
+ this.Ow && this.Ow.U()
+ },
+ Xo: function () {
+ this.B.Xo = o;
+ this.Tn || (this.Tn = new fb({
+ uL: o
+ }), this.$g(this.Tn))
+ },
+ DW: function () {
+ this.B.Xo = q;
+ this.Tn && (this.Ah(this.Tn), this.Tn = p, delete this.Tn)
+ },
+ vb: function () {
+ return this.Ds && this.Ds instanceof M ? new M(this.Ds.width, this.Ds.height) : new M(this.Ua.clientWidth, this.Ua.clientHeight)
+ },
+ Ce: function (a) {
+ a && a instanceof M ? (this.Ds = a, this.Ua.style.width = a.width + "px", this.Ua.style.height = a.height + "px") : this.Ds = p
+ },
+ wc: v("re"),
+ pc: function () {
+ return gb(this.re, this)
+ },
+ ga: v("Na"),
+ SV: function () {
+ this.Co()
+ },
+ fo: function (a) {
+ var b = this.B.fc,
+ c = this.B.Zb,
+ d = q,
+ a = Math.round(a);
+ a < b && (d = o, a = b);
+ a > c && (d = o, a = c);
+ return {
+ zoom: a,
+ HD: d
+ }
+ },
+ Ha: v("Ua"),
+ Cc: function (a, b) {
+ b = b || this.ga();
+ return this.Nd.Mp(a, b, this.dc, this.vb(), this.Sb)
+ },
+ Mp: function (a, b) {
+ b = b || this.ga();
+ if (a && (a instanceof O || a instanceof K)) return a = $a(a, this), this.Nd.Mp(a, b, this.dc, this.vb(), this.Sb)
+ },
+ Rb: function (a, b) {
+ b = b || this.ga();
+ return this.Nd.Ag(a, b, this.dc, this.vb(), this.Sb)
+ },
+ Ag: function (a, b) {
+ b = b || this.ga();
+ return gb(this.Rb(a, b), this)
+ },
+ We: function (a, b) {
+ if (a) {
+ var a = $a(a, this),
+ c = this.Cc(new K(a.lng, a.lat), b);
+ c.x -= this.offsetX;
+ c.y -= this.offsetY;
+ return c
+ }
+ },
+ KT: function (a, b) {
+ if (a) {
+ var c = new S(a.x, a.y);
+ c.x += this.offsetX;
+ c.y += this.offsetY;
+ return this.Rb(c, b)
+ }
+ },
+ IN: function (a, b) {
+ if (a) {
+ var c = new S(a.x, a.y);
+ c.x += this.offsetX;
+ c.y += this.offsetY;
+ return this.Ag(c, b)
+ }
+ },
+ pointToPixelFor3D: function (a, b) {
+ var c = map.Sb;
+ this.xb === Ra && c && hb.IK(a, this, b)
+ },
+ m4: function (a, b) {
+ var c = map.Sb;
+ this.xb === Ra && c && hb.HK(a, this, b)
+ },
+ n4: function (a, b) {
+ var c = this,
+ d = map.Sb;
+ c.xb === Ra && d && hb.IK(a, c, function (a) {
+ a.x -= c.offsetX;
+ a.y -= c.offsetY;
+ b && b(a)
+ })
+ },
+ k4: function (a, b) {
+ var c = map.Sb;
+ this.xb === Ra && c && (a.x += this.offsetX, a.y += this.offsetY, hb.HK(a, this, b))
+ },
+ Kd: function (a) {
+ if (!this.by()) return new ib;
+ var b = a || {},
+ a = b.margins || [0, 0, 0, 0],
+ c = b.zoom || p,
+ b = this.Ag({
+ x: a[3],
+ y: this.height - a[2]
+ }, c),
+ a = this.Ag({
+ x: this.width - a[1],
+ y: a[0]
+ }, c);
+ return new ib(b, a)
+ },
+ by: function () {
+ return !!this.loaded
+ },
+ lS: function (a, b) {
+ for (var c = this.oa(), d = b.margins || [10, 10, 10, 10], e = b.zoomFactor || 0, f = d[1] + d[3], d = d[0] + d[2], g = c.hp(), i = c = c.Dm(); i >= g; i--) {
+ var k = this.oa().yc(i);
+ if (a.dG().lng / k < this.width - f && a.dG().lat / k < this.height - d) break
+ }
+ i += e;
+ i < g && (i = g);
+ i > c && (i = c);
+ return i
+ },
+ mt: function (a, b) {
+ var c = {
+ center: this.wc(),
+ zoom: this.ga()
+ };
+ if (!a || !a instanceof ib && 0 === a.length || a instanceof ib && a.Bj()) return c;
+ var d = [];
+ a instanceof ib ? (d.push($a(a.pf(), this)), d.push($a(a.xe(), this))) : d = a.slice(0);
+ for (var b = b || {}, e = [], f = 0, g = d.length; f < g; f++) e.push(this.Nd.Jk($a(d[f], this), this.Sb));
+ d = new ib;
+ for (f = e.length - 1; 0 <= f; f--) d.extend(e[f]);
+ if (d.Bj()) return c;
+ c = d.pc();
+ e = this.lS(d, b);
+ b.margins && (d = b.margins, f = (d[1] - d[3]) / 2, d = (d[0] - d[2]) / 2, g = this.oa().yc(e), b.offset && (f = b.offset.width, d = b.offset.height), c.lng += g * f, c.lat += g * d);
+ c = this.Nd.rh(c, this.Sb);
+ return {
+ center: gb(c, this),
+ zoom: e
+ }
+ },
+ Dh: function (a, b) {
+ var c;
+ c = a && a.center ? a : this.mt(a, b);
+ var b = b || {},
+ d = b.delay || 200;
+ if (c.zoom === this.Na && b.enableAnimation !== q) {
+ var e = this;
+ setTimeout(function () {
+ e.Ai(c.center, {
+ duration: 210
+ })
+ }, d)
+ } else this.Gd(c.center, c.zoom)
+ },
+ Rf: v("Zd"),
+ lh: function () {
+ return this.R.ob && this.R.ob.Va() ? this.R.ob : p
+ },
+ getDistance: function (a, b) {
+ if (a && b) {
+ if (a.ab(b)) return 0;
+ var a = $a(a, this),
+ b = $a(b, this),
+ c = 0,
+ c = T.fp(a, b);
+ if (c === p || c === j) c = 0;
+ return c
+ }
+ },
+ Mx: function () {
+ var a = [],
+ b = this.wa,
+ c = this.Fe;
+ if (b)
+ for (var d in b) b[d] instanceof jb && a.push(b[d]);
+ if (c) {
+ d = 0;
+ for (b = c.length; d < b; d++) a.push(c[d])
+ }
+ return a
+ },
+ oa: function () {
+ this.xb.OF(this);
+ return this.xb
+ },
+ Nz: function () {
+ for (var a = this.R.tF; a < B.Pr.length; a++) B.Pr[a](this);
+ this.R.tF = a
+ },
+ JF: function (a) {
+ this.Sb = Ra.Ak(a);
+ this.Uw = Ra.GL(this.Sb);
+ this.xb === Ra && this.Nd instanceof kb && (this.Nd.ij = this.Sb)
+ },
+ setDefaultCursor: function (a) {
+ this.B.Xb = a;
+ this.platform && (this.platform.style.cursor = this.B.Xb)
+ },
+ getDefaultCursor: function () {
+ return this.B.Xb
+ },
+ setDraggingCursor: function (a) {
+ this.B.Id = a
+ },
+ getDraggingCursor: function () {
+ return this.B.Id
+ },
+ Xx: function () {
+ return this.B.TW && 1.5 <= this.B.devicePixelRatio
+ },
+ Ew: function (a, b) {
+ b ? this.Sh[b] || (this.Sh[b] = {}) : b = "custom";
+ a.tag = b;
+ a instanceof lb && (this.Sh[b][a.ba] = a, a.ra(this));
+ var c = this;
+ L.load("hotspot", function () {
+ c.Nz()
+ }, o)
+ },
+ LZ: function (a, b) {
+ b || (b = "custom");
+ this.Sh[b][a.ba] && delete this.Sh[b][a.ba]
+ },
+ lm: function (a) {
+ a || (a = "custom");
+ this.Sh[a] = {}
+ },
+ gv: function () {
+ var a = this.xb.hp(),
+ b = this.xb.Dm(),
+ c = this.B;
+ c.fc = c.hP || a;
+ c.Zb = c.gP || b;
+ c.fc < a && (c.fc = a);
+ c.Zb > b && (c.Zb = b)
+ },
+ setMinZoom: function (a) {
+ a = Math.round(a);
+ a > this.B.Zb && (a = this.B.Zb);
+ this.B.hP = a;
+ this.LJ()
+ },
+ setMaxZoom: function (a) {
+ a = Math.round(a);
+ a < this.B.fc && (a = this.B.fc);
+ this.B.gP = a;
+ this.LJ()
+ },
+ LJ: function () {
+ this.gv();
+ var a = this.B;
+ this.Na < a.fc ? this.Oc(a.fc) : this.Na > a.Zb && this.Oc(a.Zb);
+ var b = new N("onzoomspanchange");
+ b.fc = a.fc;
+ b.Zb = a.Zb;
+ this.dispatchEvent(b)
+ },
+ w3: v("cC"),
+ getKey: function () {
+ return qa
+ },
+ du: function (a) {
+ var b = this;
+ window.MPC_Mgr && window.MPC_Mgr[b.ba] && window.MPC_Mgr[b.ba].close();
+ b.B.pj = q;
+ B.Ln("cus.fire", "count", "z_setmapstylecount");
+ if (a) {
+ b = this;
+ a.styleJson && (a.styleStr = b.Q_(a.styleJson));
+ J() && x.da.BF ? setTimeout(function () {
+ b.B.ze = a;
+ b.dispatchEvent(new N("onsetcustomstyles", a))
+ }, 50) : (this.B.ze = a, this.dispatchEvent(new N("onsetcustomstyles", a)), this.tM(b.B.ze.geotableId));
+ var c = {
+ style: a.style
+ };
+ a.features && 0 < a.features.length && (c.features = o);
+ a.styleJson && 0 < a.styleJson.length && (c.styleJson = o);
+ Ta(5050, c);
+ a.style && (c = b.B.om[a.style] ? b.B.om[a.style].backColor : b.B.om.normal.backColor) && (this.Ha().style.backgroundColor = c)
+ }
+ },
+ BY: function (a) {
+ this.controls || (this.controls = {
+ navigationControl: new mb,
+ scaleControl: new nb,
+ overviewMapControl: new ob,
+ mapTypeControl: new pb
+ });
+ var b = this,
+ c;
+ for (c in this.controls) b.WN(b.controls[c]);
+ a = a || [];
+ x.jc.Fb(a, function (a) {
+ b.js(b.controls[a])
+ })
+ },
+ tM: function (a) {
+ a ? this.Bs && this.Bs.Bf === a || (this.Ah(this.Bs), this.Bs = new qb({
+ geotableId: a
+ }), this.$g(this.Bs)) : this.Ah(this.Bs)
+ },
+ Wb: function () {
+ var a = this.ga() >= this.B.lG && this.oa() === Oa && 18 >= this.ga(),
+ b = q;
+ try {
+ document.createElement("canvas").getContext("2d"), b = o
+ } catch (c) {
+ b = q
+ }
+ return a && b
+ },
+ getCurrentCity: function () {
+ return {
+ name: this.bh,
+ code: this.ns
+ }
+ },
+ Em: function () {
+ this.P.lo();
+ return this.P
+ },
+ setPanorama: function (a) {
+ this.P = a;
+ this.P.Ry(this)
+ },
+ Q_: function (a) {
+ for (var b = {
+ featureType: "t",
+ elementType: "e",
+ visibility: "v",
+ color: "c",
+ lightness: "l",
+ saturation: "s",
+ weight: "w",
+ zoom: "z",
+ hue: "h"
+ }, c = {
+ all: "all",
+ geometry: "g",
+ "geometry.fill": "g.f",
+ "geometry.stroke": "g.s",
+ labels: "l",
+ "labels.text.fill": "l.t.f",
+ "labels.text.stroke": "l.t.s",
+ "lables.text": "l.t",
+ "labels.icon": "l.i"
+ }, d = [], e = 0, f; f = a[e]; e++) {
+ var g = f.stylers;
+ delete f.stylers;
+ x.extend(f, g);
+ var g = [],
+ i;
+ for (i in b)
+ if (f[i])
+ if ("elementType" === i) g.push(b[i] + ":" + c[f[i]]);
+ else {
+ switch (f[i]) {
+ case "poilabel":
+ f[i] = "poi";
+ break;
+ case "districtlabel":
+ f[i] = "label"
+ }
+ g.push(b[i] + ":" + f[i])
+ }
+ 2 < g.length && d.push(g.join("|"))
+ }
+ return d.join(",")
+ },
+ k_: function (a) {
+ this.B.kL = a
+ }
+ });
+
+ function Ta(a, b) {
+ if (a) {
+ var b = b || {},
+ c = "",
+ d;
+ for (d in b) c = c + "&" + d + "=" + encodeURIComponent(b[d]);
+ var e = function (a) {
+ a && (rb = o, setTimeout(function () {
+ sb.src = B.oc + "images/blank.gif?" + a.src
+ }, 50))
+ },
+ f = function () {
+ var a = tb.shift();
+ a && e(a)
+ };
+ d = (1E8 * Math.random()).toFixed(0);
+ rb ? tb.push({
+ src: "product=jsapi&sub_product=jsapi&v=" + B.version + "&sub_product_v=" + B.version + "&t=" + d + "&code=" + a + "&da_src=" + a + c
+ }) : e({
+ src: "product=jsapi&sub_product=jsapi&v=" + B.version + "&sub_product_v=" + B.version + "&t=" + d + "&code=" + a + "&da_src=" + a + c
+ });
+ ub || (x.M(sb, "load", function () {
+ rb = q;
+ f()
+ }), x.M(sb, "error", function () {
+ rb = q;
+ f()
+ }), ub = o)
+ }
+ }
+ var rb, ub, tb = [],
+ sb = new Image;
+ Ta(5E3, {
+ device_pixel_ratio: window.devicePixelRatio,
+ platform: navigator.platform
+ });
+ B.nM = {
+ TILE_BASE_URLS: ["maponline0.bdimg.com/starpic/?qt=satepc&", "maponline1.bdimg.com/starpic/?qt=satepc&", "maponline2.bdimg.com/starpic/?qt=satepc&", "maponline3.bdimg.com/starpic/?qt=satepc&"],
+ TILE_ONLINE_URLS: ["maponline0.bdimg.com", "maponline1.bdimg.com", "maponline2.bdimg.com", "maponline3.bdimg.com"],
+ TIlE_PERSPECT_URLS: ["gss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a", "gss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a", "gss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a", "gss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a"],
+ geolocControl: "gsp0.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3",
+ TILES_YUN_HOST: ["gsp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy", "gsp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy", "gsp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy", "gsp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy"],
+ traffic: "itsmap2.baidu.com",
+ message: "j.map.baidu.com",
+ baidumap: "map.baidu.com",
+ wuxian: "gsp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a",
+ pano: ["apisv0.bdimg.com", "apisv1.bdimg.com"],
+ panoVerify: "api.map.baidu.com",
+ main_domain_nocdn: {
+ baidu: "api.map.baidu.com",
+ other: "api.map.baidu.com"
+ },
+ main_domain_cdn: {
+ baidu: ["mapapip0.bdimg.com", "mapapip1.bdimg.com", "mapapip2.bdimg.com"],
+ other: ["api.map.baidu.com"],
+ webmap: ["webmap0.bdimg.com"]
+ },
+ map_click: "gsp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK",
+ vector_traffic: "maponline0.bdimg.com"
+ };
+ B.vY = {
+ TILE_BASE_URLS: ["maponline0.bdimg.com/starpic/?qt=satepc&", "maponline1.bdimg.com/starpic/?qt=satepc&", "maponline2.bdimg.com/starpic/?qt=satepc&", "maponline3.bdimg.com/starpic/?qt=satepc&"],
+ TILE_ONLINE_URLS: ["maponline0.bdimg.com", "maponline1.bdimg.com", "maponline2.bdimg.com", "maponline3.bdimg.com"],
+ TIlE_PERSPECT_URLS: ["d0.map.baidu.com", "d1.map.baidu.com", "d2.map.baidu.com", "d3.map.baidu.com"],
+ geolocControl: "loc.map.baidu.com",
+ TILES_YUN_HOST: ["g0.api.map.baidu.com", "g1.api.map.baidu.com", "g2.api.map.baidu.com", "g3.api.map.baidu.com"],
+ traffic: "itsmap2.baidu.com",
+ message: "j.map.baidu.com",
+ baidumap: "map.baidu.com",
+ wuxian: "wuxian.baidu.com",
+ pano: ["apisv0.bdimg.com", "apisv1.bdimg.com"],
+ panoVerify: "api.map.baidu.com",
+ main_domain_nocdn: {
+ baidu: "api.map.baidu.com"
+ },
+ main_domain_cdn: {
+ baidu: ["mapapip0.bdimg.com", "mapapip1.bdimg.com", "mapapip2.bdimg.com"],
+ webmap: ["webmap0.bdimg.com"]
+ },
+ map_click: "mapclick.map.baidu.com",
+ vector_traffic: "maponline0.bdimg.com"
+ };
+ B.s0 = {
+ "0": {
+ proto: "http://",
+ domain: B.vY
+ },
+ 1: {
+ proto: "https://",
+ domain: B.nM
+ },
+ 2: {
+ proto: "https://",
+ domain: B.nM
+ }
+ };
+ B.kz = window.HOST_TYPE || "0";
+ B.url = B.s0[B.kz];
+ B.Fp = B.url.proto + B.url.domain.baidumap + "/";
+ B.oc = B.url.proto + ("2" == B.kz ? B.url.domain.main_domain_nocdn.other : B.url.domain.main_domain_nocdn.baidu) + "/";
+ B.la = B.url.proto + ("2" == B.kz ? B.url.domain.main_domain_cdn.other[0] : B.url.domain.main_domain_nocdn.baidu) + "/";
+ B.gj = B.url.proto + B.url.domain.main_domain_cdn.webmap[0] + "/";
+ // B.JN = B.url.proto + B.url.domain.panoVerify + "/"; // yangjianfei 注释
+ B.JN = ''; // yangjianfei 添加
+ B.Sf = function (a, b) {
+ var c, d, b = b || "";
+ switch (a) {
+ case "main_domain_nocdn":
+ c = B.oc + b;
+ break;
+ case "main_domain_cdn":
+ c = B.la + b;
+ break;
+ default:
+ d = B.url.domain[a], "[object Array]" == Object.prototype.toString.call(d) ? (c = [], x.jc.Fb(d, function (a, d) {
+ c[d] = B.url.proto + a + "/" + b
+ })) : c = B.url.proto + B.url.domain[a] + "/" + b
+ }
+ return c
+ };
+
+ function vb(a) {
+ var b = {
+ duration: 1E3,
+ Hc: 30,
+ To: 0,
+ hc: wb.SM,
+ Pt: t()
+ };
+ this.$f = [];
+ if (a)
+ for (var c in a) b[c] = a[c];
+ this.k = b;
+ if (Za(b.To)) {
+ var d = this;
+ setTimeout(function () {
+ d.start()
+ }, b.To)
+ } else b.To != xb && this.start()
+ }
+ var xb = "INFINITE";
+ vb.prototype.start = function () {
+ this.Xu = db();
+ this.pA = this.Xu + this.k.duration;
+ yb(this)
+ };
+ vb.prototype.add = function (a) {
+ this.$f.push(a)
+ };
+
+ function yb(a) {
+ var b = db();
+ b >= a.pA ? (ab(a.k.va) && a.k.va(a.k.hc(1)), ab(a.k.finish) && a.k.finish(), 0 < a.$f.length && (b = a.$f[0], b.$f = [].concat(a.$f.slice(1)), b.start())) : (a.Oy = a.k.hc((b - a.Xu) / a.k.duration), ab(a.k.va) && a.k.va(a.Oy), a.YF || (a.fs = setTimeout(function () {
+ yb(a)
+ }, 1E3 / a.k.Hc)))
+ }
+ vb.prototype.stop = function (a) {
+ this.YF = o;
+ for (var b = 0; b < this.$f.length; b++) this.$f[b].stop(), this.$f[b] = p;
+ this.$f.length = 0;
+ this.fs && (clearTimeout(this.fs), this.fs = p);
+ this.k.Pt(this.Oy);
+ a && (this.pA = this.Xu, yb(this))
+ };
+ vb.prototype.cancel = ha(1);
+ var wb = {
+ SM: function (a) {
+ return a
+ },
+ reverse: function (a) {
+ return 1 - a
+ },
+ sD: function (a) {
+ return a * a
+ },
+ rD: function (a) {
+ return Math.pow(a, 3)
+ },
+ Qs: function (a) {
+ return -(a * (a - 2))
+ },
+ iL: function (a) {
+ return Math.pow(a - 1, 3) + 1
+ },
+ hL: function (a) {
+ return 0.5 > a ? 2 * a * a : -2 * (a - 2) * a - 1
+ },
+ y2: function (a) {
+ return 0.5 > a ? 4 * Math.pow(a, 3) : 4 * Math.pow(a - 1, 3) + 1
+ },
+ z2: function (a) {
+ return (1 - Math.cos(Math.PI * a)) / 2
+ }
+ };
+ wb["ease-in"] = wb.sD;
+ wb["ease-out"] = wb.Qs;
+ var I = {
+ tG: 34,
+ uG: 21,
+ vG: new M(21, 32),
+ yP: new M(10, 32),
+ xP: new M(24, 36),
+ wP: new M(12, 36),
+ rG: new M(13, 1),
+ // pa: B.la + "images/",
+ pa: "./plugin/offline/images/",
+ F3: "http://mapapip0.bdimg.com/images/",
+ sG: B.la + "images/markers_new.png",
+ uP: 24,
+ vP: 73,
+ xC: {
+ "\u5317\u4eac": {
+ Fy: "bj",
+ m: new K(116.403874, 39.914889)
+ },
+ "\u4e0a\u6d77": {
+ Fy: "sh",
+ m: new K(121.487899, 31.249162)
+ },
+ "\u6df1\u5733": {
+ Fy: "sz",
+ m: new K(114.025974, 22.546054)
+ },
+ "\u5e7f\u5dde": {
+ Fy: "gz",
+ m: new K(113.30765, 23.120049)
+ }
+ },
+ fontFamily: "arial,sans-serif"
+ };
+ x.da.Te ? (x.extend(I, {
+ XK: "url(" + I.pa + "ruler.cur),crosshair",
+ Xb: "-moz-grab",
+ Id: "-moz-grabbing"
+ }), x.platform.GM && (I.fontFamily = "arial,simsun,sans-serif")) : x.da.Tw || x.da.BF ? x.extend(I, {
+ XK: "url(" + I.pa + "ruler.cur) 2 6,crosshair",
+ Xb: "url(" + I.pa + "openhand.cur) 8 8,default",
+ Id: "url(" + I.pa + "closedhand.cur) 8 8,move"
+ }) : x.extend(I, {
+ XK: "url(" + I.pa + "ruler.cur),crosshair",
+ Xb: "url(" + I.pa + "openhand.cur),default",
+ Id: "url(" + I.pa + "closedhand.cur),move"
+ });
+
+ function zb(a, b) {
+ var c = a.style;
+ c.left = b[0] + "px";
+ c.top = b[1] + "px"
+ }
+
+ function Ab(a) {
+ 0 < x.da.ma ? a.unselectable = "on" : a.style.MozUserSelect = "none"
+ }
+
+ function Bb(a) {
+ return a && a.parentNode && 11 !== a.parentNode.nodeType
+ }
+
+ function Cb(a, b) {
+ x.K.$x(a, "beforeEnd", b);
+ return a.lastChild
+ }
+
+ function Db(a) {
+ for (var b = {
+ left: 0,
+ top: 0
+ }; a && a.offsetParent;) b.left += a.offsetLeft, b.top += a.offsetTop, a = a.offsetParent;
+ return b
+ }
+
+ function na(a) {
+ a = window.event || a;
+ a.stopPropagation ? a.stopPropagation() : a.cancelBubble = o
+ }
+
+ function Fb(a) {
+ a = window.event || a;
+ a.preventDefault ? a.preventDefault() : a.returnValue = q;
+ return q
+ }
+
+ function oa(a) {
+ na(a);
+ return Fb(a)
+ }
+
+ function Gb() {
+ var a = document.documentElement,
+ b = document.body;
+ return a && (a.scrollTop || a.scrollLeft) ? [a.scrollTop, a.scrollLeft] : b ? [b.scrollTop, b.scrollLeft] : [0, 0]
+ }
+
+ function Hb(a, b) {
+ if (a && b) return Math.round(Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)))
+ }
+
+ function Ib(a, b) {
+ var c = [],
+ b = b || function (a) {
+ return a
+ },
+ d;
+ for (d in a) c.push(d + "=" + b(a[d]));
+ return c.join("&")
+ }
+
+ function H(a, b, c) {
+ var d = document.createElement(a);
+ c && (d = document.createElementNS(c, a));
+ return x.K.IF(d, b || {})
+ }
+
+ function Ya(a) {
+ if (a.currentStyle) return a.currentStyle;
+ if (a.ownerDocument && a.ownerDocument.defaultView) return a.ownerDocument.defaultView.getComputedStyle(a, p)
+ }
+
+ function ab(a) {
+ return "function" === typeof a
+ }
+
+ function Za(a) {
+ return "number" === typeof a
+ }
+
+ function cb(a) {
+ return "string" == typeof a
+ }
+
+ function Jb(a) {
+ return "undefined" != typeof a
+ }
+
+ function Kb(a) {
+ return "object" == typeof a
+ }
+ var Lb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
+
+ function Mb(a) {
+ var b = "",
+ c, d, e = "",
+ f, g = "",
+ i = 0;
+ f = /[^A-Za-z0-9\+\/\=]/g;
+ if (!a || f.exec(a)) return a;
+ a = a.replace(/[^A-Za-z0-9\+\/\=]/g, "");
+ do c = Lb.indexOf(a.charAt(i++)), d = Lb.indexOf(a.charAt(i++)), f = Lb.indexOf(a.charAt(i++)), g = Lb.indexOf(a.charAt(i++)), c = c << 2 | d >> 4, d = (d & 15) << 4 | f >> 2, e = (f & 3) << 6 | g, b += String.fromCharCode(c), 64 != f && (b += String.fromCharCode(d)), 64 != g && (b += String.fromCharCode(e)); while (i < a.length);
+ return b
+ }
+ var N = x.lang.vz;
+
+ function J() {
+ return !(!x.platform.HE && !x.platform.MY && !x.platform.Sm)
+ }
+
+ function Xa() {
+ return !(!x.platform.GM && !x.platform.yM && !x.platform.SY)
+ }
+
+ function db() {
+ return (new Date).getTime()
+ }
+
+ function Nb() {
+ var a = document.body.appendChild(H("div"));
+ a.innerHTML = '
'); + if (!(1 > b)) { + if (this.page >= this.Wf) { + var d; + a.push('\u9996\u9875'.replace("{temp1}", "BMap.I('" + this.ba + "').toPage(1);")) + } + a.push('\u4e0a\u4e00\u9875'.replace("{temp2}", "BMap.I('" + this.ba + "').toPage(" + b + ");")) + } + if (this.page < this.Wf) d = 0 == this.page % this.Wf ? this.page - this.Wf - 1 : this.page - this.page % this.Wf + 1, b = d + this.Wf - 1; + else { + d = Math.floor(this.Wf / 2); + var e = this.Wf % 2 - 1, + b = this.Md > this.page + d ? this.page + d : this.Md; + d = this.page - d - e + } + this.page > this.Md - this.Wf && this.page >= this.Wf && (d = this.Md - this.Wf + 1, b = this.Md); + for (e = d; e <= b; e++) 0 < e && (e == this.page ? a.push('' + e + "") : 1 <= e && e <= this.Md && (d = '[' + e + "]", a.push(d.replace("{temp3}", "BMap.I('" + this.ba + "').toPage(" + e + ");")))); + c > this.Md || a.push('\u4e0b\u4e00\u9875'.replace("{temp4}", "BMap.I('" + this.ba + "').toPage(" + c + ");")); + a.push("
"); + return a.join("") + }, + toPage: function (a) { + a = a ? a : 1; + "function" == typeof this.uK && (this.uK(a), this.page = a); + this.update && this.va() + } + }); + + function eb(a, b) { + Y.call(this, a, b); + b = b || {}; + b.renderOptions = b.renderOptions || {}; + this.Zp(b.pageCapacity); + "undefined" != typeof b.renderOptions.selectFirstResult && !b.renderOptions.selectFirstResult ? this.bD() : this.zD(); + this.wa = []; + this.xf = []; + this.lb = -1; + this.Oa = []; + var c = this; + L.load("local", function () { + c.Wz() + }, o) + } + x.ua(eb, Y, "LocalSearch"); + eb.oq = 10; + eb.V0 = 1; + eb.Kn = 100; + eb.EG = 2E3; + eb.LG = 1E5; + x.extend(eb.prototype, { + search: function (a, b) { + this.Oa.push({ + method: "search", + arguments: [a, b] + }) + }, + mn: function (a, b, c) { + this.Oa.push({ + method: "searchInBounds", + arguments: [a, b, c] + }) + }, + Vp: function (a, b, c, d) { + this.Oa.push({ + method: "searchNearby", + arguments: [a, b, c, d] + }) + }, + Qe: function () { + delete this.Ga; + delete this.Dd; + delete this.ka; + delete this.fa; + this.lb = -1; + this.sb(); + this.k.ja.Ia && (this.k.ja.Ia.innerHTML = "") + }, + Nm: t(), + zD: function () { + this.k.ja.Zt = o + }, + bD: function () { + this.k.ja.Zt = q + }, + Zp: function (a) { + this.k.Nk = "number" == typeof a && !isNaN(a) ? 1 > a ? eb.oq : a > eb.Kn ? eb.oq : a : eb.oq + }, + qf: function () { + return this.k.Nk + }, + toString: ea("LocalSearch") + }); + var se = eb.prototype; + U(se, { + clearResults: se.Qe, + setPageCapacity: se.Zp, + getPageCapacity: se.qf, + gotoPage: se.Nm, + searchNearby: se.Vp, + searchInBounds: se.mn, + search: se.search, + enableFirstResultSelection: se.zD, + disableFirstResultSelection: se.bD + }); + + function te(a, b) { + Y.call(this, a, b) + } + x.ua(te, Y, "BaseRoute"); + x.extend(te.prototype, { + Qe: t() + }); + + function ue(a, b) { + Y.call(this, a, b); + b = b || {}; + this.gu(b.policy); + this.Zp(b.pageCapacity); + this.xd = ge; + this.Pu = le; + this.Qu = be; + this.wa = []; + this.lb = -1; + this.k.fd = b.enableTraffic || q; + this.Oa = []; + var c = this; + L.load("route", function () { + c.Td() + }) + } + ue.Kn = 100; + ue.KP = [0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1]; + x.ua(ue, te, "TransitRoute"); + x.extend(ue.prototype, { + gu: function (a) { + this.k.$c = 0 <= a && 4 >= a ? a : 0 + }, + UA: function (a, b) { + this.Oa.push({ + method: "_internalSearch", + arguments: [a, b] + }) + }, + search: function (a, b) { + this.Oa.push({ + method: "search", + arguments: [a, b] + }) + }, + Zp: function (a) { + if ("string" === typeof a && (a = parseInt(a, 10), isNaN(a))) { + this.k.Nk = ue.Kn; + return + } + this.k.Nk = "number" !== typeof a ? ue.Kn : 1 <= a && a <= ue.Kn ? Math.round(a) : ue.Kn + }, + toString: ea("TransitRoute"), + GU: function (a) { + return a.replace(/\(.*\)/, "") + } + }); + var ve = ue.prototype; + U(ve, { + _internalSearch: ve.UA + }); + + function we(a, b) { + Y.call(this, a, b); + this.wa = []; + this.lb = -1; + this.Oa = []; + var c = this, + d = this.k.ja; + 1 !== d.vt && 2 !== d.vt && (d.vt = 1); + this.oA = this.k.ja.Gb ? o : q; + L.load("route", function () { + c.Td() + }); + this.CE && this.CE() + } + we.YP = " \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(" "); + x.ua(we, te, "DWRoute"); + x.extend(we.prototype, { + search: function (a, b, c) { + this.Oa.push({ + method: "search", + arguments: [a, b, c] + }) + } + }); + + function xe(a, b) { + we.call(this, a, b); + b = b || {}; + this.k.fd = b.enableTraffic || q; + this.gu(b.policy); + this.xd = he; + this.Pu = pe; + this.Qu = ee + } + x.ua(xe, we, "DrivingRoute"); + xe.prototype.gu = function (a) { + this.k.$c = 0 <= a && 2 >= a ? a : 0 + }; + + function ye(a, b) { + we.call(this, a, b); + this.xd = ie; + this.Pu = qe; + this.Qu = de; + this.oA = q + } + x.ua(ye, we, "WalkingRoute"); + + function ze(a, b) { + x.lang.Da.call(this); + this.Uf = []; + this.dn = []; + this.k = b; + this.cc = a; + this.map = this.k.ja.map || p; + this.Ny = this.k.Ny; + this.Bb = p; + this.jj = 0; + this.cz = ""; + this.fe = 1; + this.ux = ""; + this.Qp = [0, 0, 0, 0, 0, 0, 0]; + this.VE = []; + this.xs = [1, 1, 1, 1, 1, 1, 1]; + this.VO = [1, 1, 1, 1, 1, 1, 1]; + this.Xt = [0, 0, 0, 0, 0, 0, 0]; + this.Rp = [0, 0, 0, 0, 0, 0, 0]; + this.Ma = [{ + o: "", + Fd: 0, + Cn: 0, + x: 0, + y: 0, + qa: -1 + }, { + o: "", + Fd: 0, + Cn: 0, + x: 0, + y: 0, + qa: -1 + }, { + o: "", + Fd: 0, + Cn: 0, + x: 0, + y: 0, + qa: -1 + }, { + o: "", + Fd: 0, + Cn: 0, + x: 0, + y: 0, + qa: -1 + }, { + o: "", + Fd: 0, + Cn: 0, + x: 0, + y: 0, + qa: -1 + }, { + o: "", + Fd: 0, + Cn: 0, + x: 0, + y: 0, + qa: -1 + }, { + o: "", + Fd: 0, + Cn: 0, + x: 0, + y: 0, + qa: -1 + }]; + this.li = -1; + this.wu = []; + this.xu = []; + L.load("route", t()) + } + x.lang.ua(ze, x.lang.Da, "RouteAddr"); + var Ae = navigator.userAgent; + /ipad|iphone|ipod|iph/i.test(Ae); + var Be = /android/i.test(Ae); + + function Ce(a) { + this.vh = a || {} + } + x.extend(Ce.prototype, { + gO: function (a, b, c) { + var d = this; + L.load("route", function () { + d.Td(a, b, c) + }) + } + }); + + function De(a) { + this.k = {}; + x.extend(this.k, a); + this.Oa = []; + var b = this; + L.load("othersearch", function () { + b.Td() + }) + } + x.ua(De, x.lang.Da, "Geocoder"); + x.extend(De.prototype, { + Gm: function (a, b, c) { + this.Oa.push({ + method: "getPoint", + arguments: [a, b, c] + }) + }, + Cm: function (a, b, c) { + this.Oa.push({ + method: "getLocation", + arguments: [a, b, c] + }) + }, + toString: ea("Geocoder") + }); + var Ee = De.prototype; + U(Ee, { + getPoint: Ee.Gm, + getLocation: Ee.Cm + }); + + function Geolocation(a) { + a = a || {}; + this.B = { + timeout: a.timeout || 1E4, + maximumAge: a.maximumAge || 6E5, + il: q + }; + this.qe = []; + var b = this; + L.load("othersearch", function () { + for (var a = 0, d; d = b.qe[a]; a++) b[d.method].apply(b, d.arguments) + }) + } + x.extend(Geolocation.prototype, { + getCurrentPosition: function (a, b) { + this.qe.push({ + method: "getCurrentPosition", + arguments: arguments + }) + }, + getStatus: ea(2), + enableSDKLocation: function () { + J() && (this.B.il = o) + }, + disableSDKLocation: function () { + this.B.il = q + } + }); + + function Ke(a) { + a = a || {}; + a.ja = a.renderOptions || {}; + this.k = { + ja: { + map: a.ja.map || p + } + }; + this.Oa = []; + var b = this; + L.load("othersearch", function () { + b.Td() + }) + } + x.ua(Ke, x.lang.Da, "LocalCity"); + x.extend(Ke.prototype, { + get: function (a) { + this.Oa.push({ + method: "get", + arguments: [a] + }) + }, + toString: ea("LocalCity") + }); + + function Le() { + this.Oa = []; + var a = this; + L.load("othersearch", function () { + a.Td() + }) + } + x.ua(Le, x.lang.Da, "Boundary"); + x.extend(Le.prototype, { + get: function (a, b) { + this.Oa.push({ + method: "get", + arguments: [a, b] + }) + }, + toString: ea("Boundary") + }); + + function Me(a, b) { + Y.call(this, a, b); + this.VP = je; + this.XP = ne; + this.UP = ke; + this.WP = oe; + this.Oa = []; + var c = this; + L.load("buslinesearch", function () { + c.Td() + }) + } + Me.Bv = I.pa + "iw_plus.gif"; + Me.ZS = I.pa + "iw_minus.gif"; + Me.QU = I.pa + "stop_icon.png"; + x.ua(Me, Y); + x.extend(Me.prototype, { + getBusList: function (a) { + this.Oa.push({ + method: "getBusList", + arguments: [a] + }) + }, + getBusLine: function (a) { + this.Oa.push({ + method: "getBusLine", + arguments: [a] + }) + }, + setGetBusListCompleteCallback: function (a) { + this.k.yN = a || t() + }, + setGetBusLineCompleteCallback: function (a) { + this.k.xN = a || t() + }, + setBusListHtmlSetCallback: function (a) { + this.k.vN = a || t() + }, + setBusLineHtmlSetCallback: function (a) { + this.k.uN = a || t() + }, + setPolylinesSetCallback: function (a) { + this.k.fF = a || t() + } + }); + + function Ne(a) { + Y.call(this, a); + a = a || {}; + this.nc = { + input: a.input || p, + nC: a.baseDom || p, + types: a.types || [], + yy: a.onSearchComplete || t() + }; + this.Ad.src = a.location || "\u5168\u56fd"; + this.ej = ""; + this.og = p; + this.qI = ""; + this.Vi(); + Ta(Ja); + var b = this; + L.load("autocomplete", function () { + b.Td() + }) + } + x.ua(Ne, Y, "Autocomplete"); + x.extend(Ne.prototype, { + Vi: t(), + show: t(), + U: t(), + QF: function (a) { + this.nc.types = a + }, + tn: function (a) { + this.Ad.src = a + }, + search: da("ej"), + Qy: da("qI") + }); + var Va; + + function Qa(a, b) { + function c() { + e.k.visible ? ("inter" === e.Le && Xa() && e.k.haveBreakId && e.k.indoorExitControl === o ? x.K.show(e.pr) : x.K.U(e.pr), this.Ed && this.k.closeControl && this.Af && this.D && this.D.Ha() === this.C ? x.K.show(e.Af) : x.K.U(e.Af), this.k.forceCloseControl && x.K.show(e.Af)) : (x.K.U(e.Af), x.K.U(e.pr)) + } + this.C = "string" == typeof a ? x.$(a) : a; + this.ba = Oe++; + this.k = { + enableScrollWheelZoom: o, + panoramaRenderer: Pa() ? "javascript" : "flash", + swfSrc: B.Sf("main_domain_nocdn", "res/swf/") + "APILoader.swf", + visible: o, + indoorExitControl: o, + indoorFloorControl: q, + linksControl: o, + clickOnRoad: o, + navigationControl: o, + closeControl: o, + indoorSceneSwitchControl: o, + albumsControl: q, + albumsControlOptions: {}, + copyrightControlOptions: {}, + forceCloseControl: q, + haveBreakId: q + }; + var b = b || {}, + d; + for (d in b) this.k[d] = b[d]; + b.closeControl === o && (this.k.forceCloseControl = o); + b.useWebGL === q && Pa(q); + this.Ea = { + heading: 0, + pitch: 0 + }; + this.ko = []; + this.Kb = this.Ya = p; + this.jk = this.mr(); + this.wa = []; + this.Kc = 1; + this.Le = this.vT = this.ml = ""; + this.Ke = {}; + this.Nf = p; + this.Ug = []; + this.Ir = []; + "cvsRender" == this.jk || Pa() ? (this.ck = 90, this.ek = -90) : "cssRender" == this.jk && (this.ck = 45, this.ek = -45); + this.Mr = q; + var e = this, + f = (1E5 * Math.random()).toFixed(0); + B._rd = B._rd || {}; + B._rd["_cbk" + f] = function (a) { + if (!a || a.error === j || a.error !== 0) Nc("PANORAMA"); + else { + this.jk === "flashRender" ? L.load("panoramaflash", function () { + e.Vi() + }, o) : L.load("panorama", function () { + e.Ab() + }, o); + b.of == "api" ? Ta(Fa) : Ta(Ga) + } + delete B._rd["_cbk" + f] + }; + this.lo = function () { + Mc("PANORAMA", "BMap._rd._cbk" + f); + this.lo = t() + }; + this.k.jT !== o && (this.lo(), B.Ln("cus.fire", "count", "z_loadpanoramacount")); + this.$T(this.C); + this.addEventListener("id_changed", function () { + Ta(Ea, { + from: b.of + }) + }); + this.oQ(); + this.addEventListener("indoorexit_options_changed", c); + this.addEventListener("scene_type_changed", c); + this.addEventListener("onclose_options_changed", c); + this.addEventListener("onvisible_changed", c) + } + var Pe = 4, + Qe = 1, + Oe = 0; + x.lang.ua(Qa, x.lang.Da, "Panorama"); + x.extend(Qa.prototype, { + oQ: function () { + var a = this, + b = this.Af = H("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.pr = H("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.ap() + }; + this.C.appendChild(c); + window.ActiveXObject && !document.addEventListener && (b.style.backgroundColor = "rgb(37,37,37)", c.style.backgroundColor = "rgb(37,37,37)") + }, + ap: t(), + $T: function (a) { + var b, c; + b = a.style; + c = Ya(a).position; + "absolute" != c && "relative" != c && (b.position = "relative", b.zIndex = 0); + if ("absolute" === c || "relative" === c) + if (a = Ya(a).zIndex, !a || "auto" === a) b.zIndex = 0 + }, + HX: v("ko"), + Yb: v("Ya"), + iY: v("mw"), + vO: v("mw"), + ia: v("Kb"), + Fa: v("Ea"), + ga: v("Kc"), + jh: v("ml"), + o3: function () { + return this.E1 || [] + }, + j3: v("vT"), + kt: v("Le"), + Uy: function (a) { + a !== this.Le && (this.Le = a, this.dispatchEvent(new N("onscene_type_changed"))) + }, + rc: function (a, b, c) { + "object" === typeof b && (c = b, b = j); + a != this.Ya && (this.xl = this.Ya, this.yl = this.Kb, this.Ya = a, this.Le = b || "street", this.Kb = p, c && c.pov && this.Nc(c.pov)) + }, + ta: function (a) { + a.ab(this.Kb) || (this.xl = this.Ya, this.yl = this.Kb, this.Kb = a, this.Ya = p) + }, + Nc: function (a) { + a && (this.Ea = a, a = this.Ea.pitch, a > this.ck ? a = this.ck : a < this.ek && (a = this.ek), this.Mr = o, this.Ea.pitch = a) + }, + A_: function (a, b) { + this.ek = 0 <= a ? 0 : a; + this.ck = 0 >= b ? 0 : b + }, + Oc: function (a) { + a != this.Kc && (a > Pe && (a = Pe), a < Qe && (a = Qe), a != this.Kc && (this.Kc = a), "cssRender" === this.jk && this.Nc(this.Ea)) + }, + NB: function () { + if (this.D) + for (var a = this.D.Mx(), b = 0; b < a.length; b++)(a[b] instanceof W || a[b] instanceof td) && a[b].point && this.wa.push(a[b]) + }, + Ry: da("D"), + fu: function (a) { + this.Nf = a || "none" + }, + Fj: function (a) { + for (var b in a) { + if ("object" == typeof a[b]) + for (var c in a[b]) this.k[b][c] = a[b][c]; + else this.k[b] = a[b]; + a.closeControl === o && (this.k.forceCloseControl = o); + a.closeControl === q && (this.k.forceCloseControl = q); + switch (b) { + case "linksControl": + this.dispatchEvent(new N("onlinks_visible_changed")); + break; + case "clickOnRoad": + this.dispatchEvent(new N("onclickonroad_changed")); + break; + case "navigationControl": + this.dispatchEvent(new N("onnavigation_visible_changed")); + break; + case "indoorSceneSwitchControl": + this.dispatchEvent(new N("onindoor_default_switch_mode_changed")); + break; + case "albumsControl": + this.dispatchEvent(new N("onalbums_visible_changed")); + break; + case "albumsControlOptions": + this.dispatchEvent(new N("onalbums_options_changed")); + break; + case "copyrightControlOptions": + this.dispatchEvent(new N("oncopyright_options_changed")); + break; + case "closeControl": + this.dispatchEvent(new N("onclose_options_changed")); + break; + case "indoorExitControl": + this.dispatchEvent(new N("onindoorexit_options_changed")); + break; + case "indoorFloorControl": + this.dispatchEvent(new N("onindoorfloor_options_changed")) + } + } + }, + Hk: function () { + this.Hl.style.visibility = "hidden" + }, + Yy: function () { + this.Hl.style.visibility = "visible" + }, + VW: function () { + this.k.enableScrollWheelZoom = o + }, + GW: function () { + this.k.enableScrollWheelZoom = q + }, + show: function () { + this.k.visible = o + }, + U: function () { + this.k.visible = q + }, + mr: function () { + return Xa() && !J() && "javascript" !== this.k.panoramaRenderer ? "flashRender" : !J() && Pb() ? "cvsRender" : "cssRender" + }, + Ka: function (a) { + this.Ke[a.kd] = a + }, + Ub: function (a) { + delete this.Ke[a] + }, + rE: function () { + return this.k.visible + }, + ih: function () { + return new M(this.C.clientWidth, this.C.clientHeight) + }, + Ha: v("C"), + CL: function () { + var a = B.Sf("baidumap", "?"), + b = this.Yb(); + if (b) { + var b = { + panotype: this.kt(), + heading: this.Fa().heading, + pitch: this.Fa().pitch, + pid: b, + panoid: b, + from: "api" + }, + c; + for (c in b) a += c + "=" + b[c] + "&" + } + return a.slice(0, -1) + }, + Ux: function () { + this.Fj({ + copyrightControlOptions: { + logoVisible: q + } + }) + }, + TF: function () { + this.Fj({ + copyrightControlOptions: { + logoVisible: o + } + }) + }, + hC: function (a) { + function b(a, b) { + return function () { + a.Ir.push({ + hN: b, + gN: arguments + }) + } + } + for (var c = a.getPanoMethodList(), d = "", e = 0, f = c.length; e < f; e++) d = c[e], this[d] = b(this, d); + this.Ug.push(a) + }, + vF: function (a) { + for (var b = this.Ug.length; b--;) this.Ug[b] === a && this.Ug.splice(b, 1) + }, + LF: t() + }); + var Re = Qa.prototype; + U(Re, { + setId: Re.rc, + setPosition: Re.ta, + setPov: Re.Nc, + setZoom: Re.Oc, + setOptions: Re.Fj, + getId: Re.Yb, + getPosition: Re.ia, + getPov: Re.Fa, + getZoom: Re.ga, + getLinks: Re.HX, + getBaiduMapUrl: Re.CL, + hideMapLogo: Re.Ux, + showMapLogo: Re.TF, + enableDoubleClickZoom: Re.D2, + disableDoubleClickZoom: Re.r2, + enableScrollWheelZoom: Re.VW, + disableScrollWheelZoom: Re.GW, + show: Re.show, + hide: Re.U, + addPlugin: Re.hC, + removePlugin: Re.vF, + getVisible: Re.rE, + addOverlay: Re.Ka, + removeOverlay: Re.Ub, + getSceneType: Re.kt, + setPanoramaPOIType: Re.fu, + exitInter: Re.ap, + setInteractiveState: Re.LF + }); + U(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 Se() { + x.lang.Da.call(this); + this.kd = "PanoramaOverlay_" + this.ba; + this.P = p; + this.Pa = o + } + x.lang.ua(Se, x.lang.Da, "PanoramaOverlayBase"); + x.extend(Se.prototype, { + k3: v("kd"), + ra: function () { + aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + remove: function () { + aa("remove\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + Mf: function () { + aa("_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0") + } + }); + + function Te(a, b) { + Se.call(this); + var c = { + position: p, + altitude: 2, + displayDistance: o + }, + b = b || {}, + d; + for (d in b) c[d] = b[d]; + this.Kb = c.position; + this.Sj = a; + this.Fq = c.altitude; + this.AR = c.displayDistance; + this.ZF = c.color; + this.lM = c.hoverColor; + this.backgroundColor = c.backgroundColor; + this.oK = c.backgroundHoverColor; + this.borderColor = c.borderColor; + this.sK = c.borderHoverColor; + this.fontSize = c.fontSize; + this.padding = c.padding; + this.xE = c.imageUrl; + this.size = c.size; + this.ye = c.image; + this.width = c.width; + this.height = c.height; + this.xY = c.imageData; + this.borderWidth = c.borderWidth + } + x.lang.ua(Te, Se, "PanoramaLabel"); + x.extend(Te.prototype, { + P2: v("borderWidth"), + getImageData: v("xY"), + Km: v("ZF"), + d3: v("lM"), + L2: v("backgroundColor"), + M2: v("oK"), + N2: v("borderColor"), + O2: v("sK"), + a3: v("fontSize"), + l3: v("padding"), + e3: v("xE"), + vb: v("size"), + Dx: v("ye"), + ta: function (a) { + this.Kb = a; + this.Mf("position", a) + }, + ia: v("Kb"), + ad: function (a) { + this.Sj = a; + this.Mf("content", a) + }, + Bk: v("Sj"), + GF: function (a) { + this.Fq = a; + this.Mf("altitude", a) + }, + dp: v("Fq"), + Fa: function () { + var a = this.ia(), + b = p, + c = p; + this.P && (c = this.P.ia()); + if (a && c) + if (a.ab(c)) b = this.P.Fa(); + else { + b = {}; + b.heading = Ue(a.lng - c.lng, a.lat - c.lat) || 0; + var a = b, + c = this.dp(), + d = this.co(); + a.pitch = Math.round(180 * (Math.atan(c / d) / Math.PI)) || 0 + } + return b + }, + co: function () { + var a = 0, + b, c; + this.P && (b = this.P.ia(), (c = this.ia()) && !c.ab(b) && (a = T.fp(b, c))); + return a + }, + U: function () { + aa("hide\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + show: function () { + aa("show\u65b9\u6cd5\u672a\u5b9e\u73b0") + }, + Mf: t() + }); + var Ve = Te.prototype; + U(Ve, { + setPosition: Ve.ta, + getPosition: Ve.ia, + setContent: Ve.ad, + getContent: Ve.Bk, + setAltitude: Ve.GF, + getAltitude: Ve.dp, + getPov: Ve.Fa, + show: Ve.show, + hide: Ve.U + }); + + function We(a, b) { + Se.call(this); + var c = { + icon: "", + title: "", + panoInfo: p, + altitude: 2 + }, + b = b || {}, + d; + for (d in b) c[d] = b[d]; + this.Kb = a; + this.lI = c.icon; + this.IJ = c.title; + this.Fq = c.altitude; + this.NT = c.panoInfo; + this.Ea = { + heading: 0, + pitch: 0 + } + } + x.lang.ua(We, Se, "PanoramaMarker"); + x.extend(We.prototype, { + ta: function (a) { + this.Kb = a; + this.Mf("position", a) + }, + ia: v("Kb"), + Dc: function (a) { + this.IJ = a; + this.Mf("title", a) + }, + np: v("IJ"), + Vb: function (a) { + this.lI = icon; + this.Mf("icon", a) + }, + gp: v("lI"), + GF: function (a) { + this.Fq = a; + this.Mf("altitude", a) + }, + dp: v("Fq"), + iE: v("NT"), + Fa: function () { + var a = p; + if (this.P) { + var a = this.P.ia(), + b = this.ia(), + a = Ue(b.lng - a.lng, b.lat - a.lat); + isNaN(a) && (a = 0); + a = { + heading: a, + pitch: 0 + } + } else a = this.Ea; + return a + }, + Mf: t() + }); + var Xe = We.prototype; + U(Xe, { + setPosition: Xe.ta, + getPosition: Xe.ia, + setTitle: Xe.Dc, + getTitle: Xe.np, + setAltitude: Xe.GF, + getAltitude: Xe.dp, + getPanoInfo: Xe.iE, + getIcon: Xe.gp, + setIcon: Xe.Vb, + getPov: Xe.Fa + }); + + function Ue(a, b) { + var c = 0; + if (0 !== a && 0 !== b) { + var c = 180 * (Math.atan(a / b) / Math.PI), + d = 0; + 0 < a && 0 > b && (d = 90); + 0 > a && 0 > b && (d = 180); + 0 > a && 0 < b && (d = 270); + c = (c + 90) % 90 + d + } else 0 === a ? c = 0 > b ? 180 : 0 : 0 === b && (c = 0 < a ? 90 : 270); + return Math.round(c) + } + + function Pa(a) { + if ("boolean" === typeof Ye) return Ye; + if (a === q || !window.WebGLRenderingContext) return Ye = q; + if (x.platform.Sm) { + a = 0; + try { + a = navigator.userAgent.split("Android ")[1].charAt(0) + } catch (b) { } + if (5 > a) return Ye = q + } + var a = document.createElement("canvas"), + c = p; + try { + c = a.getContext("webgl") + } catch (d) { + Ye = q + } + return Ye = c === p ? q : o + } + var Ye; + + function Ze() { + if ("boolean" === typeof $e) return $e; + $e = o; + if (x.platform.HE) return o; + var a = navigator.userAgent; + return -1 < a.indexOf("Chrome") || -1 < a.indexOf("SAMSUNG-GT-I9508") ? o : $e = q + } + var $e; + + function ad(a, b) { + this.P = a || p; + var c = this; + c.P && c.ca(); + L.load("pservice", function () { + c.TQ() + }); + "api" == (b || {}).of ? Ta(Ha) : Ta(Ia); + this.yd = { + getPanoramaById: [], + getPanoramaByLocation: [], + getVisiblePOIs: [], + getRecommendPanosById: [], + getPanoramaVersions: [], + checkPanoSupportByCityCode: [], + getPanoramaByPOIId: [], + getCopyrightProviders: [] + } + } + B.bn(function (a) { + "flashRender" !== a.mr() && new ad(a, { + of: "api" + }) + }); + x.extend(ad.prototype, { + ca: function () { + function a(a) { + if (a) { + if (a.id != b.mw) { + b.vO(a.id); + b.ea = a; + Ze() || b.dispatchEvent(new N("onthumbnail_complete")); + b.Ya != p && (b.yl = b._position); + for (var c in a) + if (a.hasOwnProperty(c)) switch (b["_" + c] = a[c], c) { + case "position": + b.Kb = a[c]; + break; + case "id": + b.Ya = a[c]; + break; + case "links": + b.ko = a[c]; + break; + case "zoom": + b.Kc = a[c] + } + if (b.yl) { + var f = b.yl, + g = b._position; + c = f.lat; + var i = g.lat, + k = Qb(i - c), + f = Qb(g.lng - f.lng); + c = Math.sin(k / 2) * Math.sin(k / 2) + Math.cos(Qb(c)) * Math.cos(Qb(i)) * Math.sin(f / 2) * Math.sin(f / 2); + b.AH = 6371E3 * 2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)) + } + c = new N("ondataload"); + b.show(); + c.data = a; + b.dispatchEvent(c); + b.dispatchEvent(new N("onposition_changed")); + b.dispatchEvent(new N("onlinks_changed")); + b.dispatchEvent(new N("oncopyright_changed"), { + copyright: a.copyright + }); + a.jm ? (b.Fj({ + haveBreakId: o + }), Xa() && b.k.closeControl && x.K.show(b.pr)) : x.K.U(b.pr) + } + } else b.Ya = b.xl, b.Kb = b.yl, b.dispatchEvent(new N("onnoresult")) + } + var b = this.P, + c = this; + b.addEventListener("id_changed", function () { + B.Jw("y"); + c.kp(b.Yb(), a) + }); + b.addEventListener("iid_changed", function () { + B.Jw("y"); + c.mg(ad.jl + "qt=idata&iid=" + b.KA + "&fn=", function (b) { + if (b && b.result && 0 == b.result.error) { + var b = b.content[0].interinfo, + e = {}; + e.jm = b.BreakID; + for (var f = b.Defaultfloor, g = p, i = 0; i < b.Floors.length; i++) + if (b.Floors[i].Floor == f) { + g = b.Floors[i]; + break + } + e.id = g.StartID || g.Points[0].PID; + c.kp(e.id, a, e) + } + }) + }); + b.addEventListener("position_changed_inner", function () { + B.Jw("y"); + c.tj(b.ia(), a) + }) + }, + kp: function (a, b) { + this.yd.getPanoramaById.push(arguments) + }, + tj: function (a, b, c) { + this.yd.getPanoramaByLocation.push(arguments) + }, + sE: function (a, b, c, d) { + this.yd.getVisiblePOIs.push(arguments) + }, + Px: function (a, b) { + this.yd.getRecommendPanosById.push(arguments) + }, + Ox: function (a) { + this.yd.getPanoramaVersions.push(arguments) + }, + vC: function (a, b) { + this.yd.checkPanoSupportByCityCode.push(arguments) + }, + Nx: function (a, b) { + this.yd.getPanoramaByPOIId.push(arguments) + }, + HL: function (a) { + this.yd.getCopyrightProviders.push(arguments) + } + }); + var af = ad.prototype; + U(af, { + getPanoramaById: af.kp, + getPanoramaByLocation: af.tj, + getPanoramaByPOIId: af.Nx + }); + + function $c(a) { + Gd.call(this); + "api" == (a || {}).of ? Ta(Ba) : Ta(Ca) + } + $c.SG = B.Sf("pano", ""); + $c.prototype = new Gd; + $c.prototype.getTilesUrl = function (a, b) { + var c = $c.SG[(a.x + a.y) % $c.SG.length] + "?udt=20150114&qt=tile&styles=pl&x=" + a.x + "&y=" + a.y + "&z=" + b; + x.da.ma && 6 >= x.da.ma && (c += "&color_dep=32"); + var d = Ec(c); + d ? (d = Pc(d.path, { + yp: q + }), c += "&" + d) : c = p; + return c + }; + $c.prototype.Gt = ea(o); + bf.Xd = new T; + + function bf() { } + x.extend(bf, { + HW: function (a, b, c) { + c = x.lang.Lc(c); + b = { + data: b + }; + "position_changed" == a && (b.data = bf.Xd.Ej(new S(b.data.mercatorX, b.data.mercatorY))); + c.dispatchEvent(new N("on" + a), b) + } + }); + var cf = bf; + U(cf, { + dispatchFlashEvent: cf.HW + }); + var df = { + MP: 50 + }; + df.Ru = B.Sf("pano")[0]; + df.Nu = { + width: 220, + height: 60 + }; + x.extend(df, { + wp: function (a, b, c, d) { + if (!b || !c || !c.lngLat || !c.panoInstance) d(); + else { + this.qo === j && (this.qo = new ad(p, { + of: "api" + })); + var e = this; + this.qo.vC(b, function (b) { + b ? e.qo.tj(c.lngLat, df.MP, function (b) { + if (b && b.id) { + var f = b.id, + k = b.wh, + b = b.xh, + l = ad.Xd.zl(c.lngLat), + m = e.AS(l, { + x: k, + y: b + }), + k = e.RL(f, m, 0, df.Nu.width, df.Nu.height); + a.content = e.BS(a.content, k, c.titleTip, c.beforeDomId); + a.addEventListener("open", function () { + ja.M(x.Ec("infoWndPano"), "click", function () { + c.panoInstance.rc(f); + c.panoInstance.show(); + c.panoInstance.Nc({ + heading: m, + pitch: 0 + }) + }) + }) + } + d() + }) : d() + }) + } + }, + BS: function (a, b, c, d) { + var c = c || "", + e; + !d || !a.split(d)[0] ? (d = a, a = "") : (d = a.split(d)[0], e = d.lastIndexOf("<"), d = a.substring(0, e), a = a.substring(e)); + e = []; + var f = df.Nu.width, + g = df.Nu.height; + e.push(d); + e.push("
') + 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 |