window.BMAP_AUTHENTIC_KEY = "148ba719517de5b636685962d779d367"; (function() { var aa = void 0, i = !0, n = null, o = !1; function p() { return function() {} } function ba(a) { return function(b) { this[a] = b } } function s(a) { return function() { return this[a] } } function ca(a) { return function() { return a } } var ea = []; function fa(a) { return function() { return ea[a].apply(this, arguments) } } function ga(a, b) { return ea[a] = b } var ha, t = ha = t || { version: "1.3.4" }; t.M = "$BAIDU$"; window[t.M] = window[t.M] || {}; t.object = t.object || {}; t.extend = t.object.extend = function(a, b) { for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); return a }; t.B = t.B || {}; t.B.Q = function(a) { return "string" == typeof a || a instanceof String ? document.getElementById(a) : a && a.nodeName && (1 == a.nodeType || 9 == a.nodeType) ? a: n }; t.Q = t.yc = t.B.Q; t.B.J = function(a) { a = t.B.Q(a); a.style.display = "none"; return a }; t.J = t.B.J; t.lang = t.lang || {}; t.lang.ue = function(a) { return "[object String]" == Object.prototype.toString.call(a) }; t.ue = t.lang.ue; t.B.Og = function(a) { return t.lang.ue(a) ? document.getElementById(a) : a }; t.Og = t.B.Og; t.B.contains = function(a, b) { var c = t.B.Og, a = c(a), b = c(b); return a.contains ? a != b && a.contains(b) : !!(a.compareDocumentPosition(b) & 16) }; t.N = t.N || {}; /msie (\d+\.\d)/i.test(navigator.userAgent) && (t.N.V = t.V = document.documentMode || +RegExp.$1); var ia = { cellpadding: "cellPadding", cellspacing: "cellSpacing", colspan: "colSpan", rowspan: "rowSpan", valign: "vAlign", usemap: "useMap", frameborder: "frameBorder" }; 8 > t.N.V ? (ia["for"] = "htmlFor", ia["class"] = "className") : (ia.htmlFor = "for", ia.className = "class"); t.B.lw = ia; t.B.ov = function(a, b, c) { a = t.B.Q(a); if ("style" == b) a.style.cssText = c; else { b = t.B.lw[b] || b; a.setAttribute(b, c) } return a }; t.ov = t.B.ov; t.B.pv = function(a, b) { var a = t.B.Q(a), c; for (c in b) t.B.ov(a, c, b[c]); return a }; t.pv = t.B.pv; t.Lh = t.Lh || {}; (function() { var a = RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)", "g"); t.Lh.trim = function(b) { return ("" + b).replace(a, "") } })(); t.trim = t.Lh.trim; t.Lh.Oi = 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 !== n && /\[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 }; t.Oi = t.Lh.Oi; t.B.Vb = function(a, b) { for (var a = t.B.Q(a), c = a.className.split(/\s+/), d = b.split(/\s+/), e, f = d.length, g, j = 0; j < f; ++j) { g = 0; for (e = c.length; g < e; ++g) if (c[g] == d[j]) { c.splice(g, 1); break } } a.className = c.join(" "); return a }; t.Vb = t.B.Vb; t.B.xu = function(a, b, c) { var a = t.B.Q(a), 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 }; t.xu = t.B.xu; t.B.show = function(a) { a = t.B.Q(a); a.style.display = ""; return a }; t.show = t.B.show; t.B.Wt = function(a) { a = t.B.Q(a); return a.nodeType == 9 ? a: a.ownerDocument || a.document }; t.B.ab = function(a, b) { for (var a = t.B.Q(a), 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 }; t.ab = t.B.ab; t.B.Bs = t.B.Bs || {}; t.B.mi = t.B.mi || []; t.B.mi.filter = function(a, b, c) { for (var d = 0, e = t.B.mi, f; f = e[d]; d++) if (f = f[c]) b = f(a, b); return b }; t.Lh.VB = function(a) { return a.indexOf("-") < 0 && a.indexOf("_") < 0 ? a: a.replace(/[-_][^-_]/g, function(a) { return a.charAt(1).toUpperCase() }) }; t.B.RN = function(a, b) { t.B.ru(a, b) ? t.B.Vb(a, b) : t.B.ab(a, b) }; t.B.ru = function(a) { if (arguments.length <= 0 || typeof a === "function") return this; if (this.size() <= 0) return o; var a = a.replace(/^\s+/g, "").replace(/\s+$/g, "").replace(/\s+/g, " "), b = a.split(" "), c; t.forEach(this, function(a) { for (var a = a.className, e = 0; e < b.length; e++) if (!~ (" " + a + " ").indexOf(" " + b[e] + " ")) { c = o; return } c !== o && (c = i) }); return c }; t.B.zg = function(a, b) { var c = t.B, a = c.Q(a), b = t.Lh.VB(b), d = a.style[b]; if (!d) var e = c.Bs[b], d = a.currentStyle || (t.N.V ? a.style: getComputedStyle(a, n)), d = e && e.get ? e.get(a, d) : d[e || b]; if (e = c.mi) d = e.filter(b, d, "get"); return d }; t.zg = t.B.zg; /opera\/(\d+\.\d)/i.test(navigator.userAgent) && (t.N.opera = +RegExp.$1); t.N.xA = /webkit/i.test(navigator.userAgent); t.N.nJ = /gecko/i.test(navigator.userAgent) && !/like gecko/i.test(navigator.userAgent); t.N.Du = "CSS1Compat" == document.compatMode; t.B.da = function(a) { var a = t.B.Q(a), b = t.B.Wt(a), c = t.N, d = t.B.zg; c.nJ > 0 && b.getBoxObjectFor && d(a, "position"); var e = { left: 0, top: 0 }, f; if (a == (c.V && !c.Du ? 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.V && !c.Du) { 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.xA > 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.xA > 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) && (t.N.Te = +RegExp.$1); var ja = navigator.userAgent; /(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(ja) && !/chrome/i.test(ja) && (t.N.sK = +(RegExp.$1 || RegExp.$2)); /chrome\/(\d+\.\d)/i.test(navigator.userAgent) && (t.N.Ry = +RegExp.$1); t.Qb = t.Qb || {}; t.Qb.Fc = 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 === o) break } return a }; t.Fc = t.Qb.Fc; t.lang.M = function() { return "TANGRAM__" + (window[t.M]._counter++).toString(36) }; window[t.M]._counter = window[t.M]._counter || 1; window[t.M]._instances = window[t.M]._instances || {}; t.lang.Sm = function(a) { return "[object Function]" == Object.prototype.toString.call(a) }; t.lang.ra = function(a) { this.M = a || t.lang.M(); window[t.M]._instances[this.M] = this }; window[t.M]._instances = window[t.M]._instances || {}; t.lang.ra.prototype.Hf = fa(1); t.lang.ra.prototype.toString = function() { return "[object " + (this.gD || "Object") + "]" }; t.lang.Jq = function(a, b) { this.type = a; this.returnValue = i; this.target = b || n; this.currentTarget = n }; t.lang.ra.prototype.addEventListener = function(a, b, c) { if (t.lang.Sm(b)) { ! this.cg && (this.cg = {}); var d = this.cg, e; if (typeof c == "string" && c) { if (/[^\w\-]/.test(c)) throw "nonstandard key:" + c; e = b.cA = c } a.indexOf("on") != 0 && (a = "on" + a); typeof d[a] != "object" && (d[a] = {}); e = e || t.lang.M(); b.cA = e; d[a][e] = b } }; t.lang.ra.prototype.removeEventListener = function(a, b) { if (t.lang.Sm(b)) b = b.cA; else if (!t.lang.ue(b)) return; ! this.cg && (this.cg = {}); a.indexOf("on") != 0 && (a = "on" + a); var c = this.cg; c[a] && c[a][b] && delete c[a][b] }; t.lang.ra.prototype.dispatchEvent = function(a, b) { t.lang.ue(a) && (a = new t.lang.Jq(a)); ! this.cg && (this.cg = {}); var b = b || {}, c; for (c in b) a[c] = b[c]; var d = this.cg, e = a.type; a.target = a.target || this; a.currentTarget = this; e.indexOf("on") != 0 && (e = "on" + e); t.lang.Sm(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 }; t.lang.ja = 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.gL = b.prototype; if ("string" == typeof c) e.gD = c }; t.ja = t.lang.ja; t.lang.Gc = function(a) { return window[t.M]._instances[a] || n }; t.platform = t.platform || {}; t.platform.rJ = /macintosh/i.test(navigator.userAgent); t.platform.yA = /windows/i.test(navigator.userAgent); t.platform.wJ = /x11/i.test(navigator.userAgent); t.platform.vk = /android/i.test(navigator.userAgent); /android (\d+\.\d)/i.test(navigator.userAgent) && (t.platform.Cy = t.Cy = RegExp.$1); t.platform.pJ = /ipad/i.test(navigator.userAgent); t.platform.qJ = /iphone/i.test(navigator.userAgent); function y(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 } t.lang.mp = function(a) { var b = window[t.M]; b.NE && delete b.NE[a] }; t.event = {}; t.D = t.event.D = function(a, b, c) { if (! (a = t.Q(a))) return a; b = b.replace(/^on/, ""); a.addEventListener ? a.addEventListener(b, c, o) : a.attachEvent && a.attachEvent("on" + b, c); return a }; t.gd = t.event.gd = function(a, b, c) { if (! (a = t.Q(a))) return a; b = b.replace(/^on/, ""); a.removeEventListener ? a.removeEventListener(b, c, o) : a.detachEvent && a.detachEvent("on" + b, c); return a }; t.B.ru = function(a, b) { if (!a || !a.className || typeof a.className != "string") return o; var c = -1; try { c = a.className == b || a.className.search(RegExp("(\\s|^)" + b + "(\\s|$)")) } catch(d) { return o } return c > -1 }; t.Ht = function() { function a(a) { document.addEventListener && (this.element = a, this.zz = this.Zi ? "touchstart": "mousedown", this.Kt = this.Zi ? "touchmove": "mousemove", this.Jt = this.Zi ? "touchend": "mouseup", this.Pu = o, this.KB = this.JB = 0, this.element.addEventListener(this.zz, this, o), ha.D(this.element, "mousedown", p()), this.handleEvent(n)) } a.prototype = { Zi: "ontouchstart" in window || "createTouch" in document, start: function(a) { A(a); this.Pu = o; this.JB = this.Zi ? a.touches[0].clientX: a.clientX; this.KB = this.Zi ? a.touches[0].clientY: a.clientY; this.element.addEventListener(this.Kt, this, o); this.element.addEventListener(this.Jt, this, o) }, move: function(a) { ka(a); var c = this.Zi ? a.touches[0].clientY: a.clientY; if (10 < Math.abs((this.Zi ? a.touches[0].clientX: a.clientX) - this.JB) || 10 < Math.abs(c - this.KB)) this.Pu = i }, end: function(a) { ka(a); this.Pu || (a = document.createEvent("Event"), a.initEvent("tap", o, i), this.element.dispatchEvent(a)); this.element.removeEventListener(this.Kt, this, o); this.element.removeEventListener(this.Jt, this, o) }, handleEvent: function(a) { if (a) switch (a.type) { case this.zz: this.start(a); break; case this.Kt: this.move(a); break; case this.Jt: this.end(a) } } }; return function(b) { return new a(b) } } (); var B = window.BMap || {}; B.version = "2.0"; 0 <= B.version.indexOf("#") && (B.version = "2.0"); B.Xl = []; B.xd = function(a) { this.Xl.push(a) }; B.hs = []; B.Vu = function(a) { this.hs.push(a) }; B.yG = B.apiLoad || p(); var la = window.BMAP_AUTHENTIC_KEY; window.BMAP_AUTHENTIC_KEY = n; var ma = window.BMap_loadScriptTime, na = (new Date).getTime(), oa = n, pa = i, qa = n; function ra(a, b) { if (a = t.Q(a)) { var c = this; t.lang.ra.call(c); b = b || {}; c.G = { Ws: 200, Hb: i, sp: o, Bt: i, ym: o, Am: o, Et: i, zm: i, qp: i, hk: b.enable3DBuilding !== o, Vc: 25, KL: 240, mG: 450, nb: C.nb, qc: C.qc, Op: !!b.Op, tc: b.minZoom || 1, Zc: b.maxZoom || 18, Db: b.mapType || sa, GN: o, rp: o, ut: 500, GM: b.enableHighResolution !== o, up: b.enableMapClick !== o, devicePixelRatio: b.devicePixelRatio || window.devicePixelRatio || 1, hC: b.vectorMapLevel || 3, rc: b.mapStyle || n, EJ: b.logoControl === o ? o: i, GG: ["chrome"] }; c.G.rc && (this.kA(c.G.rc.controls), this.lA(c.G.rc.geotableId)); c.G.rc && c.G.rc.styleId && c.Yz(c.G.rc.styleId); c.G.Gf = { dark: { backColor: "#2D2D2D", textColor: "#bfbfbf", iconUrl: "dicons" }, normal: { backColor: "#F3F1EC", textColor: "#c61b1b", iconUrl: "icons" }, light: { backColor: "#EBF8FC", textColor: "#017fb4", iconUrl: "licons" } }; b.enableAutoResize && (c.G.qp = b.enableAutoResize); t.platform.vk && 1.5 < window.devicePixelRatio && (c.G.devicePixelRatio = 1.5); var d = c.G.GG; if (F()) for (var e = 0, f = d.length; e < f; e++) if (t.N[d[e]]) { c.G.devicePixelRatio = 1; break } c.ya = a; c.ws(a); a.unselectable = "on"; a.innerHTML = ""; a.appendChild(c.va()); b.size && this.Oc(b.size); d = c.xb(); c.width = d.width; c.height = d.height; c.offsetX = 0; c.offsetY = 0; c.platform = a.firstChild; c.Nd = c.platform.firstChild; c.Nd.style.width = c.width + "px"; c.Nd.style.height = c.height + "px"; c.Rc = {}; c.Pe = new G(0, 0); c.Mb = new G(0, 0); c.oa = 1; c.Sb = 0; c.gt = n; c.ft = n; c.wb = ""; c.cp = ""; c.wf = {}; c.wf.custom = {}; c.za = 0; c.S = new ta(a, { ik: "api" }); c.S.J(); c.S.sv(c); b = b || {}; d = c.Db = c.G.Db; c.bd = d.Vi(); d === ua && va(5002); (d === wa || d === xa) && va(5003); d = c.G; d.cC = b.minZoom; d.bC = b.maxZoom; c.gr(); c.F = { Jb: o, lb: 0, Wm: 0, EA: 0, jN: 0, Qs: o, ev: -1, Ed: [] }; c.platform.style.cursor = c.G.nb; for (e = 0; e < B.Xl.length; e++) B.Xl[e](c); c.F.ev = e; c.O(); H.load("map", function() { c.Zb() }); c.G.up && (setTimeout(function() { va("load_mapclick") }, 1E3), H.load("mapclick", function() { window.MPC_Mgr = new ya(c) }, i)); Aa() && H.load("oppc", function() { c.Zq() }); F() && H.load("opmb", function() { c.Zq() }); a = n; c.Gs = [] } } t.lang.ja(ra, t.lang.ra, "Map"); t.extend(ra.prototype, { va: function() { var a = J("div"), b = a.style; b.overflow = "visible"; b.position = "absolute"; b.zIndex = "0"; b.top = b.left = "0px"; var b = J("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 }, ws: function(a) { var b = a.style; b.overflow = "hidden"; "absolute" != Ba(a).position && (b.position = "relative", b.zIndex = 0); b.backgroundColor = "#F3F1EC"; b.color = "#000"; b.textAlign = "left" }, O: function() { var a = this; a.dm = function() { var b = a.xb(); if (a.width != b.width || a.height != b.height) { var c = new K(a.width, a.height), d = new L("onbeforeresize"); d.size = c; a.dispatchEvent(d); a.Zg((b.width - a.width) / 2, (b.height - a.height) / 2); a.Nd.style.width = (a.width = b.width) + "px"; a.Nd.style.height = (a.height = b.height) + "px"; c = new L("onresize"); c.size = b; a.dispatchEvent(c) } }; a.G.qp && (a.F.gm = setInterval(a.dm, 80)) }, Zg: function(a, b, c, d) { var e = this.ha().Ib(this.T()), f = this.bd, g = i; c && G.oA(c) && (this.Pe = new G(c.lng, c.lat), g = o); if (c = c && d ? f.ej(c, this.wb) : this.Mb) if (this.Mb = new G(c.lng + a * e, c.lat - b * e), (a = f.yh(this.Mb, this.wb)) && g) this.Pe = a }, lf: function(a, b) { if (Ca(a) && (a = this.Jj(a).zoom, a != this.oa)) { this.Sb = this.oa; this.oa = a; var c; b ? c = b: this.We() && (c = this.We().da()); c && (c = this.ob(c, this.Sb), this.Zg(this.width / 2 - c.x, this.height / 2 - c.y, this.Va(c, this.Sb), i)); this.dispatchEvent(new L("onzoomstart")); this.dispatchEvent(new L("onzoomstartcode")) } }, Pc: function(a) { this.lf(a) }, Mv: function(a) { this.lf(this.oa + 1, a) }, Nv: function(a) { this.lf(this.oa - 1, a) }, ye: function(a) { a instanceof G && (this.Mb = this.bd.ej(a, this.wb), this.Pe = G.oA(a) ? new G(a.lng, a.lat) : this.bd.yh(this.Mb, this.wb)) }, xe: function(a, b) { a = Math.round(a) || 0; b = Math.round(b) || 0; this.Zg( - a, -b) }, To: function(a) { a && Da(a.Wd) && (a.Wd(this), this.dispatchEvent(new L("onaddcontrol", a))) }, rB: function(a) { a && Da(a.remove) && (a.remove(), this.dispatchEvent(new L("onremovecontrol", a))) }, $j: function(a) { a && Da(a.la) && (a.la(this), this.dispatchEvent(new L("onaddcontextmenu", a))) }, Dk: function(a) { a && Da(a.remove) && (this.dispatchEvent(new L("onremovecontextmenu", a)), a.remove()) }, Xa: function(a) { a && Da(a.Wd) && (a.Wd(this), this.dispatchEvent(new L("onaddoverlay", a))) }, cd: function(a) { a && Da(a.remove) && (a.remove(), this.dispatchEvent(new L("onremoveoverlay", a))) }, Ty: function() { this.dispatchEvent(new L("onclearoverlays")) }, Ne: function(a) { a && this.dispatchEvent(new L("onaddtilelayer", a)) }, hf: function(a) { a && this.dispatchEvent(new L("onremovetilelayer", a)) }, Eg: function(a) { if (this.Db !== a) { var b = new L("onsetmaptype"); b.BN = this.Db; this.Db = this.G.Db = a; this.bd = this.Db.Vi(); this.Zg(0, 0, this.Da(), i); this.gr(); var c = this.Jj(this.T()).zoom; this.lf(c); this.dispatchEvent(b); b = new L("onmaptypechange"); b.oa = c; b.Db = a; this.dispatchEvent(b); (a === wa || a === xa) && va(5003) } }, ze: function(a) { var b = this; if (a instanceof G) b.ye(a, { noAnimation: i }); else if (Ea(a)) if (b.Db == ua) { var c = C.Ts[a]; c && (pt = c.m, b.ze(pt)) } else { var d = this.gx(); d.uv(function(c) { 0 == d.Wi() && 2 == d.pa.result.type && (b.ze(c.oh(0).point), ua.lh(a) && b.rv(a)) }); d.search(a, { log: "center" }) } }, be: function(a, b) { qa = F() ? Fa.yj.lm(101) : Fa.yj.lm(1); qa.Bv(); qa.dc("script_loaded", na - ma); qa.dc("centerAndZoom"); var c = this; if (Ea(a)) if (c.Db == ua) { var d = C.Ts[a]; d && (pt = d.m, c.be(pt, b)) } else { var e = c.gx(); e.uv(function(d) { if (0 == e.Wi() && 2 == e.pa.result.type) { var d = d.oh(0).point, f = b || N.Qt(e.pa.content.level, c); c.be(d, f); ua.lh(a) && c.rv(a) } }); e.search(a, { log: "center" }) } else if (a instanceof G && b) { b = c.Jj(b).zoom; c.Sb = c.oa || b; c.oa = b; c.Pe = new G(a.lng, a.lat); c.Mb = c.bd.ej(c.Pe, c.wb); c.gt = c.gt || c.oa; c.ft = c.ft || c.Pe; var d = new L("onload"), f = new L("onloadcode"); d.point = new G(a.lng, a.lat); d.pixel = c.ob(c.Pe, c.oa); d.zoom = b; c.loaded || (c.loaded = i, c.dispatchEvent(d), oa || (oa = Ga())); c.dispatchEvent(f); c.dispatchEvent(new L("onmoveend")); c.Sb != c.oa && c.dispatchEvent(new L("onzoomend")); c.G.hk && c.hk() } }, gx: function() { this.F.IA || (this.F.IA = new Ia(1)); return this.F.IA }, reset: function() { this.be(this.ft, this.gt, i) }, enableDragging: function() { this.G.Hb = i }, disableDragging: function() { this.G.Hb = o }, enableInertialDragging: function() { this.G.rp = i }, disableInertialDragging: function() { this.G.rp = o }, enableScrollWheelZoom: function() { this.G.Am = i }, disableScrollWheelZoom: function() { this.G.Am = o }, enableContinuousZoom: function() { this.G.ym = i }, disableContinuousZoom: function() { this.G.ym = o }, enableDoubleClickZoom: function() { this.G.Bt = i }, disableDoubleClickZoom: function() { this.G.Bt = o }, enableKeyboard: function() { this.G.sp = i }, disableKeyboard: function() { this.G.sp = o }, enablePinchToZoom: function() { this.G.zm = i }, disablePinchToZoom: function() { this.G.zm = o }, enableAutoResize: function() { this.G.qp = i; this.dm(); this.F.gm || (this.F.gm = setInterval(this.dm, 80)) }, disableAutoResize: function() { this.G.qp = o; this.F.gm && (clearInterval(this.F.gm), this.F.gm = n) }, hk: function() { this.G.hk = i; this.Cj || (this.Cj = new Ja({ Cz: i }), this.Ne(this.Cj)) }, zH: function() { this.G.hk = o; this.Cj && (this.hf(this.Cj), this.Cj = n, delete this.Cj) }, xb: function() { return this.rm && this.rm instanceof K ? new K(this.rm.width, this.rm.height) : new K(this.ya.clientWidth, this.ya.clientHeight) }, Oc: function(a) { a && a instanceof K ? (this.rm = a, this.ya.style.width = a.width + "px", this.ya.style.height = a.height + "px") : this.rm = n }, Da: s("Pe"), T: s("oa"), WG: function() { this.dm() }, Jj: function(a) { var b = this.G.tc, c = this.G.Zc, d = o; a < b && (d = i, a = b); a > c && (d = i, a = c); return { zoom: a, Lt: d } }, Ca: s("ya"), ob: function(a, b) { b = b || this.T(); return this.bd.ob(a, b, this.Mb, this.xb(), this.wb) }, Va: function(a, b) { b = b || this.T(); return this.bd.Va(a, b, this.Mb, this.xb(), this.wb) }, df: function(a, b) { if (a) { var c = this.ob(new G(a.lng, a.lat), b); c.x -= this.offsetX; c.y -= this.offsetY; return c } }, jB: function(a, b) { if (a) { var c = new O(a.x, a.y); c.x += this.offsetX; c.y += this.offsetY; return this.Va(c, b) } }, pointToPixelFor3D: function(a, b) { var c = map.wb; this.Db == ua && c && Ka.Yy(a, this, b) }, wN: function(a, b) { var c = map.wb; this.Db == ua && c && Ka.Xy(a, this, b) }, xN: function(a, b) { var c = this, d = map.wb; c.Db == ua && d && Ka.Yy(a, c, function(a) { a.x -= c.offsetX; a.y -= c.offsetY; b && b(a) }) }, vN: function(a, b) { var c = map.wb; this.Db == ua && c && (a.x += this.offsetX, a.y += this.offsetY, Ka.Xy(a, this, b)) }, xg: function(a) { if (!this.Au()) return new La; var b = a || {}, a = b.margins || [0, 0, 0, 0], c = b.zoom || n, b = this.Va({ x: a[3], y: this.height - a[2] }, c), a = this.Va({ x: this.width - a[1], y: a[0] }, c); return new La(b, a) }, Au: function() { return !! this.loaded }, gE: function(a, b) { for (var c = this.ha(), d = b.margins || [10, 10, 10, 10], e = b.zoomFactor || 0, f = d[1] + d[3], d = d[0] + d[2], g = c.lk(), j = c = c.Ti(); j >= g; j--) { var k = this.ha().Ib(j); if (a.Iv().lng / k < this.width - f && a.Iv().lat / k < this.height - d) break } j += e; j < g && (j = g); j > c && (j = c); return j }, Ip: function(a, b) { var c = { center: this.Da(), zoom: this.T()
百度map api 前段js
最新推荐文章于 2024-07-24 20:22:36 发布
本文详细介绍了如何在前端项目中集成和使用百度Map API,通过JavaScript实现地图展示、定位、标注等功能。内容包括API的引入、地图初始化、添加标记、信息窗口展示以及JSON数据解析等关键步骤。
摘要由CSDN通过智能技术生成