Commit e942f565 by niuxiaolin

change hotspot maptype pixel size bounds

parent 3160fafc
...@@ -3433,7 +3433,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -3433,7 +3433,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
this.Pd.qv.length = 0 this.Pd.qv.length = 0
} }
}); });
function R(a, b) { function Pixel(a, b) {
this.x = a || 0; this.x = a || 0;
this.y = b || 0; this.y = b || 0;
this.x = this.x; this.x = this.x;
...@@ -3443,7 +3443,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -3443,7 +3443,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
return a && a.x == this.x && a.y == this.y return a && a.x == this.x && a.y == this.y
} }
; ;
function P(a, b) { function Size(a, b) {
this.width = a || 0; this.width = a || 0;
this.height = b || 0 this.height = b || 0
} }
...@@ -3451,9 +3451,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -3451,9 +3451,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
return a && this.width == a.width && this.height == a.height return a && this.width == a.width && this.height == a.height
} }
; ;
function kb(a, b) { function Hotspot(a, b) {
a && (this.Lb = a, a && (this.Lb = a,
this.ea = "spot" + kb.ea++, this.ea = "spot" + Hotspot.ea++,
b = b || {}, b = b || {},
this.Pg = b.text || "", this.Pg = b.text || "",
this.Wu = b.offsets ? b.offsets.slice(0) : [5, 5, 5, 5], this.Wu = b.offsets ? b.offsets.slice(0) : [5, 5, 5, 5],
...@@ -3461,8 +3461,8 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -3461,8 +3461,8 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
this.Ch = b.minZoom || s, this.Ch = b.minZoom || s,
this.Cf = b.maxZoom || s) this.Cf = b.maxZoom || s)
} }
kb.ea = 0; Hotspot.ea = 0;
z.extend(kb.prototype, { z.extend(Hotspot.prototype, {
xa: function(a) { xa: function(a) {
this.Ch == s && (this.Ch = a.U.gc); this.Ch == s && (this.Ch = a.U.gc);
this.Cf == s && (this.Cf = a.U.pc) this.Cf == s && (this.Cf = a.U.pc)
...@@ -4065,7 +4065,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -4065,7 +4065,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
this.zh = t this.zh = t
} }
}); });
function hb(a, b) { function Bounds(a, b) {
a && !b && (b = a); a && !b && (b = a);
this.Ge = this.Vd = this.Le = this.Xd = this.Al = this.ll = s; this.Ge = this.Vd = this.Le = this.Xd = this.Al = this.ll = s;
a && (this.Al = new Point(a.lng,a.lat), a && (this.Al = new Point(a.lng,a.lat),
...@@ -4140,12 +4140,12 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -4140,12 +4140,12 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
return a && this.lat == a.lat && this.lng == a.lng return a && this.lat == a.lat && this.lng == a.lng
} }
; ;
function jc() {} function Projection() {}
jc.prototype.qg = function() { Projection.prototype.qg = function() {
aa("lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0") aa("lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0")
} }
; ;
jc.prototype.oj = function() { Projection.prototype.oj = function() {
aa("pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0") aa("pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0")
} }
; ;
...@@ -4181,9 +4181,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -4181,9 +4181,9 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
mergeAttribute(lc.prototype, { mergeAttribute(lc.prototype, {
translate: lc.prototype.translate translate: lc.prototype.translate
}); });
function S() {} function MercatorProjection() {}
S.prototype = new jc; MercatorProjection.prototype = new jc;
z.extend(S, { z.extend(MercatorProjection, {
uO: 6370996.81, uO: 6370996.81,
FF: [1.289059486E7, 8362377.87, 5591021, 3481989.83, 1678043.12, 0], FF: [1.289059486E7, 8362377.87, 5591021, 3481989.83, 1678043.12, 0],
cu: [86, 60, 45, 30, 15, 0], cu: [86, 60, 45, 30, 15, 0],
...@@ -4275,20 +4275,20 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -4275,20 +4275,20 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
return a return a
} }
}); });
z.extend(S.prototype, { z.extend(MercatorProjection.prototype, {
bi: function(a) { bi: function(a) {
return S.Gb(a) return MercatorProjection.Gb(a)
}, },
lngLatToPoint: function(a) { lngLatToPoint: function(a) {
a = S.Gb(a); a = MercatorProjection.Gb(a);
return new R(a.lng,a.lat) return new R(a.lng,a.lat)
}, },
eh: function(a) { eh: function(a) {
return S.cc(a) return MercatorProjection.cc(a)
}, },
pointToLngLat: function(a) { pointToLngLat: function(a) {
a = new J(a.x,a.y); a = new Point(a.x,a.y);
return S.cc(a) return MercatorProjection.cc(a)
}, },
Rb: function(a, b, c, e, f) { Rb: function(a, b, c, e, f) {
if (a) if (a)
...@@ -4299,7 +4299,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -4299,7 +4299,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
Ib: function(a, b, c, e, f) { Ib: function(a, b, c, e, f) {
if (a) if (a)
return b = this.dc(b), return b = this.dc(b),
this.eh(new J(c.lng + b * (a.x - e.width / 2),c.lat - b * (a.y - e.height / 2)), f) this.eh(new Point(c.lng + b * (a.x - e.width / 2),c.lat - b * (a.y - e.height / 2)), f)
}, },
dc: function(a) { dc: function(a) {
return Math.pow(2, 18 - a) return Math.pow(2, 18 - a)
...@@ -4308,7 +4308,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -4308,7 +4308,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
function jb() { function jb() {
this.Ti = "bj" this.Ti = "bj"
} }
jb.prototype = new S; jb.prototype = new MercatorProjection;
z.extend(jb.prototype, { z.extend(jb.prototype, {
bi: function(a, b) { bi: function(a, b) {
return this.IP(b, S.Gb(a)) return this.IP(b, S.Gb(a))
...@@ -8085,7 +8085,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -8085,7 +8085,7 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
} }
} }
; ;
function Dd(a, b, c) { function MapType(a, b, c) {
this.jd = a; this.jd = a;
this.$e = b instanceof TileLayer ? [b] : b.slice(0); this.$e = b instanceof TileLayer ? [b] : b.slice(0);
c = c || {}; c = c || {};
...@@ -10898,15 +10898,15 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6"; ...@@ -10898,15 +10898,15 @@ window.BMAP_AUTHENTIC_KEY = "KhQqnL3owyAzqjr4zCGbWiiHwPFmKTD6";
} }
}; };
BMap.Map = Map; BMap.Map = Map;
BMap.Hotspot = kb; BMap.Hotspot = Hotspot;
BMap.MapType = Dd; BMap.MapType = MapType;
BMap.Point = Point; BMap.Point = Point;
BMap.Pixel = R; BMap.Pixel = Pixel;
BMap.Size = P; BMap.Size = Size;
BMap.Bounds = hb; BMap.Bounds = Bounds;
BMap.TileLayer = TileLayer; BMap.TileLayer = TileLayer;
BMap.Projection = jc; BMap.Projection = Projection;
BMap.MercatorProjection = S; BMap.MercatorProjection = MercatorProjection;
BMap.PerspectiveProjection = jb; BMap.PerspectiveProjection = jb;
BMap.Copyright = function(a, b, c) { BMap.Copyright = function(a, b, c) {
this.id = a; this.id = a;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment