igniteui-angular-maps 20.0.0-beta.1 → 20.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/igniteui-angular-maps.umd.js +428 -428
- package/bundles/igniteui-angular-maps.umd.min.js +1 -1
- package/esm2015/lib/GeographicHighDensityScatterSeriesView_combined.js +4 -4
- package/esm2015/lib/GeographicMapSeriesHost_combined.js +3 -3
- package/esm2015/lib/GeographicProportionalSymbolSeriesView_combined.js +4 -4
- package/esm2015/lib/GeographicShapeSeriesBase_combined.js +2 -2
- package/esm2015/lib/GeographicSymbolSeriesView_combined.js +4 -4
- package/esm2015/lib/TileSeries_combined.js +1 -1
- package/esm2015/lib/XamGeographicMap_combined.js +376 -376
- package/esm2015/lib/igx-geographic-map-component.js +40 -40
- package/esm5/lib/GeographicHighDensityScatterSeriesView_combined.js +4 -4
- package/esm5/lib/GeographicMapSeriesHost_combined.js +3 -3
- package/esm5/lib/GeographicProportionalSymbolSeriesView_combined.js +4 -4
- package/esm5/lib/GeographicShapeSeriesBase_combined.js +2 -2
- package/esm5/lib/GeographicSymbolSeriesView_combined.js +4 -4
- package/esm5/lib/TileSeries_combined.js +1 -1
- package/esm5/lib/XamGeographicMap_combined.js +370 -370
- package/esm5/lib/igx-geographic-map-component.js +40 -40
- package/fesm2015/igniteui-angular-maps.js +434 -434
- package/fesm5/igniteui-angular-maps.js +428 -428
- package/lib/XamGeographicMap_combined.d.ts +88 -88
- package/package.json +2 -2
|
@@ -44,22 +44,22 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
44
44
|
__extends(XamGeographicMap, _super);
|
|
45
45
|
function XamGeographicMap() {
|
|
46
46
|
var _this = _super.call(this) || this;
|
|
47
|
-
_this.
|
|
48
|
-
_this.
|
|
49
|
-
_this.
|
|
50
|
-
_this.
|
|
51
|
-
_this.
|
|
52
|
-
_this.
|
|
53
|
-
_this.
|
|
54
|
-
_this.w8 = null;
|
|
55
|
-
_this.xc = null;
|
|
56
|
-
_this.yz = { $type: Point_$type, x: NaN, y: NaN };
|
|
57
|
-
_this.y6 = null;
|
|
58
|
-
_this.xr = 1;
|
|
59
|
-
_this.imageTilesReady = null;
|
|
47
|
+
_this.x8 = null;
|
|
48
|
+
_this.xx = false;
|
|
49
|
+
_this.xp = 1;
|
|
50
|
+
_this.x4 = 0;
|
|
51
|
+
_this.zf = null;
|
|
52
|
+
_this.xm = null;
|
|
53
|
+
_this.xi = null;
|
|
60
54
|
_this.xk = null;
|
|
61
|
-
_this.
|
|
62
|
-
_this.
|
|
55
|
+
_this.xo = null;
|
|
56
|
+
_this.zb = { $type: Point_$type, x: NaN, y: NaN };
|
|
57
|
+
_this.zi = null;
|
|
58
|
+
_this.x3 = 1;
|
|
59
|
+
_this.imageTilesReady = null;
|
|
60
|
+
_this.xw = null;
|
|
61
|
+
_this.zh = Rect.empty;
|
|
62
|
+
_this.x4 = SphericalMercatorVerticalScaler.am(XamGeographicMap.zg.bottom) - SphericalMercatorVerticalScaler.am(XamGeographicMap.zg.top);
|
|
63
63
|
_this.ab = XamGeographicMap.$;
|
|
64
64
|
_this.backgroundContent = new OpenStreetMapImagery();
|
|
65
65
|
var a = ((function () {
|
|
@@ -68,79 +68,79 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
68
68
|
return $ret;
|
|
69
69
|
})());
|
|
70
70
|
a.cf = true;
|
|
71
|
-
_this.
|
|
72
|
-
_this.
|
|
71
|
+
_this.xj = a;
|
|
72
|
+
_this.xj.n4 = new SphericalMercatorHorizontalScaler();
|
|
73
73
|
var b = ((function () {
|
|
74
74
|
var $ret = new NumericYAxis();
|
|
75
75
|
$ret.bi = _this;
|
|
76
76
|
return $ret;
|
|
77
77
|
})());
|
|
78
78
|
b.cf = true;
|
|
79
|
-
_this.
|
|
80
|
-
_this.
|
|
81
|
-
_this.
|
|
82
|
-
_this.
|
|
83
|
-
_this.
|
|
79
|
+
_this.xl = b;
|
|
80
|
+
_this.xl.n4 = new SphericalMercatorVerticalScaler();
|
|
81
|
+
_this.yq();
|
|
82
|
+
_this.yx();
|
|
83
|
+
_this.oi();
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
86
|
XamGeographicMap.prototype.provideContainer = function (a) {
|
|
87
87
|
_super.prototype.provideContainer.call(this, a);
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
88
|
+
this.xj.provideRenderer(a);
|
|
89
|
+
this.xl.provideRenderer(a);
|
|
90
90
|
};
|
|
91
|
-
XamGeographicMap.prototype.
|
|
92
|
-
_super.prototype.
|
|
93
|
-
this.
|
|
91
|
+
XamGeographicMap.prototype.oi = function () {
|
|
92
|
+
_super.prototype.oi.call(this);
|
|
93
|
+
this.xv.fv(this.hp);
|
|
94
94
|
};
|
|
95
|
-
XamGeographicMap.prototype.
|
|
96
|
-
return this.
|
|
95
|
+
XamGeographicMap.prototype.fp = function () {
|
|
96
|
+
return this.x1;
|
|
97
97
|
};
|
|
98
|
-
XamGeographicMap.prototype.
|
|
99
|
-
return this.
|
|
98
|
+
XamGeographicMap.prototype.fq = function () {
|
|
99
|
+
return this.x1;
|
|
100
100
|
};
|
|
101
|
-
XamGeographicMap.prototype.
|
|
102
|
-
if (this.
|
|
103
|
-
if (this.
|
|
101
|
+
XamGeographicMap.prototype.xs = function () {
|
|
102
|
+
if (this.xq == 0) {
|
|
103
|
+
if (this.xx) {
|
|
104
104
|
return 2;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
return 1;
|
|
108
108
|
};
|
|
109
|
-
Object.defineProperty(XamGeographicMap.prototype, "
|
|
109
|
+
Object.defineProperty(XamGeographicMap.prototype, "xr", {
|
|
110
110
|
get: function () {
|
|
111
|
-
return this.
|
|
111
|
+
return this.xp;
|
|
112
112
|
},
|
|
113
113
|
set: function (a) {
|
|
114
|
-
this.
|
|
114
|
+
this.xp = a;
|
|
115
115
|
},
|
|
116
116
|
enumerable: false,
|
|
117
117
|
configurable: true
|
|
118
118
|
});
|
|
119
|
-
Object.defineProperty(XamGeographicMap.prototype, "
|
|
119
|
+
Object.defineProperty(XamGeographicMap.prototype, "zk", {
|
|
120
120
|
get: function () {
|
|
121
|
-
return this.
|
|
121
|
+
return this.zf;
|
|
122
122
|
},
|
|
123
123
|
set: function (a) {
|
|
124
|
-
var b = Rect.l_op_Inequality(this.
|
|
124
|
+
var b = Rect.l_op_Inequality(this.zf, a);
|
|
125
125
|
if (b) {
|
|
126
|
-
var c = this.
|
|
127
|
-
this.
|
|
128
|
-
this.
|
|
126
|
+
var c = this.zf;
|
|
127
|
+
this.zf = a;
|
|
128
|
+
this.q5("ActualWorldRect", c, a);
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
enumerable: false,
|
|
132
132
|
configurable: true
|
|
133
133
|
});
|
|
134
|
-
XamGeographicMap.prototype.
|
|
135
|
-
return this.
|
|
134
|
+
XamGeographicMap.prototype.zo = function () {
|
|
135
|
+
return this.zk;
|
|
136
136
|
};
|
|
137
|
-
XamGeographicMap.prototype.
|
|
138
|
-
if (this.
|
|
137
|
+
XamGeographicMap.prototype.yq = function () {
|
|
138
|
+
if (this.zw.isEmpty) {
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
|
-
this.
|
|
141
|
+
this.zk = this.zu(this.zw, this.cs == 1);
|
|
142
142
|
};
|
|
143
|
-
XamGeographicMap.prototype.
|
|
143
|
+
XamGeographicMap.prototype.zu = function (a, b) {
|
|
144
144
|
var c = a.top;
|
|
145
145
|
var d = a.left;
|
|
146
146
|
var e = a.width;
|
|
@@ -148,25 +148,25 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
148
148
|
var g = SphericalMercatorVerticalScaler.am(a.bottom);
|
|
149
149
|
var h = SphericalMercatorVerticalScaler.am(a.top);
|
|
150
150
|
var i = g - h;
|
|
151
|
-
var j = a.width / XamGeographicMap.
|
|
152
|
-
var k = SphericalMercatorVerticalScaler.am(XamGeographicMap.
|
|
151
|
+
var j = a.width / XamGeographicMap.zg.width;
|
|
152
|
+
var k = SphericalMercatorVerticalScaler.am(XamGeographicMap.zg.top);
|
|
153
153
|
var l = i / j;
|
|
154
|
-
if (i / j > this.
|
|
155
|
-
var m = i / this.
|
|
154
|
+
if (i / j > this.x4) {
|
|
155
|
+
var m = i / this.x4;
|
|
156
156
|
var n = m - j;
|
|
157
|
-
d = d - (n / 2) * XamGeographicMap.
|
|
158
|
-
e = m * XamGeographicMap.
|
|
157
|
+
d = d - (n / 2) * XamGeographicMap.zg.width;
|
|
158
|
+
e = m * XamGeographicMap.zg.width;
|
|
159
159
|
if (b) {
|
|
160
|
-
if (d < XamGeographicMap.
|
|
161
|
-
d += (XamGeographicMap.
|
|
160
|
+
if (d < XamGeographicMap.zg.left) {
|
|
161
|
+
d += (XamGeographicMap.zg.left - d);
|
|
162
162
|
}
|
|
163
|
-
else if ((d + e) > XamGeographicMap.
|
|
164
|
-
d -= ((d + e) - XamGeographicMap.
|
|
163
|
+
else if ((d + e) > XamGeographicMap.zg.right) {
|
|
164
|
+
d -= ((d + e) - XamGeographicMap.zg.right);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
else if (i / j < this.
|
|
169
|
-
var o = this.
|
|
168
|
+
else if (i / j < this.x4) {
|
|
169
|
+
var o = this.x4 * j;
|
|
170
170
|
var p = o - i;
|
|
171
171
|
var q = h - (p / 2);
|
|
172
172
|
var r = g + (p / 2);
|
|
@@ -175,9 +175,9 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
175
175
|
q += (k - q);
|
|
176
176
|
r += (k - q);
|
|
177
177
|
}
|
|
178
|
-
else if (r > (k + this.
|
|
179
|
-
q -= ((r) - (k + this.
|
|
180
|
-
r -= ((r) - (k + this.
|
|
178
|
+
else if (r > (k + this.x4)) {
|
|
179
|
+
q -= ((r) - (k + this.x4));
|
|
180
|
+
r -= ((r) - (k + this.x4));
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
c = SphericalMercatorVerticalScaler.aq(q);
|
|
@@ -188,44 +188,44 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
188
188
|
};
|
|
189
189
|
Object.defineProperty(XamGeographicMap.prototype, "backgroundContent", {
|
|
190
190
|
get: function () {
|
|
191
|
-
return this.
|
|
191
|
+
return this.xm;
|
|
192
192
|
},
|
|
193
193
|
set: function (a) {
|
|
194
194
|
var b = a != this.backgroundContent;
|
|
195
195
|
if (b) {
|
|
196
196
|
var c = this.backgroundContent;
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
197
|
+
this.xm = a;
|
|
198
|
+
this.q5("BackgroundContent", c, a);
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
201
|
enumerable: false,
|
|
202
202
|
configurable: true
|
|
203
203
|
});
|
|
204
|
-
Object.defineProperty(XamGeographicMap.prototype, "
|
|
204
|
+
Object.defineProperty(XamGeographicMap.prototype, "xj", {
|
|
205
205
|
get: function () {
|
|
206
|
-
return this.
|
|
206
|
+
return this.xi;
|
|
207
207
|
},
|
|
208
208
|
set: function (a) {
|
|
209
|
-
var b = a != this.
|
|
209
|
+
var b = a != this.xj;
|
|
210
210
|
if (b) {
|
|
211
|
-
var c = this.
|
|
212
|
-
this.
|
|
213
|
-
this.
|
|
211
|
+
var c = this.xj;
|
|
212
|
+
this.xi = a;
|
|
213
|
+
this.q5("XAxis", c, a);
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
enumerable: false,
|
|
217
217
|
configurable: true
|
|
218
218
|
});
|
|
219
|
-
Object.defineProperty(XamGeographicMap.prototype, "
|
|
219
|
+
Object.defineProperty(XamGeographicMap.prototype, "xl", {
|
|
220
220
|
get: function () {
|
|
221
|
-
return this.
|
|
221
|
+
return this.xk;
|
|
222
222
|
},
|
|
223
223
|
set: function (a) {
|
|
224
|
-
var b = a != this.
|
|
224
|
+
var b = a != this.xl;
|
|
225
225
|
if (b) {
|
|
226
|
-
var c = this.
|
|
227
|
-
this.
|
|
228
|
-
this.
|
|
226
|
+
var c = this.xl;
|
|
227
|
+
this.xk = a;
|
|
228
|
+
this.q5("YAxis", c, a);
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
231
|
enumerable: false,
|
|
@@ -234,41 +234,41 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
234
234
|
XamGeographicMap.prototype.getZoomRectFromGeoRect = function (a) {
|
|
235
235
|
return this.getZoomFromGeographicRect(a);
|
|
236
236
|
};
|
|
237
|
-
XamGeographicMap.prototype.
|
|
238
|
-
this.
|
|
237
|
+
XamGeographicMap.prototype.y0 = function (a) {
|
|
238
|
+
this.xc = a;
|
|
239
239
|
};
|
|
240
|
-
XamGeographicMap.prototype.
|
|
241
|
-
this.
|
|
240
|
+
XamGeographicMap.prototype.yz = function (a) {
|
|
241
|
+
this.zw = a;
|
|
242
242
|
};
|
|
243
243
|
XamGeographicMap.prototype.getZoomFromGeographicRect = function (a) {
|
|
244
|
-
return this.
|
|
244
|
+
return this.zm(a, true, 0);
|
|
245
245
|
};
|
|
246
|
-
XamGeographicMap.prototype.
|
|
247
|
-
return this.
|
|
246
|
+
XamGeographicMap.prototype.zl = function (a, b) {
|
|
247
|
+
return this.zm(a, false, b);
|
|
248
248
|
};
|
|
249
|
-
XamGeographicMap.prototype.
|
|
249
|
+
XamGeographicMap.prototype.zm = function (a, b, c) {
|
|
250
250
|
var d = a;
|
|
251
251
|
if (b) {
|
|
252
|
-
d = this.
|
|
253
|
-
}
|
|
254
|
-
var e = this.
|
|
255
|
-
var f = this.
|
|
256
|
-
var g = new ScalerParams(1, XamGeographicMap.
|
|
257
|
-
g.c = this.
|
|
258
|
-
var h = new ScalerParams(1, XamGeographicMap.
|
|
259
|
-
h.c = this.
|
|
260
|
-
var i = this.
|
|
261
|
-
var j = this.
|
|
262
|
-
var k = this.
|
|
263
|
-
var l = this.
|
|
264
|
-
var m = (i - c) / this.
|
|
265
|
-
var n = (l - c) / this.
|
|
266
|
-
var o = (j - i + (c * 2)) / this.
|
|
267
|
-
var p = (k - l + (c * 2)) / this.
|
|
252
|
+
d = this.zu(a, false);
|
|
253
|
+
}
|
|
254
|
+
var e = this.xj;
|
|
255
|
+
var f = this.xl;
|
|
256
|
+
var g = new ScalerParams(1, XamGeographicMap.zj, this.xb, e.ch);
|
|
257
|
+
g.c = this.wx;
|
|
258
|
+
var h = new ScalerParams(1, XamGeographicMap.zj, this.xb, f.ch);
|
|
259
|
+
h.c = this.wx;
|
|
260
|
+
var i = this.xj.el(d.left, g);
|
|
261
|
+
var j = this.xj.el(d.right, g);
|
|
262
|
+
var k = this.xl.el(d.top, h);
|
|
263
|
+
var l = this.xl.el(d.bottom, h);
|
|
264
|
+
var m = (i - c) / this.xb.width;
|
|
265
|
+
var n = (l - c) / this.xb.height;
|
|
266
|
+
var o = (j - i + (c * 2)) / this.xb.width;
|
|
267
|
+
var p = (k - l + (c * 2)) / this.xb.height;
|
|
268
268
|
var q = new Rect(0, m, n, o, p);
|
|
269
|
-
q.intersect(XamGeographicMap.
|
|
269
|
+
q.intersect(XamGeographicMap.zj);
|
|
270
270
|
if (q.isEmpty) {
|
|
271
|
-
q = XamGeographicMap.
|
|
271
|
+
q = XamGeographicMap.zj;
|
|
272
272
|
}
|
|
273
273
|
return q;
|
|
274
274
|
};
|
|
@@ -278,21 +278,21 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
278
278
|
var e = b.x - a.x;
|
|
279
279
|
var f = a.y - b.y;
|
|
280
280
|
if (e < 0 || f < 0) {
|
|
281
|
-
return XamGeographicMap.
|
|
281
|
+
return XamGeographicMap.zj;
|
|
282
282
|
}
|
|
283
283
|
else {
|
|
284
284
|
var g = new Rect(0, c, d, e, f);
|
|
285
285
|
return this.getZoomFromGeographicRect(g);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
XamGeographicMap.prototype.
|
|
289
|
-
var b = this.
|
|
290
|
-
var c = this.
|
|
291
|
-
var d = new ScalerParams(1, a, this.
|
|
292
|
-
d.c = this.
|
|
293
|
-
var e = new ScalerParams(1, a, this.
|
|
294
|
-
e.c = this.
|
|
295
|
-
var f = this.
|
|
288
|
+
XamGeographicMap.prototype.zq = function (a) {
|
|
289
|
+
var b = this.xj;
|
|
290
|
+
var c = this.xl;
|
|
291
|
+
var d = new ScalerParams(1, a, this.xb, b.ch);
|
|
292
|
+
d.c = this.wx;
|
|
293
|
+
var e = new ScalerParams(1, a, this.xb, c.ch);
|
|
294
|
+
e.c = this.wx;
|
|
295
|
+
var f = this.ww;
|
|
296
296
|
var g = b.eo(f.left, d);
|
|
297
297
|
var h = c.eo(f.top, e);
|
|
298
298
|
var i = b.eo(f.right, d);
|
|
@@ -300,41 +300,41 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
300
300
|
var k = i - g;
|
|
301
301
|
var l = h - j;
|
|
302
302
|
var m = new Rect(0, g, j, k, l);
|
|
303
|
-
if (this.
|
|
304
|
-
m.intersect(XamGeographicMap.
|
|
303
|
+
if (this.cs == 1) {
|
|
304
|
+
m.intersect(XamGeographicMap.zg);
|
|
305
305
|
if (m.isEmpty) {
|
|
306
|
-
m = XamGeographicMap.
|
|
306
|
+
m = XamGeographicMap.zg;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
return m;
|
|
310
310
|
};
|
|
311
|
-
XamGeographicMap.prototype.
|
|
312
|
-
var b = this.
|
|
313
|
-
var c = this.
|
|
311
|
+
XamGeographicMap.prototype.zc = function (a) {
|
|
312
|
+
var b = this.xj.mf(a.x);
|
|
313
|
+
var c = this.xl.mf(a.y);
|
|
314
314
|
return { $type: Point_$type, x: b, y: c };
|
|
315
315
|
};
|
|
316
|
-
XamGeographicMap.prototype.
|
|
317
|
-
var b = this.
|
|
318
|
-
var c = this.
|
|
316
|
+
XamGeographicMap.prototype.zd = function (a) {
|
|
317
|
+
var b = this.xj.e6(a.x);
|
|
318
|
+
var c = this.xl.e6(a.y);
|
|
319
319
|
return { $type: Point_$type, x: b, y: c };
|
|
320
320
|
};
|
|
321
|
-
XamGeographicMap.prototype.
|
|
322
|
-
return this.
|
|
321
|
+
XamGeographicMap.prototype.ze = function (a) {
|
|
322
|
+
return this.zd(a);
|
|
323
323
|
};
|
|
324
|
-
XamGeographicMap.prototype.
|
|
324
|
+
XamGeographicMap.prototype.yn = function () {
|
|
325
325
|
var a = typeCast(GeographicMapImagery.$, this.backgroundContent);
|
|
326
326
|
if (a != null) {
|
|
327
327
|
a.clearTileCache();
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
XamGeographicMap.prototype.
|
|
330
|
+
XamGeographicMap.prototype.yt = function (a) {
|
|
331
331
|
};
|
|
332
|
-
XamGeographicMap.prototype.
|
|
332
|
+
XamGeographicMap.prototype.gk = function () {
|
|
333
333
|
return true;
|
|
334
334
|
};
|
|
335
|
-
XamGeographicMap.prototype.
|
|
335
|
+
XamGeographicMap.prototype.yv = function () {
|
|
336
336
|
var e_1, _a;
|
|
337
|
-
this.
|
|
337
|
+
this.xv.ee();
|
|
338
338
|
try {
|
|
339
339
|
for (var _b = __values(fromEnum(this.series)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
340
340
|
var a = _c.value;
|
|
@@ -355,128 +355,128 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
-
XamGeographicMap.prototype.
|
|
359
|
-
if (this.
|
|
360
|
-
if (!this.
|
|
361
|
-
var a = this.
|
|
362
|
-
var b = this.
|
|
363
|
-
this.
|
|
358
|
+
XamGeographicMap.prototype.yy = function () {
|
|
359
|
+
if (this.xu == 2) {
|
|
360
|
+
if (!this.xb.isEmpty && this.xb.width > 0 && this.xb.height > 0) {
|
|
361
|
+
var a = this.xj.mf(this.xb.left + (this.xb.width / 2));
|
|
362
|
+
var b = this.xl.mf(this.xb.top + (this.xb.height / 2));
|
|
363
|
+
this.zb = { $type: Point_$type, x: a, y: b };
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
else {
|
|
367
|
-
if (!this.
|
|
368
|
-
var c = this.
|
|
369
|
-
var d = this.
|
|
370
|
-
this.
|
|
367
|
+
if (!this.xb.isEmpty && this.xb.width > 0 && this.xb.height > 0) {
|
|
368
|
+
var c = this.xj.mf(this.xb.left);
|
|
369
|
+
var d = this.xl.mf(this.xb.top);
|
|
370
|
+
this.zb = { $type: Point_$type, x: c, y: d };
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
|
-
XamGeographicMap.prototype.
|
|
375
|
-
if (isNaN_(this.
|
|
376
|
-
this.
|
|
374
|
+
XamGeographicMap.prototype.yu = function () {
|
|
375
|
+
if (isNaN_(this.zb.x) || isNaN_(this.zb.y)) {
|
|
376
|
+
this.yy();
|
|
377
377
|
}
|
|
378
|
-
var a = this.
|
|
379
|
-
var b = this.
|
|
378
|
+
var a = this.zb.x;
|
|
379
|
+
var b = this.zb.y;
|
|
380
380
|
if (!isNaN_(a) && !isNaN_(b)) {
|
|
381
|
-
var c = this.
|
|
382
|
-
var d = this.
|
|
383
|
-
var e = this.
|
|
384
|
-
var f = this.
|
|
385
|
-
if (e > this.
|
|
381
|
+
var c = this.wt.left;
|
|
382
|
+
var d = this.wt.top;
|
|
383
|
+
var e = this.wt.width;
|
|
384
|
+
var f = this.wt.height;
|
|
385
|
+
if (e > this.zi.width) {
|
|
386
386
|
}
|
|
387
387
|
else {
|
|
388
|
-
var g = new ScalerParams(1, XamGeographicMap.
|
|
389
|
-
g.c = this.
|
|
390
|
-
var h = this.
|
|
391
|
-
if (this.
|
|
392
|
-
var i = h / this.
|
|
388
|
+
var g = new ScalerParams(1, XamGeographicMap.zj, this.xb, this.xj.ch);
|
|
389
|
+
g.c = this.wx;
|
|
390
|
+
var h = this.xj.el(a, g);
|
|
391
|
+
if (this.xu == 2) {
|
|
392
|
+
var i = h / this.xb.width;
|
|
393
393
|
c = i - (e / 2);
|
|
394
394
|
}
|
|
395
395
|
else {
|
|
396
|
-
c = h / this.
|
|
396
|
+
c = h / this.xb.width;
|
|
397
397
|
}
|
|
398
|
-
if (c + e > this.
|
|
399
|
-
c = this.
|
|
398
|
+
if (c + e > this.zi.right) {
|
|
399
|
+
c = this.zi.right - e;
|
|
400
400
|
}
|
|
401
|
-
else if (c < this.
|
|
402
|
-
c = this.
|
|
401
|
+
else if (c < this.zi.left) {
|
|
402
|
+
c = this.zi.left;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
if (f > this.
|
|
405
|
+
if (f > this.zi.height) {
|
|
406
406
|
}
|
|
407
407
|
else {
|
|
408
|
-
var j = new ScalerParams(1, XamGeographicMap.
|
|
409
|
-
j.c = this.
|
|
410
|
-
var k = this.
|
|
411
|
-
if (this.
|
|
412
|
-
var l = k / this.
|
|
408
|
+
var j = new ScalerParams(1, XamGeographicMap.zj, this.xb, this.xl.ch);
|
|
409
|
+
j.c = this.wx;
|
|
410
|
+
var k = this.xl.el(b, j);
|
|
411
|
+
if (this.xu == 2) {
|
|
412
|
+
var l = k / this.xb.height;
|
|
413
413
|
d = l - (f / 2);
|
|
414
414
|
}
|
|
415
415
|
else {
|
|
416
|
-
d = k / this.
|
|
416
|
+
d = k / this.xb.height;
|
|
417
417
|
}
|
|
418
|
-
if (d + f > this.
|
|
419
|
-
d = this.
|
|
418
|
+
if (d + f > this.zi.bottom) {
|
|
419
|
+
d = this.zi.bottom - f;
|
|
420
420
|
}
|
|
421
|
-
else if (d < this.
|
|
422
|
-
d = this.
|
|
421
|
+
else if (d < this.zi.top) {
|
|
422
|
+
d = this.zi.top;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
this.
|
|
425
|
+
this.sh(new Rect(0, c, d, e, f), false);
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
XamGeographicMap.prototype.
|
|
428
|
+
XamGeographicMap.prototype.get_fh = function () {
|
|
429
429
|
return true;
|
|
430
430
|
};
|
|
431
|
-
XamGeographicMap.prototype.
|
|
432
|
-
var a = _super.prototype.
|
|
433
|
-
if (this.
|
|
431
|
+
XamGeographicMap.prototype.wu = function () {
|
|
432
|
+
var a = _super.prototype.wu.call(this);
|
|
433
|
+
if (this.xj == null || this.xl == null) {
|
|
434
434
|
return a;
|
|
435
435
|
}
|
|
436
|
-
this.
|
|
436
|
+
this.w5();
|
|
437
437
|
var b = a.left;
|
|
438
438
|
var c = a.top;
|
|
439
|
-
if (this.
|
|
440
|
-
if (this.
|
|
441
|
-
b = 0.5 - (this.
|
|
439
|
+
if (this.cs == 1) {
|
|
440
|
+
if (this.xc.width > this.zi.width) {
|
|
441
|
+
b = 0.5 - (this.xc.width / 2);
|
|
442
442
|
}
|
|
443
|
-
else if (b + a.width > this.
|
|
444
|
-
b = this.
|
|
443
|
+
else if (b + a.width > this.zi.right) {
|
|
444
|
+
b = this.zi.right - this.xc.width;
|
|
445
445
|
}
|
|
446
|
-
else if (b < this.
|
|
447
|
-
b = this.
|
|
446
|
+
else if (b < this.zi.left) {
|
|
447
|
+
b = this.zi.left;
|
|
448
448
|
}
|
|
449
|
-
if (this.
|
|
450
|
-
c = 0.5 - (this.
|
|
449
|
+
if (this.xc.height > this.zi.height) {
|
|
450
|
+
c = 0.5 - (this.xc.height / 2);
|
|
451
451
|
}
|
|
452
|
-
else if (c + this.
|
|
453
|
-
c = this.
|
|
452
|
+
else if (c + this.xc.height > this.zi.bottom) {
|
|
453
|
+
c = this.zi.bottom - this.xc.height;
|
|
454
454
|
}
|
|
455
|
-
else if (c < this.
|
|
456
|
-
c = this.
|
|
455
|
+
else if (c < this.zi.top) {
|
|
456
|
+
c = this.zi.top;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
var d = false;
|
|
460
|
-
if (!this.
|
|
460
|
+
if (!this.x0 && this.cs == 2 && this.xx) {
|
|
461
461
|
if (b > 1) {
|
|
462
462
|
b = (b - Math.floor(b)) + 1;
|
|
463
463
|
}
|
|
464
464
|
if (b < 0) {
|
|
465
465
|
b = 0 - (Math.ceil(b) - b);
|
|
466
466
|
}
|
|
467
|
-
if ((a.right - this.
|
|
468
|
-
b = this.
|
|
467
|
+
if ((a.right - this.zi.right) > 0 && ((a.right - this.zi.right) / a.width) > 0.8) {
|
|
468
|
+
b = this.zi.left - (a.width - (a.right - this.zi.right));
|
|
469
469
|
d = true;
|
|
470
470
|
}
|
|
471
|
-
else if (a.left < this.
|
|
472
|
-
b = this.
|
|
471
|
+
else if (a.left < this.zi.left && (Math.abs(a.left - this.zi.left) / a.width) > 0.8) {
|
|
472
|
+
b = this.zi.right - (Math.abs(a.left - this.zi.left));
|
|
473
473
|
d = true;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
var e = new Rect(0, b, c, a.width, a.height);
|
|
477
|
-
if (this.
|
|
478
|
-
var f = this.
|
|
479
|
-
f = this.
|
|
477
|
+
if (this.x0) {
|
|
478
|
+
var f = this.zl(this.zw, 1);
|
|
479
|
+
f = this.zn(f);
|
|
480
480
|
var g = e.left + e.width / 2;
|
|
481
481
|
var h = e.top + e.height / 2;
|
|
482
482
|
if (e.width > f.width) {
|
|
@@ -511,17 +511,17 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
if (d) {
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
514
|
+
this.e3 = true;
|
|
515
|
+
this.xc = e;
|
|
516
|
+
this.e3 = false;
|
|
517
517
|
}
|
|
518
518
|
return e;
|
|
519
519
|
};
|
|
520
|
-
XamGeographicMap.prototype.
|
|
520
|
+
XamGeographicMap.prototype.nm = function (a, b) {
|
|
521
521
|
var c = true;
|
|
522
522
|
var d = true;
|
|
523
523
|
var e = 0;
|
|
524
|
-
var f = this.
|
|
524
|
+
var f = this.w5();
|
|
525
525
|
var g = 0;
|
|
526
526
|
var h = 0;
|
|
527
527
|
if ((a.right - f.right) > 0) {
|
|
@@ -538,39 +538,39 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
538
538
|
}
|
|
539
539
|
if (c) {
|
|
540
540
|
if (d) {
|
|
541
|
-
var i = this.
|
|
542
|
-
var j = this.
|
|
541
|
+
var i = this.xi.el(-180, b);
|
|
542
|
+
var j = this.xi.el(180, b);
|
|
543
543
|
e = j - i;
|
|
544
544
|
}
|
|
545
545
|
else {
|
|
546
|
-
var k = this.
|
|
547
|
-
var l = this.
|
|
546
|
+
var k = this.xi.el(-180, b);
|
|
547
|
+
var l = this.xi.el(180, b);
|
|
548
548
|
e = k - l;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
return new Tuple$2(Boolean_$type, Number_$type, c, e);
|
|
552
552
|
};
|
|
553
|
-
XamGeographicMap.prototype.
|
|
554
|
-
var a = new ScalerParams(1, XamGeographicMap.
|
|
555
|
-
a.c = this.
|
|
556
|
-
var b = new ScalerParams(1, XamGeographicMap.
|
|
557
|
-
b.c = this.
|
|
558
|
-
var c = this.
|
|
559
|
-
var d = this.
|
|
560
|
-
var e = this.
|
|
561
|
-
var f = this.
|
|
562
|
-
this.
|
|
563
|
-
return this.
|
|
564
|
-
};
|
|
565
|
-
XamGeographicMap.prototype.
|
|
566
|
-
var b = this.
|
|
553
|
+
XamGeographicMap.prototype.w5 = function () {
|
|
554
|
+
var a = new ScalerParams(1, XamGeographicMap.zj, this.xb, this.xj.ch);
|
|
555
|
+
a.c = this.wx;
|
|
556
|
+
var b = new ScalerParams(1, XamGeographicMap.zj, this.xb, this.xl.ch);
|
|
557
|
+
b.c = this.wx;
|
|
558
|
+
var c = this.xj.el(XamGeographicMap.zg.left, a);
|
|
559
|
+
var d = this.xj.el(XamGeographicMap.zg.right, a);
|
|
560
|
+
var e = this.xl.el(XamGeographicMap.zg.top, b);
|
|
561
|
+
var f = this.xl.el(XamGeographicMap.zg.bottom, b);
|
|
562
|
+
this.zi = new Rect(0, c / this.xb.width, f / this.xb.height, (d - c) / this.xb.width, (e - f) / this.xb.height);
|
|
563
|
+
return this.zi;
|
|
564
|
+
};
|
|
565
|
+
XamGeographicMap.prototype.zn = function (a) {
|
|
566
|
+
var b = this.ht;
|
|
567
567
|
var c = 0.5 * (a.left + a.right);
|
|
568
568
|
var d = 0.5 * (a.top + a.bottom);
|
|
569
569
|
var e = a.width;
|
|
570
570
|
var f = a.height;
|
|
571
571
|
var g = MathUtil.d(a.width, b, 1);
|
|
572
572
|
var h = MathUtil.d(a.height, b, 1);
|
|
573
|
-
var i = this.
|
|
573
|
+
var i = this.xb;
|
|
574
574
|
var j = i.width / i.height;
|
|
575
575
|
var k = g * i.width;
|
|
576
576
|
var l = h * i.height;
|
|
@@ -609,8 +609,8 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
609
609
|
}
|
|
610
610
|
return new Rect(0, p, q, r - p, s - q);
|
|
611
611
|
};
|
|
612
|
-
XamGeographicMap.prototype.
|
|
613
|
-
_super.prototype.
|
|
612
|
+
XamGeographicMap.prototype.wv = function (a) {
|
|
613
|
+
_super.prototype.wv.call(this, this.xb);
|
|
614
614
|
if (a.isEmpty) {
|
|
615
615
|
return Rect.empty;
|
|
616
616
|
}
|
|
@@ -625,131 +625,131 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
625
625
|
}
|
|
626
626
|
return b;
|
|
627
627
|
};
|
|
628
|
-
XamGeographicMap.prototype.
|
|
629
|
-
return this.
|
|
628
|
+
XamGeographicMap.prototype.zp = function (a) {
|
|
629
|
+
return this.wv(a);
|
|
630
630
|
};
|
|
631
|
-
XamGeographicMap.prototype.
|
|
631
|
+
XamGeographicMap.prototype.db = function () {
|
|
632
632
|
return new XamGeographicMapView(this);
|
|
633
633
|
};
|
|
634
|
-
XamGeographicMap.prototype.
|
|
634
|
+
XamGeographicMap.prototype.yp = function (a) {
|
|
635
635
|
if (a != null) {
|
|
636
636
|
a.bi = this;
|
|
637
637
|
}
|
|
638
638
|
};
|
|
639
|
-
XamGeographicMap.prototype.
|
|
640
|
-
_super.prototype.
|
|
641
|
-
this.
|
|
639
|
+
XamGeographicMap.prototype.qo = function (a) {
|
|
640
|
+
_super.prototype.qo.call(this, a);
|
|
641
|
+
this.xv = a;
|
|
642
642
|
};
|
|
643
|
-
XamGeographicMap.prototype.
|
|
644
|
-
_super.prototype.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
643
|
+
XamGeographicMap.prototype.qz = function (a, b) {
|
|
644
|
+
_super.prototype.qz.call(this, a, b);
|
|
645
|
+
this.r5(this.xj);
|
|
646
|
+
this.r5(this.xl);
|
|
647
647
|
if (Rect.l_op_Inequality(a, b)) {
|
|
648
|
-
this.
|
|
648
|
+
this.yu();
|
|
649
649
|
}
|
|
650
|
-
if (this.
|
|
651
|
-
this.
|
|
650
|
+
if (this.x0) {
|
|
651
|
+
this.wt = this.wu();
|
|
652
652
|
}
|
|
653
|
-
this.
|
|
653
|
+
this.y1();
|
|
654
654
|
};
|
|
655
|
-
Object.defineProperty(XamGeographicMap.prototype, "
|
|
655
|
+
Object.defineProperty(XamGeographicMap.prototype, "x5", {
|
|
656
656
|
get: function () {
|
|
657
|
-
return this.
|
|
657
|
+
return this.x3;
|
|
658
658
|
},
|
|
659
659
|
set: function (a) {
|
|
660
|
-
var b = this.
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
660
|
+
var b = this.x3;
|
|
661
|
+
this.x3 = a;
|
|
662
|
+
this.q5("ActualWindowScale", b, this.x3);
|
|
663
663
|
},
|
|
664
664
|
enumerable: false,
|
|
665
665
|
configurable: true
|
|
666
666
|
});
|
|
667
|
-
XamGeographicMap.prototype.
|
|
668
|
-
return this.
|
|
667
|
+
XamGeographicMap.prototype.hz = function () {
|
|
668
|
+
return this.x5;
|
|
669
669
|
};
|
|
670
|
-
XamGeographicMap.prototype.
|
|
671
|
-
return this.
|
|
670
|
+
XamGeographicMap.prototype.h0 = function () {
|
|
671
|
+
return this.x5;
|
|
672
672
|
};
|
|
673
|
-
XamGeographicMap.prototype.
|
|
674
|
-
_super.prototype.
|
|
675
|
-
var a = Math.min(this.
|
|
676
|
-
this.
|
|
673
|
+
XamGeographicMap.prototype.r4 = function () {
|
|
674
|
+
_super.prototype.r4.call(this);
|
|
675
|
+
var a = Math.min(this.wt.width, this.wt.height);
|
|
676
|
+
this.x5 = a;
|
|
677
677
|
};
|
|
678
|
-
XamGeographicMap.prototype.
|
|
679
|
-
return this.
|
|
678
|
+
XamGeographicMap.prototype.f8 = function () {
|
|
679
|
+
return this.xx;
|
|
680
680
|
};
|
|
681
|
-
XamGeographicMap.prototype.
|
|
682
|
-
if (this.
|
|
683
|
-
if (this.
|
|
681
|
+
XamGeographicMap.prototype.ct = function () {
|
|
682
|
+
if (this.cu == 0) {
|
|
683
|
+
if (this.xy) {
|
|
684
684
|
return 2;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
return this.
|
|
687
|
+
return this.cu;
|
|
688
688
|
};
|
|
689
|
-
XamGeographicMap.prototype.
|
|
689
|
+
XamGeographicMap.prototype.q0 = function (a, b, c, d) {
|
|
690
690
|
var e_2, _a, e_3, _b;
|
|
691
|
-
_super.prototype.
|
|
691
|
+
_super.prototype.q0.call(this, a, b, c, d);
|
|
692
692
|
switch (b) {
|
|
693
693
|
case "ZoomCoercionMode":
|
|
694
|
-
this.
|
|
694
|
+
this.yq();
|
|
695
695
|
break;
|
|
696
696
|
case "WindowRect":
|
|
697
|
-
this.
|
|
697
|
+
this.yy();
|
|
698
698
|
break;
|
|
699
699
|
case XamGeographicMap.$$p[0]:
|
|
700
|
-
this.
|
|
701
|
-
if (this.
|
|
702
|
-
this.
|
|
700
|
+
this.xr = this.xs();
|
|
701
|
+
if (this.xo != null) {
|
|
702
|
+
this.xo.isHorizontalWrappingEnabled = this.xr == 2;
|
|
703
703
|
}
|
|
704
704
|
break;
|
|
705
705
|
case XamGeographicMap.$$p[1]:
|
|
706
|
-
this.
|
|
707
|
-
this.
|
|
708
|
-
this.
|
|
709
|
-
if (this.
|
|
710
|
-
this.
|
|
706
|
+
this.xx = this.xy;
|
|
707
|
+
this.xr = this.xs();
|
|
708
|
+
this.cs = this.ct();
|
|
709
|
+
if (this.xo != null) {
|
|
710
|
+
this.xo.isHorizontalWrappingEnabled = this.xr == 2;
|
|
711
711
|
}
|
|
712
712
|
break;
|
|
713
713
|
case XamGeographicMap.$$p[4]:
|
|
714
|
-
this.
|
|
714
|
+
this.wt = this.wu();
|
|
715
715
|
break;
|
|
716
716
|
case "BackgroundContent":
|
|
717
|
-
if (this.
|
|
718
|
-
var e = this.
|
|
719
|
-
e.imageTilesReady = delegateRemove(e.imageTilesReady, runOn(this, this.
|
|
720
|
-
this.
|
|
717
|
+
if (this.xo != null) {
|
|
718
|
+
var e = this.xo;
|
|
719
|
+
e.imageTilesReady = delegateRemove(e.imageTilesReady, runOn(this, this.yr));
|
|
720
|
+
this.xo.deferralHandler = null;
|
|
721
721
|
}
|
|
722
|
-
this.
|
|
723
|
-
if (this.
|
|
724
|
-
var f = this.
|
|
725
|
-
f.imageTilesReady = delegateCombine(f.imageTilesReady, runOn(this, this.
|
|
726
|
-
this.
|
|
727
|
-
this.
|
|
722
|
+
this.xo = typeCast(GeographicMapImagery.$, this.backgroundContent);
|
|
723
|
+
if (this.xo != null) {
|
|
724
|
+
var f = this.xo;
|
|
725
|
+
f.imageTilesReady = delegateCombine(f.imageTilesReady, runOn(this, this.yr));
|
|
726
|
+
this.xo.deferralHandler = this;
|
|
727
|
+
this.xo.isHorizontalWrappingEnabled = this.xr == 2;
|
|
728
728
|
}
|
|
729
|
-
this.
|
|
730
|
-
if (this.
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
729
|
+
this.xv.fu(typeCast(GeographicMapImagery.$, c), typeCast(GeographicMapImagery.$, d));
|
|
730
|
+
if (this.xo != null) {
|
|
731
|
+
this.xo.geographicMap = this;
|
|
732
|
+
this.xv.fr(this.wt);
|
|
733
|
+
this.xv.fv(this.hp);
|
|
734
734
|
}
|
|
735
735
|
break;
|
|
736
736
|
case "YAxis":
|
|
737
737
|
case "XAxis":
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
738
|
+
this.yw(c);
|
|
739
|
+
this.yp(d);
|
|
740
740
|
break;
|
|
741
741
|
case XamGeographicMap.$$p[6]:
|
|
742
|
-
if (!this.
|
|
743
|
-
this.
|
|
742
|
+
if (!this.xz) {
|
|
743
|
+
this.xc = XamGeographicMap.zj;
|
|
744
744
|
}
|
|
745
|
-
this.
|
|
746
|
-
this.
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
749
|
-
this.
|
|
745
|
+
this.yq();
|
|
746
|
+
this.yx();
|
|
747
|
+
this.yy();
|
|
748
|
+
this.wt = this.wu();
|
|
749
|
+
this.xv.fs();
|
|
750
750
|
break;
|
|
751
751
|
case "ActualWindowRect":
|
|
752
|
-
this.
|
|
752
|
+
this.xv.fr(this.wt);
|
|
753
753
|
break;
|
|
754
754
|
case "ActualWorldRect":
|
|
755
755
|
try {
|
|
@@ -773,30 +773,30 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
773
773
|
}
|
|
774
774
|
break;
|
|
775
775
|
case XamGeographicMap.$$p[5]:
|
|
776
|
-
this.
|
|
776
|
+
this.x5 = this.x6;
|
|
777
777
|
break;
|
|
778
778
|
case "ActualWindowScale":
|
|
779
|
-
if (!this.
|
|
780
|
-
this.
|
|
779
|
+
if (!this.gg) {
|
|
780
|
+
this.sf(this.hz(), this.h0());
|
|
781
781
|
}
|
|
782
782
|
break;
|
|
783
783
|
case "ActualPixelScalingRatio":
|
|
784
|
-
this.
|
|
784
|
+
this.xv.fv(this.hp);
|
|
785
785
|
break;
|
|
786
786
|
case "WindowRectMinWidth":
|
|
787
787
|
case "WindowRectMinHeight":
|
|
788
788
|
var h = d;
|
|
789
789
|
if (isNaN_(h) || isInfinity(h)) {
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
790
|
+
this.ht = 5E-06;
|
|
791
|
+
this.hs = 5E-06;
|
|
792
792
|
}
|
|
793
793
|
else {
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
794
|
+
this.ht = h;
|
|
795
|
+
this.hs = h;
|
|
796
796
|
}
|
|
797
797
|
break;
|
|
798
798
|
case XamGeographicMap.$$p[7]:
|
|
799
|
-
this.
|
|
799
|
+
this.sb();
|
|
800
800
|
break;
|
|
801
801
|
case "MarkerAutomaticBehavior":
|
|
802
802
|
try {
|
|
@@ -821,39 +821,39 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
821
821
|
break;
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
|
-
XamGeographicMap.prototype.
|
|
824
|
+
XamGeographicMap.prototype.yr = function (a, b) {
|
|
825
825
|
if (this.imageTilesReady != null) {
|
|
826
826
|
this.imageTilesReady(this, new ImageTilesReadyEventArgs());
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
|
-
XamGeographicMap.prototype.
|
|
829
|
+
XamGeographicMap.prototype.yw = function (a) {
|
|
830
830
|
if (a != null) {
|
|
831
831
|
a.bi = null;
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
|
-
XamGeographicMap.prototype.
|
|
835
|
-
if (this.
|
|
836
|
-
this.
|
|
837
|
-
this.
|
|
834
|
+
XamGeographicMap.prototype.yx = function () {
|
|
835
|
+
if (this.xj != null) {
|
|
836
|
+
this.xj.mc = this.zk.left;
|
|
837
|
+
this.xj.mb = this.zk.right;
|
|
838
838
|
}
|
|
839
|
-
if (this.
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
839
|
+
if (this.xl != null) {
|
|
840
|
+
this.xl.mc = this.zk.top;
|
|
841
|
+
this.xl.mb = this.zk.bottom;
|
|
842
842
|
}
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
843
|
+
this.xj.c2(true);
|
|
844
|
+
this.xl.c2(true);
|
|
845
845
|
};
|
|
846
846
|
XamGeographicMap.prototype.getFontInfo = function () {
|
|
847
|
-
this.
|
|
848
|
-
return this.
|
|
847
|
+
this.xw = this.xv.fo;
|
|
848
|
+
return this.xw;
|
|
849
849
|
};
|
|
850
|
-
XamGeographicMap.prototype.
|
|
851
|
-
return this.
|
|
850
|
+
XamGeographicMap.prototype.vx = function () {
|
|
851
|
+
return this.xv.fw;
|
|
852
852
|
};
|
|
853
853
|
XamGeographicMap.prototype.getFontBrush = function () {
|
|
854
|
-
return this.
|
|
854
|
+
return this.xv.fx;
|
|
855
855
|
};
|
|
856
|
-
XamGeographicMap.prototype.
|
|
856
|
+
XamGeographicMap.prototype.rx = function (a, b) {
|
|
857
857
|
if (typeCast(ItfConverter.$, b) !== null) {
|
|
858
858
|
var c = b;
|
|
859
859
|
var d = a;
|
|
@@ -861,33 +861,33 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
861
861
|
d.xe = c.triangulationSource.triangles;
|
|
862
862
|
}
|
|
863
863
|
else {
|
|
864
|
-
_super.prototype.
|
|
864
|
+
_super.prototype.rx.call(this, a, b);
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
867
|
XamGeographicMap.prototype.register = function (a, b) {
|
|
868
|
-
this.
|
|
868
|
+
this.rk(a, b);
|
|
869
869
|
};
|
|
870
870
|
XamGeographicMap.prototype.unRegister = function (a) {
|
|
871
|
-
this.
|
|
871
|
+
this.r3(a);
|
|
872
872
|
};
|
|
873
873
|
XamGeographicMap.prototype.deferredRefresh = function () {
|
|
874
|
-
this.
|
|
874
|
+
this.n0();
|
|
875
875
|
};
|
|
876
876
|
XamGeographicMap.prototype.deferAction = function (a) {
|
|
877
|
-
if (this.
|
|
878
|
-
this.
|
|
877
|
+
if (this.x8 != null) {
|
|
878
|
+
this.x8.setTimeout(a, 0);
|
|
879
879
|
}
|
|
880
880
|
else {
|
|
881
881
|
window.setTimeout(a, 0);
|
|
882
882
|
}
|
|
883
883
|
};
|
|
884
|
-
XamGeographicMap.prototype.
|
|
885
|
-
this.
|
|
884
|
+
XamGeographicMap.prototype.yo = function (a) {
|
|
885
|
+
this.sa(a);
|
|
886
886
|
};
|
|
887
|
-
XamGeographicMap.prototype.
|
|
887
|
+
XamGeographicMap.prototype.x9 = function () {
|
|
888
888
|
var a = new ChartVisualData();
|
|
889
|
-
var b = this.
|
|
890
|
-
var c = this.
|
|
889
|
+
var b = this.xj.fy();
|
|
890
|
+
var c = this.xl.fy();
|
|
891
891
|
a.axes.add1(b);
|
|
892
892
|
a.axes.add1(c);
|
|
893
893
|
for (var d = 0; d < this.series.count; d++) {
|
|
@@ -895,49 +895,49 @@ var XamGeographicMap = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
895
895
|
a.series.add1(e);
|
|
896
896
|
}
|
|
897
897
|
a.name = this.name;
|
|
898
|
-
a.contentArea = RectData.b(this.
|
|
899
|
-
a.centralArea = RectData.b(this.
|
|
900
|
-
a.plotArea = RectData.b(this.
|
|
898
|
+
a.contentArea = RectData.b(this.xb);
|
|
899
|
+
a.centralArea = RectData.b(this.xb);
|
|
900
|
+
a.plotArea = RectData.b(this.xb);
|
|
901
901
|
return a;
|
|
902
902
|
};
|
|
903
|
-
XamGeographicMap.prototype.
|
|
903
|
+
XamGeographicMap.prototype.w1 = function (a, b, c) {
|
|
904
904
|
return a;
|
|
905
905
|
};
|
|
906
|
-
XamGeographicMap.prototype.
|
|
906
|
+
XamGeographicMap.prototype.ys = function () {
|
|
907
907
|
};
|
|
908
|
-
Object.defineProperty(XamGeographicMap.prototype, "
|
|
908
|
+
Object.defineProperty(XamGeographicMap.prototype, "zv", {
|
|
909
909
|
get: function () {
|
|
910
|
-
return this.
|
|
910
|
+
return this.zh;
|
|
911
911
|
},
|
|
912
912
|
set: function (a) {
|
|
913
|
-
this.
|
|
913
|
+
this.zh = a;
|
|
914
914
|
},
|
|
915
915
|
enumerable: false,
|
|
916
916
|
configurable: true
|
|
917
917
|
});
|
|
918
|
-
XamGeographicMap.prototype.
|
|
919
|
-
this.
|
|
920
|
-
this.
|
|
918
|
+
XamGeographicMap.prototype.y2 = function (a) {
|
|
919
|
+
this.zv = a;
|
|
920
|
+
this.y1();
|
|
921
921
|
};
|
|
922
|
-
XamGeographicMap.prototype.
|
|
923
|
-
if (this.
|
|
924
|
-
var a = this.getZoomFromGeographicRect(this.
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
922
|
+
XamGeographicMap.prototype.y1 = function () {
|
|
923
|
+
if (this.x2 && !this.zv.isEmpty) {
|
|
924
|
+
var a = this.getZoomFromGeographicRect(this.zv);
|
|
925
|
+
this.zv = Rect.empty;
|
|
926
|
+
this.sh(a, false);
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
|
-
Object.defineProperty(XamGeographicMap.prototype, "
|
|
929
|
+
Object.defineProperty(XamGeographicMap.prototype, "x2", {
|
|
930
930
|
get: function () {
|
|
931
|
-
return !this.
|
|
931
|
+
return !this.xb.isEmpty && !this.wx.isEmpty;
|
|
932
932
|
},
|
|
933
933
|
enumerable: false,
|
|
934
934
|
configurable: true
|
|
935
935
|
});
|
|
936
936
|
XamGeographicMap.$t = markType(XamGeographicMap, 'XamGeographicMap', SeriesViewer.$, [IMapRenderDeferralHandler_$type]);
|
|
937
|
-
XamGeographicMap.
|
|
938
|
-
XamGeographicMap.
|
|
939
|
-
XamGeographicMap.
|
|
940
|
-
XamGeographicMap.$$p = markDep(DependencyProperty, PropertyMetadata, XamGeographicMap, '
|
|
937
|
+
XamGeographicMap.xt = 0;
|
|
938
|
+
XamGeographicMap.zg = new Rect(2, { $type: Point_$type, x: -180, y: -85.05112878 }, { $type: Point_$type, x: 180, y: 85.05112878 });
|
|
939
|
+
XamGeographicMap.zj = new Rect(0, 0, 0, 1, 1);
|
|
940
|
+
XamGeographicMap.$$p = markDep(DependencyProperty, PropertyMetadata, XamGeographicMap, 'q5', ['BackgroundTilingMode:xq:y3', [MapBackgroundTilingMode_$type, enumGetBox(MapBackgroundTilingMode_$type, 0)], 'IsHorizontalWrappingEnabled:xy:y4', [0, false], 'ResizeBehavior:xu:y5', [MapResizeBehavior_$type, enumGetBox(MapResizeBehavior_$type, XamGeographicMap.xt)], 'SuppressZoomResetOnWorldRectChange:xz:y6', [0, false], 'UseWorldRectForZoomBounds:x0:y7', [0, false], 'WindowScale:x6:y8', [1, NaN], 'WorldRect:zw:y9', [Rect.$, XamGeographicMap.zg], 'Zoomable:x1:za', [0, true]]);
|
|
941
941
|
return XamGeographicMap;
|
|
942
942
|
}(SeriesViewer));
|
|
943
943
|
export { XamGeographicMap };
|
|
@@ -1081,14 +1081,14 @@ var GeographicMapImagery = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1081
1081
|
return a;
|
|
1082
1082
|
}
|
|
1083
1083
|
var b = new Rect(0, 0, 0, a.width, a.height);
|
|
1084
|
-
var c = this.geographicMap.
|
|
1085
|
-
var d = XamGeographicMap.
|
|
1086
|
-
var e = this.geographicMap.
|
|
1084
|
+
var c = this.geographicMap.zp(b);
|
|
1085
|
+
var d = XamGeographicMap.zg;
|
|
1086
|
+
var e = this.geographicMap.zk;
|
|
1087
1087
|
var f = Math.min(this.windowRect.height, this.windowRect.width);
|
|
1088
1088
|
var g = e.width / d.width;
|
|
1089
1089
|
this.ao.a5 = (b.width / c.width) * f * g;
|
|
1090
|
-
var h = this.geographicMap.
|
|
1091
|
-
var i = this.geographicMap.
|
|
1090
|
+
var h = this.geographicMap.xj;
|
|
1091
|
+
var i = this.geographicMap.xl;
|
|
1092
1092
|
var j = new ScalerParams(1, this.windowRect, b, h.ch);
|
|
1093
1093
|
j.c = c;
|
|
1094
1094
|
var k = new ScalerParams(1, this.windowRect, b, i.ch);
|
|
@@ -1209,8 +1209,8 @@ var GeographicXYTriangulatingSeriesView = /** @class */ /*@__PURE__*/ (function
|
|
|
1209
1209
|
a.w4 = null;
|
|
1210
1210
|
return;
|
|
1211
1211
|
}
|
|
1212
|
-
a.w3 = this.cu.dc.
|
|
1213
|
-
a.w4 = this.cu.dc.
|
|
1212
|
+
a.w3 = this.cu.dc.xj;
|
|
1213
|
+
a.w4 = this.cu.dc.xl;
|
|
1214
1214
|
};
|
|
1215
1215
|
GeographicXYTriangulatingSeriesView.prototype.cw = function () {
|
|
1216
1216
|
this.cu.w5.x5 = this.cu.xh;
|
|
@@ -1286,8 +1286,8 @@ var XamGeographicMapView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1286
1286
|
_this.fp = NaN;
|
|
1287
1287
|
_this.fz = Rect.empty;
|
|
1288
1288
|
_this.fn = a;
|
|
1289
|
-
_this.fn.
|
|
1290
|
-
_this.fn.
|
|
1289
|
+
_this.fn.vq = 2;
|
|
1290
|
+
_this.fn.i2 = 5E-06;
|
|
1291
1291
|
return _this;
|
|
1292
1292
|
}
|
|
1293
1293
|
XamGeographicMapView.prototype.m = function (a) {
|
|
@@ -1295,7 +1295,7 @@ var XamGeographicMapView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
XamGeographicMapView.prototype.bk = function (a) {
|
|
1297
1297
|
this.j.bw(a);
|
|
1298
|
-
this.fn.
|
|
1298
|
+
this.fn.yo(a);
|
|
1299
1299
|
this.el();
|
|
1300
1300
|
};
|
|
1301
1301
|
XamGeographicMapView.prototype.get_ap = function () {
|
|
@@ -1358,13 +1358,13 @@ var XamGeographicMapView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
};
|
|
1360
1360
|
XamGeographicMapView.prototype.fr = function (a) {
|
|
1361
|
-
if (this.fn.
|
|
1362
|
-
this.fn.
|
|
1361
|
+
if (this.fn.xo != null) {
|
|
1362
|
+
this.fn.xo.windowRect = a;
|
|
1363
1363
|
}
|
|
1364
1364
|
};
|
|
1365
1365
|
XamGeographicMapView.prototype.fu = function (a, b) {
|
|
1366
|
-
if (this.fn.
|
|
1367
|
-
this.fn.
|
|
1366
|
+
if (this.fn.xo != null) {
|
|
1367
|
+
this.fn.xo.windowRect = this.fn.wt;
|
|
1368
1368
|
}
|
|
1369
1369
|
if (a != null) {
|
|
1370
1370
|
var c = a.ao;
|
|
@@ -1391,7 +1391,7 @@ var XamGeographicMapView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
1393
|
XamGeographicMapView.prototype.ft = function (a) {
|
|
1394
|
-
var b = this.fn.
|
|
1394
|
+
var b = this.fn.hp;
|
|
1395
1395
|
if (b != 1) {
|
|
1396
1396
|
a.aa();
|
|
1397
1397
|
a.ab(b, b);
|