百度魅族e2高德地图信号弱显示u4e2d

百度3d地图中的模型是如何实现的? - 知乎91被浏览<strong class="NumberBoard-itemValue" title="1分享邀请回答2615 条评论分享收藏感谢收起o.cn/02 条评论分享收藏感谢收起系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ
百度地图显示10个以上的标注点实例(原创)
所需火币:20
亲,火币不够,多去发布资源
或联系QQ人工充值
亲,vip会员下载原创作品 积分5 折,其余免积分下载
PS:尊重原创作者劳动成果,感谢分享!
充值方式: 或联系QQ人工充值博客分类:
window.BMAP_AUTHENTIC_KEY = "148bab9d367";
(function() {
var aa = void 0,
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() {
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]);
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";
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.
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,
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.ov = function(a, b, c) {
a = t.B.Q(a);
if ("style" == b) a.style.cssText =
b = t.B.lw[b] ||
a.setAttribute(b, c)
t.ov = t.B.
t.B.pv = function(a, b) {
var a = t.B.Q(a),
for (c in b) t.B.ov(a, c, b[c]);
t.pv = t.B.
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.
t.Lh.Oi = function(a, b) {
var a = "" + a,
c = Array.prototype.slice.call(arguments, 1),
d = Object.prototype.toS
if (c.length) {
c = c.length == 1 ? b !== n && /\[object Array\]|\[object Object\]/.test(d.call(b)) ? b: 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
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 & ++j) {
for (e = c. g & ++g) if (c[g] == d[j]) {
c.splice(g, 1);
a.className = c.join(" ");
t.Vb = t.B.Vb;
t.B.xu = function(a, b, c) {
var a = t.B.Q(a),
if (a.insertAdjacentHTML) a.insertAdjacentHTML(b, c);
d = a.ownerDocument.createRange();
b = b.toUpperCase();
if (b == "AFTERBEGIN" || b == "BEFOREEND") {
d.selectNodeContents(a);
d.collapse(b == "AFTERBEGIN")
b = b == "BEFOREBEGIN";
d[b ? "setStartBefore": "setEndAfter"](a);
d.collapse(b)
d.insertNode(d.createContextualFragment(c))
t.xu = t.B.
t.B.show = function(a) {
a = t.B.Q(a);
a.style.display = "";
t.show = t.B.
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. f & f++) e.indexOf(" " + c[f] + " ") & 0 && (d = d + (" " + c[f]));
a.className =
t.ab = t.B.
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 = e[d]; d++) if (f = f[c]) b = f(a, 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")
if (this.size() &= 0)
var a = a.replace(/^\s+/g, "").replace(/\s+$/g, "").replace(/\s+/g, " "),
b = a.split(" "),
t.forEach(this,
function(a) {
for (var a = a.className,
e = 0; e & b. e++) if (!~ (" " + a + " ").indexOf(" " + b[e] + " ")) {
c !== o && (c = i)
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");
t.zg = t.B.
/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.compatM
t.B.da = function(a) {
var a = t.B.Q(a),
b = t.B.Wt(a),
c.nJ & 0 && b.getBoxObjectFor && d(a, "position");
if (a == (c.V && !c.Du ? b.body: b.documentElement))
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.clientL
e.top = e.top - b.documentElement.clientT
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)
e.left = e.left + f.offsetL
e.top = e.top + f.offsetT
if (c.xA & 0 && d(f, "position") == "fixed") {
e.left = e.left + b.body.scrollL
e.top = e.top + b.body.scrollT
f = f.offsetParent
} while ( f && f != a );
if (c.opera & 0 || c.xA & 0 && d(a, "position") == "absolute") e.top = e.top - b.body.offsetT
for (f = a.offsetP f && f != b.) {
e.left = e.left - f.scrollL
if (!c.opera || f.tagName != "TR") e.top = e.top - f.scrollT
f = f.offsetParent
/firefox\/(\d+\.\d)/i.test(navigator.userAgent) && (t.N.Te = +RegExp.$1);
var ja = navigator.userA
/(\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.
if ("function" == typeof b) for (d = 0; d & d++) {
c = b.call(a, c, d);
if (c === o) break
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 =
this.returnValue =
this.target = b ||
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,
if (typeof c == "string" && c) {
if (/[^\w\-]/.test(c)) throw "nonstandard key:" +
e = b.cA = c
a.indexOf("on") != 0 && (a = "on" + a);
typeof d[a] != "object" && (d[a] = {});
e = e || t.lang.M();
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)) ! this.cg && (this.cg = {});
a.indexOf("on") != 0 && (a = "on" + a);
var c = this.
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 || {},
for (c in b) a[c] = b[c];
var d = this.cg,
a.target = a.target ||
a.currentTarget =
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.
e.prototype = b.
e = a.prototype =
for (d in f) e[d] = f[d];
a.prototype.constructor =
if ("string" == typeof c) e.gD = c
t.ja = t.lang.
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 ||
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.metaK
a.shiftKey = b.shiftK
a.altKey = b.altK
if (b.touches) {
a.touches = [];
for (var c = 0; c & b.touches. 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. 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. 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.
a.scale = b.
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)))
b = b.replace(/^on/, "");
a.addEventListener ? a.addEventListener(b, c, o) : a.attachEvent && a.attachEvent("on" + b, c);
t.gd = t.event.gd = function(a, b, c) {
if (! (a = t.Q(a)))
b = b.replace(/^on/, "");
a.removeEventListener ? a.removeEventListener(b, c, o) : a.detachEvent && a.detachEvent("on" + b, c);
t.B.ru = function(a, b) {
if (!a || !a.className || typeof a.className != "string")
var c = -1;
c = a.className == b || a.className.search(RegExp("(\\s|^)" + b + "(\\s|$)"))
} catch(d) {
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) {
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) {
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) {
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);
case this.Kt:
this.move(a);
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 =
var ma = window.BMap_loadScriptTime,
na = (new Date).getTime(),
function ra(a, b) {
if (a = t.Q(a)) {
t.lang.ra.call(c);
b = b || {};
hk: b.enable3DBuilding !== o,
Op: !!b.Op,
tc: b.minZoom || 1,
Zc: b.maxZoom || 18,
Db: b.mapType || sa,
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 = {
backColor: "#2D2D2D",
textColor: "#bfbfbf",
iconUrl: "dicons"
backColor: "#F3F1EC",
textColor: "#c61b1b",
iconUrl: "icons"
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. e & e++) if (t.N[d[e]]) {
c.G.devicePixelRatio = 1;
a.unselectable = "on";
a.innerHTML = "";
a.appendChild(c.va());
b.size && this.Oc(b.size);
d = c.xb();
c.width = d.
c.height = d.
c.offsetX = 0;
c.offsetY = 0;
c.platform = a.firstC
c.Nd = c.platform.firstC
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.wb = "";
c.cp = "";
c.wf = {};
c.wf.custom = {};
c.S = new ta(a, {
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.cC = b.minZ
d.bC = b.maxZ
c.platform.style.cursor = c.G.
for (e = 0; e & B.Xl. e++) B.Xl[e](c);
H.load("map",
function() {
c.G.up && (setTimeout(function() {
va("load_mapclick")
1E3), H.load("mapclick",
function() {
window.MPC_Mgr = new ya(c)
Aa() && H.load("oppc",
function() {
F() && H.load("opmb",
function() {
t.lang.ja(ra, t.lang.ra, "Map");
t.extend(ra.prototype, {
va: function() {
var a = J("div"),
b.overflow = "visible";
b.position = "absolute";
b.zIndex = "0";
b.top = b.left = "0px";
var b = J("div", {
"class": "BMap_mask"
c.position = "absolute";
c.top = c.left = "0px";
c.zIndex = "9";
c.overflow = "hidden";
c.WebkitUserSelect = "none";
a.appendChild(b);
ws: function(a) {
var b = a.
b.overflow = "hidden";
"absolute" != Ba(a).position && (b.position = "relative", b.zIndex = 0);
b.backgroundColor = "#F3F1EC";
b.color = "#000";
b.textAlign = "left"
O: function() {
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");
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");
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,
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.
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 =
this.bd = this.Db.Vi();
this.Zg(0, 0, this.Da(), i);
this.gr();
var c = this.Jj(this.T()).
this.lf(c);
this.dispatchEvent(b);
b = new L("onmaptypechange");
this.dispatchEvent(b); (a === wa || a === xa) && va(5003)
ze: function(a) {
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))
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.dc("script_loaded", na - ma);
qa.dc("centerAndZoom");
if (Ea(a)) if (c.Db == ua) {
var d = C.Ts[a];
d && (pt = d.m, c.be(pt, b))
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).
c.Sb = c.oa ||
c.Pe = new G(a.lng, a.lat);
c.Mb = c.bd.ej(c.Pe, c.wb);
c.gt = c.gt || c.
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);
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 =
this.dm();
this.F.gm || (this.F.gm = setInterval(this.dm, 80))
disableAutoResize: function() {
this.G.qp =
this.F.gm && (clearInterval(this.F.gm), this.F.gm = n)
hk: function() {
this.G.hk =
this.Cj || (this.Cj = new Ja({
}), this.Ne(this.Cj))
zH: function() {
this.G.hk =
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() {
Jj: function(a) {
var b = this.G.tc,
c = this.G.Zc,
a & b && (d = i, a = b);
a & c && (d = i, a = c);
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) {
var c = this.ob(new G(a.lng, a.lat), b);
c.x -= this.offsetX;
c.y -= this.offsetY;
jB: function(a, b) {
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.
this.Db == ua && c && Ka.Yy(a, this, b)
wN: function(a, b) {
var c = map.
this.Db == ua && c && Ka.Xy(a, this, b)
xN: function(a, b) {
var c = this,
c.Db == ua && d && Ka.Yy(a, c,
function(a) {
a.x -= c.offsetX;
a.y -= c.offsetY;
vN: function(a, b) {
var c = map.
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({
y: this.height - a[2]
a = this.Va({
x: this.width - a[1],
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 &= j--) {
var k = this.ha().Ib(j);
if (a.Iv().lng / k & this.width - f && a.Iv().lat / k & this.height - d) break
j & g && (j = g);
j & c && (j = c);
Ip: function(a, b) {
center: this.Da(),
zoom: this.T()
if (!a || !a instanceof La && 0 == a.length || a instanceof La && a.Bg())
var d = [];
a instanceof La ? (d.push(a.se()), d.push(a.te())) : d = a.slice(0);
for (var b = b || {},
e = [], f = 0, g = d. f & f++) e.push(this.bd.ej(d[f], this.wb));
d = new La;
for (f = e.length - 1; 0 &= f--) d.extend(e[f]);
if (d.Bg())
c = d.Da();
e = this.gE(d, b);
b.margins && (d = b.margins, f = (d[1] - d[3]) / 2, d = (d[0] - d[2]) / 2, g = this.ha().Ib(e), b.offset && (f = b.offset.width, d = b.offset.height), c.lng += g * f, c.lat += g * d);
c = this.bd.yh(c, this.wb);
center: c,
Lk: function(a, b) {
c = a && a.center ? a: this.Ip(a, b);
var b = b || {},
d = b.delay || 200;
if (c.zoom == this.oa && b.enableAnimation != o) {
setTimeout(function() {
e.ye(c.center, {
duration: 210
} else this.be(c.center, c.zoom)
Ye: s("Rc"),
We: function() {
return this.F.La && this.F.La.Aa() ? this.F.La: n
getDistance: function(a, b) {
if (a && b) {
var c = 0,
c = P.Vt(a, b);
if (c == n || c == aa) c = 0;
gu: function() {
var a = [],
b = this.ga,
if (b) for (var d in b) b[d] instanceof Q && a.push(b[d]);
for (b = c. d & d++) a.push(c[d])
ha: s("Db"),
Zq: function() {
for (var a = this.F. a & B.Xl. a++) B.Xl[a](this);
this.F.ev = a
rv: function(a) {
this.wb = ua.lh(a);
this.cp = ua.Iz(this.wb);
this.Db == ua && this.bd instanceof Ma && (this.bd.at = this.wb)
setDefaultCursor: function(a) {
this.G.nb =
this.platform && (this.platform.style.cursor = this.G.nb)
getDefaultCursor: function() {
return this.G.nb
setDraggingCursor: function(a) {
this.G.qc = a
getDraggingCursor: function() {
return this.G.qc
uh: ca(o),
Wo: function(a, b) {
b ? this.wf[b] || (this.wf[b] = {}) : b = "custom";
a instanceof Na && (this.wf[b][a.M] = a, a.la(this));
H.load("hotspot",
function() {
hK: function(a, b) {
b || (b = "custom");
this.wf[b][a.M] && delete this.wf[b][a.M]
Ai: function(a) {
a || (a = "custom");
this.wf[a] = {}
gr: function() {
var a = this.uh() ? this.Db.k.cJ: this.Db.lk(),
b = this.uh() ? this.Db.k.bJ: this.Db.Ti(),
c = this.G;
c.tc = c.cC ||
c.Zc = c.bC ||
c.tc & a && (c.tc = a);
c.Zc & b && (c.Zc = b)
setMinZoom: function(a) {
a & this.G.Zc && (a = this.G.Zc);
this.G.cC =
setMaxZoom: function(a) {
a & this.G.tc && (a = this.G.tc);
this.G.bC =
my: function() {
this.gr();
var a = this.G;
this.oa & a.tc ? this.Pc(a.tc) : this.oa & a.Zc && this.Pc(a.Zc);
var b = new L("onzoomspanchange");
b.Zc = a.Zc;
this.dispatchEvent(b)
bN: s("Gs"),
getKey: function() {
BB: function(a) {
if (a.styleId) this.Yz(a.styleId);
this.G.rc =
this.dispatchEvent(new L("onsetcustomstyles", a));
this.kA(a.controls);
this.lA(this.G.rc.geotableId);
style: a.style
a.features && 0 & a.features.length && (b.features = i);
va(5050, b)
a.style && (a = this.G.Gf[a.style] ? this.G.Gf[a.style].backColor: this.G.Gf.normal.backColor, this.Ca().style.backgroundColor = a)
Yz: function(a) {
Oa("http://api.map.baidu.com/style/poi/personalize?method=get&ak=" + la + "&id=" + a,
function(a) {
if (a && a.content && 0 & a.content.length) {
var a = a.content[0],
a.features && 0 & a.features.length && (d.features = a.features);
a.controllers && 0 & a.controllers.length && (d.controls = a.controllers);
a.style && "" != a.style && (d.style = a.style);
a.geotable_id && "" != a.geotable_id && (d.geotableId = a.geotable_id);
setTimeout(function() {
kA: function(a) {
this.controls || (this.controls = {
navigationControl: new Pa,
scaleControl: new Qa,
overviewMapControl: new Ra,
mapTypeControl: new Sa
var b = this,
for (c in this.controls) b.rB(b.controls[c]);
a = a || [];
t.Qb.Fc(a,
function(a) {
b.To(b.controls[a])
lA: function(a) {
a ? this.pm && this.pm.me == a || (this.hf(this.pm), this.pm = new Ta({
geotableId: a
}), this.Ne(this.pm)) : this.hf(this.pm)
Kb: function() {
var a = this.T() &= this.G.hC && this.ha() == sa && 18 &= this.T(),
document.createElement("canvas").getContext("2d"),
} catch(c) {
return a && b
getCurrentCity: function() {
name: this.fk,
code: this.Ns
getPanorama: s("S"),
setPanorama: function(a) {
this.S.sv(this)
function va(a, b) {
var b = b || {},
for (d in b) c = c + "&" + d + "=" + encodeURIComponent(b[d]);
var e = function(a) {
a && (Ua = i, setTimeout(function() {
Va.src = "http://api.map.baidu.com/images/blank.gif?" + a.src
f = function() {
var a = Wa.shift();
d = (1E8 * Math.random()).toFixed(0);
Ua ? Wa.push({
src: "product=jsapi&v=" + B.version + "&t=" + d + "&code=" + a + c
src: "product=jsapi&v=" + B.version + "&t=" + d + "&code=" + a + c
Xa || (t.D(Va, "load",
function() {
}), t.D(Va, "error",
function() {
}), Xa = i)
var Ua, Xa, Wa = [],
Va = new I
function Ya(a) {
duration: 1E3,
fe: Za.GA,
this.ge = [];
if (a) for (var c in a) b[c] = a[c];
if (Ca(b.gh)) {
setTimeout(function() {
} else b.gh != $a && this.start()
var $a = "INFINITE";
Ya.prototype.start = function() {
this.Rn = Ga();
this.ur = this.Rn + this.k.
Ya.prototype.add = fa(0);
function ab(a) {
var b = Ga();
b &= a.ur ? (Da(a.k.va) && a.k.va(a.k.fe(1)), Da(a.k.finish) && a.k.finish(), 0 & a.ge.length && (b = a.ge[0], b.ge = [].concat(a.ge.slice(1)), b.start())) : (a.oq = a.k.fe((b - a.Rn) / a.k.duration), Da(a.k.va) && a.k.va(a.oq), a.Dv || (a.bm = setTimeout(function() {
1E3 / a.k.Vc)))
Ya.prototype.stop = function(a) {
for (var b = 0; b & this.ge. b++) this.ge[b].stop(),
this.ge[b] =
this.ge.length = 0;
this.bm && (clearTimeout(this.bm), this.bm = n);
this.k.Tu(this.oq);
a && (this.ur = this.Rn, ab(this))
Ya.prototype.cancel = fa(2);
var Za = {
GA: function(a) {
reverse: function(a) {
return 1 - a
yt: function(a) {
return a * a
UH: function(a) {
return Math.pow(a, 3)
WH: function(a) {
return - (a * (a - 2))
VH: function(a) {
return Math.pow(a - 1, 3) + 1
vz: function(a) {
return 0.5 & a ? 2 * a * a: -2 * (a - 2) * a - 1
BM: function(a) {
return 0.5 & a ? 4 * Math.pow(a, 3) : 4 * Math.pow(a - 1, 3) + 1
CM: function(a) {
return (1 - Math.cos(Math.PI * a)) / 2
Za["ease-in"] = Za.
Za["ease-out"] = Za.WH;
ba: "http://api0.map.bdimg.com/images/",
"\u5317\u4eac": {
m: new G(116..914889)
"\u4e0a\u6d77": {
m: new G(121..249162)
"\u6df1\u5733": {
m: new G(114..546054)
"\u5e7f\u5dde": {
m: new G(113.3049)
fontFamily: "arial,sans-serif"
t.N.Te ? (t.extend(C, {
kz: "url(" + C.ba + "ruler.cur),crosshair",
nb: "-moz-grab",
qc: "-moz-grabbing"
}), t.platform.yA && (C.fontFamily = "arial,simsun,sans-serif")) : t.N.Ry || t.N.sK ? t.extend(C, {
kz: "url(" + C.ba + "ruler.cur) 2 6,crosshair",
nb: "url(" + C.ba + "openhand.cur) 8 8,default",
qc: "url(" + C.ba + "closedhand.cur) 8 8,move"
}) : t.extend(C, {
kz: "url(" + C.ba + "ruler.cur),crosshair",
nb: "url(" + C.ba + "openhand.cur),default",
qc: "url(" + C.ba + "closedhand.cur),move"
function bb(a, b) {
var c = a.
c.left = b[0] + "px";
c.top = b[1] + "px"
function cb(a) {
0 & t.N.V ? a.unselectable = "on": a.style.MozUserSelect = "none"
function db(a) {
return a && a.parentNode && 11 != a.parentNode.nodeType
function eb(a, b) {
t.B.xu(a, "beforeEnd", b);
return a.lastChild
function fb(a) {
for (var b = {
}; a && a.offsetP) b.left += a.offsetLeft,
b.top += a.offsetTop,
a = a.offsetP
function A(a) {
a = window.event ||
a.stopPropagation ? a.stopPropagation() : a.cancelBubble = i
function gb(a) {
a = window.event ||
a.preventDefault ? a.preventDefault() : a.returnValue =
function ka(a) {
return gb(a)
function hb() {
var a = document.documentElement,
b = document.
return a && (a.scrollTop || a.scrollLeft) ? [a.scrollTop, a.scrollLeft] : b ? [b.scrollTop, b.scrollLeft] : [0, 0]
function ib(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 jb(a, b) {
var c = [],
function(a) {
for (d in a) c.push(d + "=" + b(a[d]));
return c.join("&")
function J(a, b, c) {
var d = document.createElement(a);
c && (d = document.createElementNS(c, a));
return t.B.pv(d, b || {})
function Ba(a) {
if (a.currentStyle) return a.currentS
if (a.ownerDocument && a.ownerDocument.defaultView) return a.ownerDocument.defaultView.getComputedStyle(a, n)
function Da(a) {
return "function" == typeof a
function Ca(a) {
return "number" == typeof a
function Ea(a) {
return "string" == typeof a
function lb(a) {
return "undefined" != typeof a
function mb(a) {
return "object" == typeof a
var nb = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/=";
function ob(a) {
var b = "",
c, d, e = "",
f, g = "",
f = /[^A-Za-z0-9\+\/\=]/g;
if (!a || f.exec(a))
a = a.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do c = nb.indexOf(a.charAt(j++)),
d = nb.indexOf(a.charAt(j++)),
f = nb.indexOf(a.charAt(j++)),
g = nb.indexOf(a.charAt(j++)),
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 (j & a.length);
var L = t.lang.Jq;
function F() {
return ! (!t.platform.qJ && !t.platform.pJ && !t.platform.vk)
function Aa() {
return ! (!t.platform.yA && !t.platform.rJ && !t.platform.wJ)
function Ga() {
return (new Date).getTime()
function pb() {
var a = document.body.appendChild(J("div"));
a.innerHTML = '&v:shape id="vml_tester1" adj="1" /&';
var b = a.firstC
if (!b.style)
b.style.behavior = "url(#default#VML)";
b = b ? "object" == typeof b.adj:
a.parentNode.removeChild(a);
function qb() {
return !! document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.1")
function rb() {
return !! J("canvas").getContext
var Fa; (function() {
function a(a) {
this.timing = {};
this.start = +new Date
function b(a, b) {
if (a.length === +a.length) for (var c = 0,
d = a. c & d && b.call(aa, c, a[c], a) !== c++);
else for (c in a) if (a.hasOwnProperty(c) && b.call(aa, c, a[c], a) === o) break
var c = [],
push: function(a) {
c.push(a);
if (window.localStorage && window.JSON) try {
localStorage.setItem("WPO_NR", JSON.stringify(c))
} catch(b) {}
get: function(a) {
var b = [];
if (window.localStorage) try {
a && localStorage.removeItem("WPO_NR")
} catch(d) {}
a && (c = []);
k = {}; (!window.localStorage || !window.JSON) && document.attachEvent && window.attachEvent("onbeforeunload",
function() {
send: function(a) {
var c = [],
f = a || d.get(i),
0 & f.length && (b(f,
function(d, e) {
var f = [];
b(e.timing,
function(a, b) {
f.push('"' + a + '":' + b)
c.push('{"t":{' + f.join(",") + '},"a":' + e.AG + "}"); ! g && (a && e.start) && (g = e.start)
function(a, b) {
e.push(a + "=" + b)
}), e.push("d=[" + c.join(",") + "]"), g ? e.push("_st=" + g) : e.push("_t=" + +new Date), f = new Image, f.src = "http://static.tieba.baidu.com/tb/pms/img/st.gif?" + e.join("&"), window["___pms_img_" + 1 * new Date] = f)
a.prototype = {
dc: function(a, b) {
this.timing[a] = 0 &= b ? b: new Date - this.start
Bv: function() {
this.start = +new Date
vL: function() {
this.dc("tt")
jC: function() {
this.dc("vt")
kq: function() {
f && (d.push(this), d.get().length &= g && l.send())
error: p()
vu: function(a) {
var b = navigator.wM || navigator.mN || navigator.ZN || {
f = Math.random() &= (a.tK || 0.01);
g = a.max || 5;
j = a.lN || b.
window.localStorage && (window.JSON && window.addEventListener) && (e = d.get(i), window.addEventListener("load",
function() {
lm: function(b) {
return new a(b)
Fa.yj.vu({
function Oa(a, b) {
var c = (1E5 * Math.random()).toFixed(0);
B._rd["_cbk" + c] = function(a) {
b && b(a);
delete B._rd["_cbk" + c]
a += "&callback=BMap._rd._cbk" + c
var d = J("script", {
type: "text/javascript"
d.charset = "utf-8";
d.addEventListener ? d.addEventListener("load",
function(a) {
a.parentNode.removeChild(a)
o) : d.attachEvent && d.attachEvent("onreadystatechange",
function() {
var a = window.event.srcE
a && ("loaded" == a.readyState || "complete" == a.readyState) && a.parentNode.removeChild(a)
setTimeout(function() {
document.getElementsByTagName("head")[0].appendChild(d);
var sb = {
map: "3e1apz",
common: "5ywkhh",
tile: "qksuas",
marker: "xkrekm",
markeranimation: "b1ycvd",
poly: "axb1n5",
draw: "f5wovp",
drawbysvg: "lnvhia",
drawbyvml: "zvv2jc",
drawbycanvas: "jejqs5",
infowindow: "b4jlxp",
oppc: "bte1wy",
opmb: "az0s40",
menu: "5lyg4m",
control: "vedtdt",
navictrl: "umm5hr",
geoctrl: "ncksgx",
copyrightctrl: "g4en4a",
scommon: "gis1zl",
local: "xl2nbf",
route: "qi2hkx",
othersearch: "thpigr",
mapclick: "ya5qx4",
buslinesearch: "muurgk",
hotspot: "uvy0w0",
autocomplete: "rplbmr",
coordtrans: "mdr3qv",
coordtransutils: "mbfp4a",
clayer: "smgpa2",
panorama: "nw2euy",
panoramaservice: "aeeihu",
panoramaflash: "2qc2xi",
mapclick: "ya5qx4",
vector: "igj1c4"
t.zq = function() {
function a(a) {
return d && !!c[b + a + "_" + sb[a]]
var b = "BMap_",
c = window.localStorage,
d = "localStorage" in window && c !== n && c !==
set: function(a, f) {
for (var g = b + a + "_",
j = c.length,
j--;) k = c.key(j),
-1 & k.indexOf(g) && c.removeItem(k);
c.setItem(b + a + "_" + sb[a], f)
} catch(l) {
get: function(e) {
return d && a(e) ? c.getItem(b + e + "_" + sb[e]) : o
function H() {}
t.object.extend(H, {
Lz: function() {
var a = "drawbysvg";
F() && rb() ? a = "drawbycanvas": qb() ? a = "drawbysvg": pb() ? a = "drawbyvml": rb() && (a = "drawbycanvas");
control: [],
marker: [],
poly: ["marker", a],
drawbysvg: ["draw"],
drawbyvml: ["draw"],
drawbycanvas: ["draw"],
infowindow: ["common", "marker"],
scommon: [],
local: ["scommon"],
route: ["scommon"],
othersearch: ["scommon"],
autocomplete: ["scommon"],
mapclick: ["scommon"],
buslinesearch: ["route"],
hotspot: [],
coordtransutils: ["coordtrans"],
clayer: ["tile"],
panoramaservice: [],
panorama: ["marker", "panoramaservice"],
panoramaflash: ["panoramaservice"]
RC: "http://api0.map.bdimg.com/getmodules?v=2.0",
load: function(a, b, c) {
var d = this.om(a);
if (d.Ec == this.Hg.Uk) c && b();
if (d.Ec == this.Hg.Yv) {
this.Vy(a);
this.pB(a);
e.ht == o && (e.ht = i, setTimeout(function() {
for (var a = [], b = 0, c = e.zc.Aj. b & b++) {
var d = e.zc.Aj[b],
ha.zq.Py(d) ? l = ha.zq.get(d) : (l = "", a.push(d + "_" + sb[d]));
e.zc.Io.push({
e.zc.Aj.length = 0;
0 == a.length ? e.yz() : Oa(e.Rv.RC + "&mod=" + a.join(","))
d.Ec = this.Hg.JC
d.Sn.push(b)
Vy: function(a) {
if (a && this.Lz()[a]) for (var a = this.Lz()[a], b = 0; b & a. b++) this.Vy(a[b]),
this.zc.bi[a[b]] || this.pB(a[b])
pB: function(a) {
for (var b = 0; b & this.zc.Aj. b++) if (this.zc.Aj[b] == a)
this.zc.Aj.push(a)
rK: function(a, b) {
var c = this.om(a);
} catch(d) {
c.Ec = this.Hg.Uk;
for (var e = 0,
f = c.Sn. e & e++) c.Sn[e]();
c.Sn.length = 0
Py: function(a, b) {
c.timeout = setTimeout(function() {
c.zc.bi[a].Ec != c.Hg.Uk ? (c.remove(a), c.load(a, b)) : clearTimeout(c.timeout)
om: function(a) {
this.zc.bi[a] || (this.zc.bi[a] = {},
this.zc.bi[a].Ec = this.Hg.Yv, this.zc.bi[a].Sn = []);
return this.zc.bi[a]
remove: function(a) {
delete this.om(a)
UG: function(a, b) {
for (var c = this.zc.Io,
f = c. e & e++)"" == c[e].Nu && (c[e].SA == a ? c[e].Nu = b: d = o);
d && this.yz()
yz: function() {
for (var a = this.zc.Io,
c = a. b & b++) this.rK(a[b].SA, a[b].Nu);
this.zc.Io.length = 0
function O(a, b) {
this.x = a || 0;
this.y = b || 0;
this.x = this.x;
this.y = this.y
O.prototype.bb = function(a) {
return a && a.x == this.x && a.y == this.y
function K(a, b) {
this.width = a || 0;
this.height = b || 0
K.prototype.bb = function(a) {
return a && this.width == a.width && this.height == a.height
function Na(a, b) {
a && (this.sb = a, this.M = "spot" + Na.M++, b = b || {},
this.ng = b.text || "", this.yo = b.offsets ? b.offsets.slice(0) : [5, 5, 5, 5], this.ny = b.userData || n, this.yf = b.minZoom || n, this.Zd = b.maxZoom || n)
t.extend(Na.prototype, {
la: function(a) {
this.yf == n && (this.yf = a.G.tc);
this.Zd == n && (this.Zd = a.G.Zc)
ea: function(a) {
a instanceof G && (this.sb = a)
da: s("sb"),
tn: ba("ng"),
mu: s("ng"),
setUserData: ba("ny"),
getUserData: s("ny")
function R() {
this.tb = "control";
this.zb = this.Jy = i
t.lang.ja(R, t.lang.ra, "Control");
t.extend(R.prototype, {
initialize: function(a) {
if (this.C) return a.ya.appendChild(this.C),
Wd: function(a) { ! this.C && (this.initialize && Da(this.initialize)) && (this.C = this.initialize(a));
this.k = this.k || {
this.ws();
this.Do();
this.C && (this.C.Kl = this)
ws: function() {
var a = this.C;
var b = a.
b.position = "absolute";
b.zIndex = this.br || "10";
b.MozUserSelect = "none";
b.WebkitTextSizeAdjust = "none";
this.k.ff || t.B.ab(a, "BMap_noprint");
F() || t.D(a, "contextmenu", ka)
remove: function() {
this.C && (this.C.parentNode && this.C.parentNode.removeChild(this.C), this.C = this.C.Kl = n)
cb: function() {
this.C = eb(this.A.ya, "&div unselectable='on'&&/div&");
this.zb == o && t.B.J(this.C);
return this.C
Do: function() {
this.Nb(this.k.anchor)
Nb: function(a) {
if (this.mM || !Ca(a) || isNaN(a) || a & tb || 3 & a) a = this.defaultA
this.k = this.k || {
this.k.ia = this.k.ia || this.defaultO
var b = this.k.
this.k.anchor =
if (this.C) {
var c = this.C,
d = this.k.ia.width,
e = this.k.ia.
c.style.left = c.style.top = c.style.right = c.style.bottom = "auto";
switch (a) {
c.style.top = e + "px";
c.style.left = d + "px";
c.style.top = e + "px";
c.style.right = d + "px";
c.style.bottom = e + "px";
c.style.left = d + "px";
c.style.bottom = e + "px",
c.style.right = d + "px"
c = ["TL", "TR", "BL", "BR"];
t.B.Vb(this.C, "anchor" + c[b]);
t.B.ab(this.C, "anchor" + c[a])
Ot: function() {
return this.k.anchor
dd: function(a) {
a instanceof K && (this.k = this.k || {
this.k.ia = new K(a.width, a.height), this.C && this.Nb(this.k.anchor))
Xe: function() {
return this.k.ia
vd: s("C"),
show: function() {
this.zb != i && (this.zb = i, this.C && t.B.show(this.C))
J: function() {
this.zb != o && (this.zb = o, this.C && t.B.J(this.C))
isPrintable: function() {
return !! this.k.ff
Cg: function() {
return ! this.C && !this.A ? o: !!this.zb
var tb = 0,
function Pa(a) {
R.call(this);
a = a || {};
this.k = {
xv: a.showZoomInfo || i,
anchor: a.anchor,
ia: a.offset,
type: a.type
this.defaultAnchor = F() ? 3 :
this.defaultOffset = new K(10, 10);
this.Nb(a.anchor);
this.sj(a.type);
t.lang.ja(Pa, R, "NavigationControl");
t.extend(Pa.prototype, {
initialize: function(a) {
return this.C
sj: function(a) {
this.k.type = Ca(a) && 0 &= a && 3 &= a ? a: 0
rk: function() {
return this.k.type
kd: function() {
H.load("navictrl",
function() {
function wb(a) {
R.call(this);
a = a || {};
this.k = {
anchor: a.anchor,
ia: a.offset,
WK: a.showAddressBar,
wz: a.enableAutoLocation,
MA: a.locationIcon
this.defaultAnchor =
this.defaultOffset = new K(0, 4);
t.lang.ja(wb, R, "GeolocationControl");
t.extend(wb.prototype, {
initialize: function(a) {
return this.C
kd: function() {
H.load("geoctrl",
function() {
getAddressComponent: function() {
return this.By || n
location: function() {
this.k.wz = i
function yb(a) {
R.call(this);
a = a || {};
this.k = {
anchor: a.anchor,
ia: a.offset
this.ib = [];
this.defaultAnchor =
this.defaultOffset = new K(5, 2);
this.Nb(a.anchor);
t.lang.ja(yb, R, "CopyrightControl");
t.object.extend(yb.prototype, {
initialize: function(a) {
return this.C
Uo: function(a) {
if (a && Ca(a.id) && !isNaN(a.id)) {
bounds: n,
content: ""
for (c in a) b[c] = a[c];
if (a = this.Qi(a.id)) for (var d in b) a[d] = b[d];
else this.ib.push(b)
Qi: function(a) {
for (var b = 0,
c = this.ib. b & b++) if (this.ib[b].id == a) return this.ib[b]
Ut: s("ib"),
fv: function(a) {
for (var b = 0,
c = this.ib. b & b++) this.ib[b].id == a && (r = this.ib.splice(b, 1), b--, c = this.ib.length)
kd: function() {
H.load("copyrightctrl",
function() {
function Ra(a) {
R.call(this);
a = a || {};
this.k = {
size: a.size || new K(150, 150),
padding: 5,
Aa: a.isOpen === i ? i: o,
ia: a.offset,
anchor: a.anchor
this.defaultAnchor = 3;
this.defaultOffset = new K(0, 0);
this.kl = this.ll = 13;
this.Nb(a.anchor);
this.Oc(this.k.size);
t.lang.ja(Ra, R, "OverviewMapControl");
t.extend(Ra.prototype, {
initialize: function(a) {
return this.C
Nb: function(a) {
R.prototype.Nb.call(this, a)
Tc: function() {
this.Tc.Sj =
this.k.Aa = !this.k.Aa;
this.C || (this.Tc.Sj = o)
Oc: function(a) {
a instanceof K || (a = new K(150, 150));
a.width = 0 & a.width ? a.width: 150;
a.height = 0 & a.height ? a.height: 150;
this.k.size = a
xb: function() {
return this.k.size
Aa: function() {
return this.k.Aa
kd: function() {
H.load("control",
function() {
function Qa(a) {
R.call(this);
a = a || {};
this.k = {
color: "black",
Wb: "metric",
ia: a.offset
this.defaultAnchor =
this.defaultOffset = new K(81, 18);
this.Nb(a.anchor);
this.Cf = {
name: "metric",
YB: "\u7c73",
ZB: "\u516c\u91cc"
name: "us",
Wy: 3.2808,
YB: "\u82f1\u5c3a",
ZB: "\u82f1\u91cc"
this.Cf[this.k.Wb] || (this.k.Wb = "metric");
this.Ax = {};
t.lang.ja(Qa, R, "ScaleControl");
t.object.extend(Qa.prototype, {
initialize: function(a) {
return this.C
qv: function(a) {
this.k.color = a + ""
LM: function() {
return this.k.color
wv: function(a) {
this.k.Wb = this.Cf[a] && this.Cf[a].name || this.k.Wb
VI: function() {
return this.k.Wb
kd: function() {
H.load("control",
function() {
var zb = 0;
function Sa(a) {
R.call(this);
a = a || {};
this.defaultAnchor =
this.defaultOffset = new K(10, 10);
this.k = {
af: [sa, wa, xa, ua],
type: a.type || zb,
ia: a.offset || this.defaultOffset,
this.Nb(a.anchor);
"[object Array]" == Object.prototype.toString.call(a.mapTypes) && (this.k.af = a.mapTypes.slice(0));
t.lang.ja(Sa, R, "MapTypeControl");
t.object.extend(Sa.prototype, {
initialize: function(a) {
return this.C
kd: function() {
H.load("control",
function() {
function Ab(a) {
R.call(this);
a = a || {};
this.k = {
ia: a.offset,
anchor: a.anchor
this.Jx = new Bb({
this.Kx = new Cb(n, {
this.defaultAnchor =
this.defaultOffset = new K(10, 10);
this.Nb(a.anchor);
this.kd();
t.lang.ja(Ab, R, "PanoramaControl");
t.extend(Ab.prototype, {
initialize: function(a) {
return this.C
kd: function() {
H.load("control",
function() {
function Db(a) {
t.lang.ra.call(this);
this.k = {
cursor: "default"
this.k = t.extend(this.k, a);
this.tb = "contextmenu";
this.fa = [];
this.$d = [];
this.md = [];
this.kp = this.nm =
H.load("menu",
function() {
t.lang.ja(Db, t.lang.ra, "ContextMenu");
t.object.extend(Db.prototype, {
la: function(a, b) {
this.fi = b || n
remove: function() {
this.A = this.fi = n
Xo: function(a) {
if (a && !("menuitem" != a.tb || "" == a.ng || 0 &= a.lG)) {
for (var b = 0,
c = this.fa. b & b++) if (this.fa[b] === a)
this.fa.push(a);
this.$d.push(a)
removeItem: function(a) {
if (a && "menuitem" == a.tb) {
for (var b = 0,
c = this.fa. b & b++) this.fa[b] === a && (this.fa[b].remove(), this.fa.splice(b, 1), c--);
for (c = this.$d. b & b++) this.$d[b] === a && (this.$d[b].remove(), this.$d.splice(b, 1), c--)
Js: function() {
this.fa.push({
tb: "divider",
Mg: this.md.length
this.md.push({
hv: function(a) {
if (this.md[a]) {
for (var b = 0,
c = this.fa. b & b++) this.fa[b] && ("divider" == this.fa[b].tb && this.fa[b].Mg == a) && (this.fa.splice(b, 1), c--),
this.fa[b] && ("divider" == this.fa[b].tb && this.fa[b].Mg & a) && this.fa[b].Mg--;
this.md.splice(a, 1)
vd: s("C"),
show: function() {
this.xf != i && (this.xf = i)
J: function() {
this.xf != o && (this.xf = o)
DK: function(a) {
a && (this.k.cursor = a)
getItem: function(a) {
return this.$d[a]
function Eb(a, b, c) {
if (a && Da(b)) {
t.lang.ra.call(this);
this.k = {
width: 100,
c = c || {};
this.k.width = 1 * c.width ? c.width: 100;
this.k.id = c.id ? c.id: "";
this.ng = a + "";
this.tb = "menuitem";
this.C = this.qf =
H.load("menu",
function() {
t.lang.ja(Eb, t.lang.ra, "MenuItem");
t.object.extend(Eb.prototype, {
la: function(a, b) {
this.qf = b
remove: function() {
this.A = this.qf = n
tn: function(a) {
a && (this.ng = a + "")
vd: s("C"),
enable: function() {
this.uf = i
disable: function() {
this.uf = o
function La(a, b) {
a && !b && (b = a);
this.qd = this.od = this.td = this.sd = this.oi = this.ei =
a && (this.oi = new G(a.lng, a.lat), this.ei = new G(b.lng, b.lat), this.td = a.lng, this.sd = a.lat, this.qd = b.lng, this.od = b.lat)
t.object.extend(La.prototype, {
Bg: function() {
return ! this.oi || !this.ei
bb: function(a) {
return ! (a instanceof La) || this.Bg() ? o: this.te().bb(a.te()) && this.se().bb(a.se())
te: s("oi"),
se: s("ei"),
fH: function(a) {
return ! (a instanceof La) || this.Bg() || a.Bg() ? o: a.td & this.td && a.qd & this.qd && a.sd & this.sd && a.od & this.od
Da: function() {
return this.Bg() ? n: new G((this.td + this.qd) / 2, (this.sd + this.od) / 2)
mA: function(a) {
if (! (a instanceof La) || Math.max(a.td, a.qd) & Math.min(this.td, this.qd) || Math.min(a.td, a.qd) & Math.max(this.td, this.qd) || Math.max(a.sd, a.od) & Math.min(this.sd, this.od) || Math.min(a.sd, a.od) & Math.max(this.sd, this.od))
var b = Math.max(this.td, a.td),
c = Math.min(this.qd, a.qd),
d = Math.max(this.sd, a.sd),
a = Math.min(this.od, a.od);
return new La(new G(b, d), new G(c, a))
gH: function(a) {
return ! (a instanceof G) || this.Bg() ? o: a.lng &= this.td && a.lng &= this.qd && a.lat &= this.sd && a.lat &= this.od
extend: function(a) {
if (a instanceof G) {
var b = a.lng,
this.oi || (this.oi = new G(0, 0));
this.ei || (this.ei = new G(0, 0));
if (!this.td || this.td & b) this.oi.lng = this.td =
if (!this.qd || this.qd & b) this.ei.lng = this.qd =
if (!this.sd || this.sd & a) this.oi.lat = this.sd =
if (!this.od || this.od & a) this.ei.lat = this.od = a
Iv: function() {
return this.Bg() ? new G(0, 0) : new G(Math.abs(this.qd - this.td), Math.abs(this.od - this.sd))
function G(a, b) {
isNaN(a) && (a = ob(a), a = isNaN(a) ? 0 : a);
Ea(a) && (a = parseFloat(a));
isNaN(b) && (b = ob(b), b = isNaN(b) ? 0 : b);
Ea(b) && (b = parseFloat(b));
this.lng =
this.lat = b
G.oA = function(a) {
return a && 180 &= a.lng && -180 &= a.lng && 74 &= a.lat && -74 &= a.lat
G.prototype.bb = function(a) {
return a && this.lat == a.lat && this.lng == a.lng
function Fb() {}
Fb.prototype.Ym = function() {
throw "lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0";
Fb.prototype.Ch = function() {
throw "pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0";
function Gb() {};
var Ka = {
Yy: function(a, b, c) {
H.load("coordtransutils",
function() {
Ka.FG(a, b, c)
Xy: function(a, b, c) {
H.load("coordtransutils",
function() {
Ka.EG(a, b, c)
function P() {}
P.prototype = new Fb;
t.extend(P, {
aw: [1., , ],
Mn: [75, 60, 45, 30, 15, 0],
vC: [[1.255E-8, 8.72E-6, -1.1, 200.6, -187.7, 91.3, -23.39, 2.98, -0.53, 1.], [ - 7.537E-9, 8.239E-6, -0.89, 96.46, -1.26, -59.77, 47.37, -16.87, 2.75, 1.], [ - 3.826E-8, 8.78E-6, 0.16, 59.77, 7., -25.45, 13.08, -3.84, 0.75, ], [ - 1.552E-8, 8.535E-6, 0.91, 40.44, 0.77, -4.92, 0.63, 0.04, -0.61, ], [3.37E-9, 8.155E-6, 6.E-5, 23.01, -2.E-4, -0.2, -0.73, 0.53, -0.32, ], [2.878E-9, 8.407E-6, -3., 7.32, -3., -0.37, -1.E-5, 1.E-4, -3., ]],
Zv: [[ - 0.4, 03, -4, -5, -8, 82.5], [8.526E-4, .607E8, -4.316E9, 1.142E10, -1.559E10, 1.167E10, -5.472E9, 9.032E8, 67.5], [0.65, 365, -2.662E7, 7.455E7, -1.253E8, 9.145E7, -4.821E7, .5], [0.08, 751., 013, -12., -241, 37.5], [ - 3.392E-4, 8.2, 70., 5., -., 22.5], [ - 3.132E-4, .89, .93, 3, 8.84, 0.24, 7.45]],
NM: function(a, b) {
if (!a || !b) return 0;
var c, d, a = this.mb(a);
if (!a) return 0;
c = this.Mh(a.lng);
d = this.Mh(a.lat);
b = this.mb(b);
return ! b ? 0 : this.Id(c, this.Mh(b.lng), d, this.Mh(b.lat))
Vt: function(a, b) {
if (!a || !b) return 0;
a.lng = this.cu(a.lng, -180, 180);
a.lat = this.iu(a.lat, -74, 74);
b.lng = this.cu(b.lng, -180, 180);
b.lat = this.iu(b.lat, -74, 74);
return this.Id(this.Mh(a.lng), this.Mh(b.lng), this.Mh(a.lat), this.Mh(b.lat))
mb: function(a) {
b = new G(Math.abs(a.lng), Math.abs(a.lat));
for (var d = 0; d & this.aw. d++) if (b.lat &= this.aw[d]) {
c = this.vC[d];
a = this.Zy(a, c);
return a = new G(a.lng.toFixed(6), a.lat.toFixed(6))
vb: function(a) {
a.lng = this.cu(a.lng, -180, 180);
a.lat = this.iu(a.lat, -74, 74);
b = new G(a.lng, a.lat);
for (var d = 0; d & this.Mn. d++) if (b.lat &= this.Mn[d]) {
c = this.Zv[d];
if (!c) for (d = this.Mn.length - 1; 0 &= d--) if (b.lat &= -this.Mn[d]) {
c = this.Zv[d];
a = this.Zy(a, c);
return a = new G(a.lng.toFixed(2), a.lat.toFixed(2))
Zy: function(a, b) {
if (a && b) {
var c = b[0] + b[1] * Math.abs(a.lng),
d = Math.abs(a.lat) / b[9],
d = b[2] + b[3] * d + b[4] * d * d + b[5] * d * d * d + b[6] * d * d * d * d + b[7] * d * d * d * d * d + b[8] * d * d * d * d * d * d,
c = c * (0 & a.lng ? -1 : 1),
d = d * (0 & a.lat ? -1 : 1);
return new G(c, d)
Id: function(a, b, c, d) {
return this.sC * Math.acos(Math.sin(c) * Math.sin(d) + Math.cos(c) * Math.cos(d) * Math.cos(b - a))
Mh: function(a) {
return Math.PI * a / 180
QN: function(a) {
return 180 * a / Math.PI
iu: function(a, b, c) {
b != n && (a = Math.max(a, b));
c != n && (a = Math.min(a, c));
cu: function(a, b, c) {
for (; a &) a -= c -
for (; a &) a += c -
t.extend(P.prototype, {
ej: function(a) {
return P.vb(a)
Ym: function(a) {
a = P.vb(a);
return new O(a.lng, a.lat)
yh: function(a) {
return P.mb(a)
Ch: function(a) {
a = new G(a.x, a.y);
return P.mb(a)
ob: function(a, b, c, d, e) {
if (a) return a = this.ej(a, e),
b = this.Ib(b),
new O(Math.round((a.lng - c.lng) / b + d.width / 2), Math.round((c.lat - a.lat) / b + d.height / 2))
Va: function(a, b, c, d, e) {
if (a) return b = this.Ib(b),
this.yh(new G(c.lng + b * (a.x - d.width / 2), c.lat - b * (a.y - d.height / 2)), e)
Ib: function(a) {
return Math.pow(2, 18 - a)
function Ma() {
this.at = "bj"
Ma.prototype = new P;
t.extend(Ma.prototype, {
ej: function(a, b) {
return this.kD(b, P.vb(a))
yh: function(a, b) {
return P.mb(this.lD(b, a))
lngLatToPointFor3D: function(a, b) {
var c = this,
d = P.vb(a);
H.load("coordtrans",
function() {
var a = Gb.fu(c.at || "bj", d),
a = new O(a.x, a.y);
pointToLngLatFor3D: function(a, b) {
var c = this,
d = new G(a.x, a.y);
H.load("coordtrans",
function() {
var a = Gb.eu(c.at || "bj", d),
a = new G(a.lng, a.lat),
a = P.mb(a);
kD: function(a, b) {
if (H.om("coordtrans").Ec == H.Hg.Uk) {
var c = Gb.fu(a || "bj", b);
return new G(c.x, c.y)
H.load("coordtrans", p());
return new G(0, 0)
lD: function(a, b) {
if (H.om("coordtrans").Ec == H.Hg.Uk) {
var c = Gb.eu(a || "bj", b);
return new G(c.lng, c.lat)
H.load("coordtrans", p());
return new G(0, 0)
Ib: function(a) {
return Math.pow(2, 20 - a)
function Hb() {
this.tb = "overlay"
t.lang.ja(Hb, t.lang.ra, "Overlay");
Hb.Nm = function(a) {
return ! a ? 0 : -1E5 * a && 1
t.extend(Hb.prototype, {
Wd: function(a) {
if (!this.K && Da(this.initialize) && (this.K = this.initialize(a))) this.K.style.WebkitUserSelect = "none";
this.draw()
initialize: function() {
throw "initialize\u65b9\u6cd5\u672a\u5b9e\u73b0";
draw: function() {
throw "draw\u65b9\u6cd5\u672a\u5b9e\u73b0";
remove: function() {
this.K && this.K.parentNode && this.K.parentNode.removeChild(this.K);
this.dispatchEvent(new L("onremove"))
J: function() {
this.K && t.B.J(this.K)
show: function() {
this.K && t.B.show(this.K)
Cg: function() {
return ! this.K || "none" == this.K.style.display || "hidden" == this.K.style.visibility ? o: i
B.xd(function(a) {
function b(a, b) {
var c = J("div"),
g.position = "absolute";
g.top = g.left = g.width = g.height = "0";
g.zIndex =
a.appendChild(c);
var c = a.F;
c.Pd = a.Pd = b(a.platform, 200);
a.Rc.Nt = b(c.Pd, 800);
a.Rc.Ku = b(c.Pd, 700);
a.Rc.Dz = b(c.Pd, 600);
a.Rc.CA = b(c.Pd, 500);
a.Rc.OA = b(c.Pd, 400);
a.Rc.PA = b(c.Pd, 300);
a.Rc.EL = b(c.Pd, 201);
a.Rc.Up = b(c.Pd, 200)
function Q() {
t.lang.ra.call(this);
Hb.call(this);
this.map =
this.Kw = 0
t.lang.ja(Q, Hb, "OverlayInternal");
t.extend(Q.prototype, {
initialize: function(a) {
this.map =
t.lang.ra.call(this, this.M);
du: s("map"),
draw: p(),
remove: function() {
this.map =
t.lang.mp(this.M);
Hb.prototype.remove.call(this)
J: function() {
this.zb != o && (this.zb = o)
show: function() {
this.zb != i && (this.zb = i)
Cg: function() {
return ! this.K ? o: !!this.zb
Ca: s("K"),
xB: function(a) {
var a = a || {},
for (b in a) this.z[b] = a[b]
uq: ba("zIndex"),
jh: function() {
this.z.jh = i
BH: function() {
this.z.jh = o
$j: ba("Mj"),
Dk: function() {
this.Mj = n
function Ib() {
this.map =
this.ga = {};
this.ld = []
B.xd(function(a) {
var b = new Ib;
a.addEventListener("load",
function(a) {
a.addEventListener("moveend",
function(a) {
t.N.V && 8 & t.N.V || "BackCompat" == document.compatMode ? a.addEventListener("zoomend",
function(a) {
setTimeout(function() {
}) : a.addEventListener("zoomend",
function(a) {
a.addEventListener("maptypechange",
function(a) {
a.addEventListener("addoverlay",
function(a) {
if (a instanceof Q) b.ga[a.M] || (b.ga[a.M] = a);
for (var d = o,
f = b.ld. e & e++) if (b.ld[e] === a) {
d || b.ld.push(a)
a.addEventListener("removeoverlay",
function(a) {
if (a instanceof Q) delete b.ga[a.M];
else for (var d = 0,
e = b.ld. d & d++) if (b.ld[d] === a) {
b.ld.splice(d, 1);
a.addEventListener("clearoverlays",
function() {
this.oc();
for (var a in b.ga) b.ga[a].z.jh && (b.ga[a].remove(), delete b.ga[a]);
for (var d = b.ld. a & a++) b.ld[a].jh != o && (b.ld[a].remove(), b.ld[a] = n, b.ld.splice(a, 1), a--, d--)
a.addEventListener("infowindowopen",
function() {
var a = this.Cb;
a && (t.B.J(a.Ab), t.B.J(a.pb))
a.addEventListener("movestart",
function() {
this.We() && this.We().Yx()
a.addEventListener("moveend",
function() {
this.We() && this.We().Sx()
Ib.prototype.draw = function() {
if (B.Xk) {
var a = B.Xk.Em(this.map);
"canvas" == a.tb && a.canvas && a.iD(a.canvas.getContext("2d"))
for (var b in this.ga) this.ga[b].draw();
t.Qb.Fc(this.ld,
function(a) {
this.map.F.La && this.map.F.La.ea();
B.Xk && a.tv()
function Jb(a) {
Q.call(this);
a = a || {};
this.z = {
strokeColor: a.strokeColor || "#3a6bdb",
jf: a.strokeWeight || 5,
Ce: a.strokeOpacity || 0.65,
strokeStyle: a.strokeStyle || "solid",
jh: a.enableMassClear === o ? o: i,
ce: a.enableEditing === i ? i: o,
Dd: a.enableClicking === o ? o: i
0 &= this.z.jf && (this.z.jf = 5);
if (0 & this.z.Ce || 1 & this.z.Ce) this.z.Ce = 0.65;
if (0 & this.z.Ni || 1 & this.z.Ni) this.z.Ni = 0.65;
"solid" != this.z.strokeStyle && "dashed" != this.z.strokeStyle && (this.z.strokeStyle = "solid");
this.$q = new La(0, 0);
this.Ad = [];
this.rb = [];
this.ta = {}
t.lang.ja(Jb, Q, "Graph");
Jb.Bp = function(a) {
var b = [];
Ea(a) && t.Qb.Fc(a.split(";"),
function(a) {
a = a.split(",");
b.push(new G(a[0], a[1]))
"[object Array]" == Object.prototype.toString.apply(a) && 0 & a.length && (b = a);
Jb.Xu = [0.09, 0.E-4, 1.0E-5];
t.extend(Jb.prototype, {
initialize: function(a) {
this.map =
draw: p(),
$l: function(a) {
this.Ad.length = 0;
this.$ = Jb.Bp(a).slice(0);
ed: function(a) {
this.$l(a)
nf: function() {
if (this.$) {
a.$q = new La;
t.Qb.Fc(this.$,
function(b) {
a.$q.extend(b)
Xc: s("$"),
rj: function(a, b) {
b && this.$[a] && (this.Ad.length = 0, this.$[a] = new G(b.lng, b.lat), this.nf())
setStrokeColor: function(a) {
this.z.strokeColor = a
KI: function() {
return this.z.strokeColor
qn: function(a) {
0 & a && (this.z.jf = a)
Xz: function() {
return this.z.jf
mn: function(a) {
a == aa || (1 & a || 0 & a) || (this.z.Ce = a)
LI: function() {
return this.z.Ce
pq: function(a) {
1 & a || 0 & a || (this.z.Ni = a)
oI: function() {
return this.z.Ni
nn: function(a) {
"solid" != a && "dashed" != a || (this.z.strokeStyle = a)
Wz: function() {
return this.z.strokeStyle
setFillColor: function(a) {
this.z.fillColor = a || ""
nI: function() {
return this.z.fillColor
xg: s("$q"),
remove: function() {
this.map && this.map.removeEventListener("onmousemove", this.ho);
Q.prototype.remove.call(this);
this.Ad.length = 0
ce: function() {
if (! (2 & this.$.length)) {
this.z.ce =
H.load("poly",
function() {
AH: function() {
this.z.ce =
H.load("poly",
function() {
function Kb(a) {
Q.call(this);
this.K = this.map =
this.z = {
height: 0,
ia: new K(0, 0),
opacity: 1,
background: "transparent",
FA: "#000",
CJ: "solid",
this.xB(a);
this.P = this.z.P
t.lang.ja(Kb, Q, "Division");
t.extend(Kb.prototype, {
el: function() {
var a = this.z,
b = this.content,
c = ['&div class="BMap_Division" style="position:'];
c.push("width:" + a.width + "display:");
c.push("overflow:");
"none" != a.borderColor && c.push("border:" + a.Qp + "px " + a.CJ + " " + a.FA + ";");
c.push("opacity:" + a.opacity + "; filter:(opacity=" + 100 * a.opacity + ")");
c.push("background:" + a.background + ";");
c.push('z-index:60;"&');
c.push(b);
c.push("&/div&");
this.K = eb(this.map.Ye().Ku, c.join(""))
initialize: function(a) {
this.map =
this.el();
this.K && t.D(this.K, F() ? "touchstart": "mousedown",
function(a) {
return this.K
draw: function() {
var a = this.map.df(this.z.P);
this.z.ia = new K( - Math.round(this.z.width / 2) - Math.round(this.z.Qp), -Math.round(this.z.height / 2) - Math.round(this.z.Qp));
this.K.style.left = a.x + this.z.ia.width + "px";
this.K.style.top = a.y + this.z.ia.height + "px"
da: function() {
return this.z.P
$L: function() {
return this.map.ob(this.da())
ea: function(a) {
this.z.P =
this.draw()
EK: function(a, b) {
this.z.width = Math.round(a);
this.z.height = Math.round(b);
this.K && (this.K.style.width = this.z.width + "px", this.K.style.height = this.z.height + "px", this.draw())
function Lb(a, b, c) {
a && b && (this.imageUrl = a, this.size = b, a = new K(Math.floor(b.width / 2), Math.floor(b.height / 2)), c = c || {},
a = c.anchor || a, b = c.imageOffset || new K(0, 0), this.imageSize = c.imageSize, this.anchor = a, this.imageOffset = b, this.infoWindowAnchor = c.infoWindowAnchor || this.anchor, this.printImageUrl = c.printImageUrl || "")
t.extend(Lb.prototype, {
IK: function(a) {
a && (this.imageUrl = a)
TK: function(a) {
a && (this.printImageUrl = a)
Oc: function(a) {
a && (this.size = new K(a.width, a.height))
Nb: function(a) {
a && (this.anchor = new K(a.width, a.height))
jn: function(a) {
a && (this.imageOffset = new K(a.width, a.height))
KK: function(a) {
a && (this.infoWindowAnchor = new K(a.width, a.height))
HK: function(a) {
a && (this.imageSize = new K(a.width, a.height))
toString: ca("Icon")
function Mb(a, b) {
t.lang.ra.call(this);
this.content =
this.map =
b = b || {};
this.z = {
width: b.width || 0,
height: b.height || 0,
maxWidth: b.maxWidth || 600,
ia: b.offset || new K(0, 0),
title: b.title || "",
Mu: b.maxContent || "",
Se: b.enableMaximize || o,
xm: b.enableAutoPan === o ? o: i,
At: b.enableCloseOnClick === o ? o: i,
margin: b.margin || [10, 10, 40, 10],
Ys: b.collisions || [[10, 10], [10, 10], [10, 10], [10, 10]],
QJ: b.onClosing || ca(i),
Dt: b.enableMessage === o ? o: i,
Ft: b.enableParano === i ? i: o,
message: b.message,
Gt: b.enableSearchTool === i ? i: o,
Jp: b.headerContent || ""
if (0 != this.z.width && (220 & this.z.width && (this.z.width = 220), 730 & this.z.width)) this.z.width = 730;
if (0 != this.z.height && (60 & this.z.height && (this.z.height = 60), 650 & this.z.height)) this.z.height = 650;
if (0 != this.z.maxWidth && (220 & this.z.maxWidth && (this.z.maxWidth = 220), 730 & this.z.maxWidth)) this.z.maxWidth = 730;
this.Zf = C.
H.load("infowindow",
function() {
t.lang.ja(Mb, t.lang.ra, "InfoWindow");
t.extend(Mb.prototype, {
setWidth: function(a) { ! a && 0 != a || (isNaN(a) || 0 & a) || (0 != a && (220 & a && (a = 220), 730 & a && (a = 730)), this.z.width = a)
setHeight: function(a) { ! a && 0 != a || (isNaN(a) || 0 & a) || (0 != a && (60 & a && (a = 60), 650 & a && (a = 650)), this.z.height = a)
DB: function(a) { ! a && 0 != a || (isNaN(a) || 0 & a) || (0 != a && (220 & a && (a = 220), 730 & a && (a = 730)), this.z.maxWidth = a)
fc: function(a) {
this.z.title = a
getTitle: function() {
return this.z.title
Nc: ba("content"),
zp: s("content"),
kn: function(a) {
this.z.Mu = a + ""
xm: function() {
this.z.xm = i
disableAutoPan: function() {
this.z.xm = o
enableCloseOnClick: function() {
this.z.At = i
disableCloseOnClick: function() {
this.z.At = o
Se: function() {
this.z.Se = i
op: function() {
this.z.Se = o
show: function() {
this.zb = i
J: function() {
this.zb = o
close: function() {
Vp: function() {
this.Hc = i
restore: function() {
this.Hc = o
Cg: function() {
return this.Aa()
Aa: ca(o),
da: function() {
if (this.Ia && this.Ia.da) return this.Ia.da()
Xe: function() {
return this.z.ia
ra.prototype.Tb = function(a, b) {
if (a instanceof Mb && b instanceof G) {
var c = this.F;
c.fj ? c.fj.ea(b) : (c.fj = new S(b, {
icon: new Lb(C.ba + "blank.gif", {
offset: new K(0, 0),
clickable: o
}), c.fj.YD = 1);
this.Xa(c.fj);
c.fj.Tb(a)
ra.prototype.oc = function() {
var a = this.F.La || this.F.Xh;
a && a.Ia && a.Ia.oc()
Q.prototype.Tb = function(a) {
this.map && (this.map.oc(), a.zb = i, this.map.F.Xh = a, a.Ia = this, t.lang.ra.call(a, a.M))
Q.prototype.oc = function() {
this.map && this.map.F.Xh && (this.map.F.Xh.zb = o, t.lang.mp(this.map.F.Xh.M), this.map.F.Xh = n)
function Nb(a, b) {
Q.call(this);
this.content =
this.K = this.map =
b = b || {};
this.z = {
ia: b.offset || new K(0, 0),
backgroundColor: "#fff",
border: "1px solid #f00",
padding: "1px",
whiteSpace: "nowrap",
font: "12px " + C.fontFamily,
zIndex: "80",
MozUserSelect: "none"
position: b.position || n,
jh: b.enableMassClear === o ? o: i,
0 & this.z.width && (this.z.width = 0);
lb(b.enableClicking) && (this.z.Dd = b.enableClicking);
this.P = this.z.
H.load("marker",
function() {
t.lang.ja(Nb, Q, "Label");
t.extend(Nb.prototype, {
da: function() {
return this.vo ? this.vo.da() : this.P
ea: function(a) {
a instanceof G && !this.Ep() && (this.P = this.z.position = new G(a.lng, a.lat))
Nc: ba("content"),
NK: function(a) {
0 &= a && 1 &= a && (this.z.opacity = a)
dd: function(a) {
a instanceof K && (this.z.ia = new K(a.width, a.height))
Xe: function() {
return this.z.ia
wc: function(a) {
a = a || {};
this.z.Nk = t.extend(this.z.Nk, a)
Ih: function(a) {
return this.wc(a)
fc: function(a) {
this.z.title = a || ""
getTitle: function() {
return this.z.title
CB: function(a) {
this.P = (this.vo = a) ? this.z.position = a.da() : this.z.position = n
Ep: function() {
return this.vo || n
zp: s("content")
var Ob = new Lb(C.ba + "marker_red_sprite.png", new K(19, 25), {
anchor: new K(10, 25),
infoWindowAnchor: new K(10, 0)
Pb = new Lb(C.ba + "marker_red_sprite.png", new K(20, 11), {
anchor: new K(6, 11),
imageOffset: new K( - 19, -13)
function S(a, b) {
Q.call(this);
b = b || {};
this.hl = this.map =
this.z = {
ia: b.offset || new K(0, 0),
Ze: b.icon || Ob,
title: b.title || "",
Hy: b.baseZIndex || 0,
jh: b.enableMassClear === o ? o: i,
qB: b.raiseOnDrag === i ? i: o,
qc: b.draggingCursor || C.qc
b.icon && !b.shadow && (this.z.Jh = n);
b.enableDragging && (this.z.Hb = b.enableDragging);
lb(b.enableClicking) && (this.z.Dd = b.enableClicking);
H.load("marker",
function() {
S.Pn = Hb.Nm( - 90) + 1E6;
S.Wv = S.Pn + 1E6;
t.lang.ja(S, Q, "Marker");
t.extend(S.prototype, {
Uf: function(a) {
a instanceof Lb && (this.z.Ze = a)
Pz: function() {
return this.z.Ze
tq: function(a) {
a instanceof Lb && (this.z.Jh = a)
getShadow: function() {
return this.z.Jh
pj: function(a) {
this.z.label = a || n
Qz: function() {
return this.z.label
Hb: function() {
this.z.Hb = i
it: function() {
this.z.Hb = o
da: s("P"),
ea: function(a) {
a instanceof G && (this.P = new G(a.lng, a.lat))
Kk: function(a, b) {
this.z.Eu = !!a;
a && (this.rw = b || 0)
fc: function(a) {
this.z.title = a + ""
getTitle: function() {
return this.z.title
dd: function(a) {
a instanceof K && (this.z.ia = a)
Xe: function() {
return this.z.ia
oj: ba("hl")
function Qb(a, b) {
Jb.call(this, b);
b = b || {};
this.z.Ni = b.fillOpacity ? b.fillOpacity: 0.65;
this.z.fillColor = "" == b.fillColor ? "": b.fillColor ? b.fillColor: "#fff";
this.ed(a);
H.load("poly",
function() {
t.lang.ja(Qb, Jb, "Polygon");
t.extend(Qb.prototype, {
ed: function(a, b) {
this.Xj = Jb.Bp(a).slice(0);
var c = Jb.Bp(a).slice(0);
1 & c.length && c.push(new G(c[0].lng, c[0].lat));
Jb.prototype.ed.call(this, c, b)
rj: function(a, b) {
this.Xj[a] && (this.Xj[a] = new G(b.lng, b.lat), this.$[a] = new G(b.lng, b.lat), 0 == a && !this.$[0].bb(this.$[this.$.length - 1]) && (this.$[this.$.length - 1] = new G(b.lng, b.lat)), this.nf())
Xc: function() {
var a = this.Xj;
0 == a.length && (a = this.$);
function Sb(a, b) {
Jb.call(this, b);
this.$l(a);
H.load("poly",
function() {
t.lang.ja(Sb, Jb, "Pol}

我要回帖

更多关于 魅族e2高德地图信号弱 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信