geojs 1.12.5 → 1.12.6
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/geo.js +198 -178
- package/geo.lean.js +198 -178
- package/geo.lean.min.js +2 -2
- package/geo.min.js +4 -4
- package/package.json +1 -1
- package/src/annotation/annotation.js +17 -18
- package/src/annotation/circleAnnotation.js +3 -3
- package/src/annotation/ellipseAnnotation.js +4 -4
- package/src/annotation/lineAnnotation.js +3 -3
- package/src/annotation/pointAnnotation.js +3 -4
- package/src/annotation/polygonAnnotation.js +2 -3
- package/src/annotation/rectangleAnnotation.js +8 -8
- package/src/annotation/squareAnnotation.js +3 -3
- package/src/annotationLayer.js +4 -4
- package/src/choroplethFeature.js +2 -3
- package/src/contourFeature.js +2 -3
- package/src/feature.js +2 -2
- package/src/graphFeature.js +3 -3
- package/src/gridFeature.js +2 -3
- package/src/heatmapFeature.js +1 -2
- package/src/index.js +1 -1
- package/src/isolineFeature.js +3 -4
- package/src/layer.js +1 -1
- package/src/lineFeature.js +1 -3
- package/src/map.js +11 -11
- package/src/mapInteractor.js +13 -14
- package/src/markerFeature.js +2 -4
- package/src/meshFeature.js +2 -3
- package/src/osmLayer.js +4 -5
- package/src/pathFeature.js +1 -2
- package/src/pixelmapFeature.js +1 -1
- package/src/pixelmapLayer.js +3 -4
- package/src/pointFeature.js +2 -4
- package/src/polygonFeature.js +1 -2
- package/src/quadFeature.js +1 -1
- package/src/registry.js +29 -28
- package/src/svg/pathFeature.js +1 -2
- package/src/textFeature.js +1 -3
- package/src/tileLayer.js +5 -4
- package/src/trackFeature.js +7 -14
- package/src/ui/scaleWidget.js +3 -3
- package/src/ui/widget.js +1 -2
- package/src/util/clustering.js +1 -1
- package/src/util/common.js +38 -1
- package/src/util/mesh.js +3 -4
- package/src/util/mockVGL.js +1 -2
- package/src/vectorFeature.js +1 -3
package/geo.js
CHANGED
|
@@ -3043,7 +3043,6 @@ module.exports = geo_action;
|
|
|
3043
3043
|
/***/ 6978:
|
|
3044
3044
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3045
3045
|
|
|
3046
|
-
var $ = __webpack_require__(5616);
|
|
3047
3046
|
var geo_event = __webpack_require__(6409);
|
|
3048
3047
|
var geo_action = __webpack_require__(8695);
|
|
3049
3048
|
var transform = __webpack_require__(5325);
|
|
@@ -3159,7 +3158,7 @@ var _annotation = function annotation(type, args) {
|
|
|
3159
3158
|
return new _annotation(type, args);
|
|
3160
3159
|
}
|
|
3161
3160
|
var m_this = this,
|
|
3162
|
-
m_options =
|
|
3161
|
+
m_options = util.deepMerge({}, this.constructor.defaults, args || {}),
|
|
3163
3162
|
m_id = m_options.annotationId;
|
|
3164
3163
|
delete m_options.annotationId;
|
|
3165
3164
|
if (m_id === undefined || m_options.layer && m_options.layer.annotationById(m_id)) {
|
|
@@ -3589,12 +3588,12 @@ var _annotation = function annotation(type, args) {
|
|
|
3589
3588
|
var coordinatesSet;
|
|
3590
3589
|
if (arg2 === undefined) {
|
|
3591
3590
|
coordinatesSet = arg1[m_this._coordinateOption] !== undefined;
|
|
3592
|
-
m_options =
|
|
3591
|
+
m_options = util.deepMerge(m_options, arg1);
|
|
3593
3592
|
/* For style objects, re-extend them without recursion. This allows
|
|
3594
3593
|
* setting colors without an opacity field, for instance. */
|
|
3595
3594
|
['style', 'createStyle', 'editStyle', 'editHandleStyle', 'labelStyle', 'highlightStyle', 'cursorStyle'].forEach(function (key) {
|
|
3596
3595
|
if (arg1[key] !== undefined) {
|
|
3597
|
-
|
|
3596
|
+
Object.assign(m_options[key], arg1[key]);
|
|
3598
3597
|
}
|
|
3599
3598
|
});
|
|
3600
3599
|
} else {
|
|
@@ -3657,7 +3656,7 @@ var _annotation = function annotation(type, args) {
|
|
|
3657
3656
|
m_options[styleType] = {};
|
|
3658
3657
|
}
|
|
3659
3658
|
if (arg2 === undefined) {
|
|
3660
|
-
m_options[styleType] =
|
|
3659
|
+
m_options[styleType] = util.deepMerge(m_options[styleType], arg1);
|
|
3661
3660
|
} else {
|
|
3662
3661
|
m_options[styleType][arg1] = arg2;
|
|
3663
3662
|
}
|
|
@@ -3719,13 +3718,13 @@ var _annotation = function annotation(type, args) {
|
|
|
3719
3718
|
/* for some states, fall back to the general style if they don't specify a
|
|
3720
3719
|
* value explicitly. */
|
|
3721
3720
|
if (state === annotationState.edit || state === annotationState.highlight) {
|
|
3722
|
-
return
|
|
3721
|
+
return Object.assign({}, m_options.style, m_options[state + 'Style']);
|
|
3723
3722
|
}
|
|
3724
3723
|
if (state === annotationState.create) {
|
|
3725
|
-
return
|
|
3724
|
+
return Object.assign({}, m_options.style, m_options.editStyle, m_options[state + 'Style']);
|
|
3726
3725
|
}
|
|
3727
3726
|
if (state === annotationState.cursor) {
|
|
3728
|
-
return
|
|
3727
|
+
return Object.assign({}, m_options.style, m_options.editStyle, m_options.createStyle, m_options[state + 'Style']);
|
|
3729
3728
|
}
|
|
3730
3729
|
return m_options[state + 'Style'] || m_options.style || {};
|
|
3731
3730
|
};
|
|
@@ -3979,12 +3978,12 @@ var _annotation = function annotation(type, args) {
|
|
|
3979
3978
|
*/
|
|
3980
3979
|
this._addEditHandles = function (features, vertices, opts, isOpen) {
|
|
3981
3980
|
var editPoints,
|
|
3982
|
-
style =
|
|
3981
|
+
style = Object.assign({}, defaultEditHandleStyle, m_this.editHandleStyle()),
|
|
3983
3982
|
handles = util.ensureFunction(style.handles)() || {},
|
|
3984
3983
|
selected = m_this._editHandle && m_this._editHandle.handle && m_this._editHandle.handle.selected ? m_this._editHandle.handle : undefined;
|
|
3985
3984
|
/* opts specify which handles are allowed. They must be allowed by the
|
|
3986
3985
|
* original opts object and by the editHandleStyle.handle object. */
|
|
3987
|
-
opts =
|
|
3986
|
+
opts = Object.assign({}, opts);
|
|
3988
3987
|
Object.keys(handles).forEach(function (key) {
|
|
3989
3988
|
if (handles[key] === false) {
|
|
3990
3989
|
opts[key] = false;
|
|
@@ -4000,7 +3999,7 @@ var _annotation = function annotation(type, args) {
|
|
|
4000
3999
|
vertexList.forEach(function (vert, vidx) {
|
|
4001
4000
|
vert.forEach(function (pt, idx) {
|
|
4002
4001
|
if (opts.vertex !== false) {
|
|
4003
|
-
editPoints.push(
|
|
4002
|
+
editPoints.push(Object.assign({}, pt, {
|
|
4004
4003
|
type: 'vertex',
|
|
4005
4004
|
index: idx,
|
|
4006
4005
|
vindex: vidx,
|
|
@@ -4009,7 +4008,7 @@ var _annotation = function annotation(type, args) {
|
|
|
4009
4008
|
}));
|
|
4010
4009
|
}
|
|
4011
4010
|
if (opts.edge !== false && idx !== vert.length - 1 && (pt.x !== vert[idx + 1].x || pt.y !== vert[idx + 1].y)) {
|
|
4012
|
-
editPoints.push(
|
|
4011
|
+
editPoints.push(Object.assign({
|
|
4013
4012
|
x: (pt.x + vert[idx + 1].x) / 2,
|
|
4014
4013
|
y: (pt.y + vert[idx + 1].y) / 2
|
|
4015
4014
|
}, {
|
|
@@ -4021,7 +4020,7 @@ var _annotation = function annotation(type, args) {
|
|
|
4021
4020
|
}));
|
|
4022
4021
|
}
|
|
4023
4022
|
if (opts.edge !== false && !isOpen && idx === vert.length - 1 && (pt.x !== vert[0].x || pt.y !== vert[0].y)) {
|
|
4024
|
-
editPoints.push(
|
|
4023
|
+
editPoints.push(Object.assign({
|
|
4025
4024
|
x: (pt.x + vert[0].x) / 2,
|
|
4026
4025
|
y: (pt.y + vert[0].y) / 2
|
|
4027
4026
|
}, {
|
|
@@ -4035,14 +4034,14 @@ var _annotation = function annotation(type, args) {
|
|
|
4035
4034
|
});
|
|
4036
4035
|
});
|
|
4037
4036
|
if (opts.center !== false) {
|
|
4038
|
-
editPoints.push(
|
|
4037
|
+
editPoints.push(Object.assign({}, util.centerFromPerimeter(m_this._coordinates()), {
|
|
4039
4038
|
type: 'center',
|
|
4040
4039
|
style: style,
|
|
4041
4040
|
editHandle: true
|
|
4042
4041
|
}));
|
|
4043
4042
|
}
|
|
4044
4043
|
if (opts.rotate !== false) {
|
|
4045
|
-
editPoints.push(
|
|
4044
|
+
editPoints.push(Object.assign(m_this._rotateHandlePosition(style.rotateHandleOffset, style.rotateHandleRotation + (selected && selected.type === 'rotate' ? m_this._editHandle.amountRotated : 0)), {
|
|
4046
4045
|
type: 'rotate',
|
|
4047
4046
|
style: style,
|
|
4048
4047
|
editHandle: true
|
|
@@ -4052,7 +4051,7 @@ var _annotation = function annotation(type, args) {
|
|
|
4052
4051
|
}
|
|
4053
4052
|
}
|
|
4054
4053
|
if (opts.resize !== false) {
|
|
4055
|
-
editPoints.push(
|
|
4054
|
+
editPoints.push(Object.assign(m_this._rotateHandlePosition(style.resizeHandleOffset, style.resizeHandleRotation), {
|
|
4056
4055
|
type: 'resize',
|
|
4057
4056
|
style: style,
|
|
4058
4057
|
editHandle: true
|
|
@@ -4600,10 +4599,10 @@ module.exports = {
|
|
|
4600
4599
|
/***/ 9894:
|
|
4601
4600
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4602
4601
|
|
|
4603
|
-
var $ = __webpack_require__(5616);
|
|
4604
4602
|
var inherit = __webpack_require__(4626);
|
|
4605
4603
|
var registerAnnotation = (__webpack_require__(1098).registerAnnotation);
|
|
4606
4604
|
var markerFeature = __webpack_require__(2225);
|
|
4605
|
+
var util = __webpack_require__(642);
|
|
4607
4606
|
var ellipseAnnotation = __webpack_require__(3656);
|
|
4608
4607
|
|
|
4609
4608
|
/**
|
|
@@ -4624,7 +4623,7 @@ var _circleAnnotation = function circleAnnotation(args, annotationName) {
|
|
|
4624
4623
|
if (!(this instanceof _circleAnnotation)) {
|
|
4625
4624
|
return new _circleAnnotation(args, annotationName);
|
|
4626
4625
|
}
|
|
4627
|
-
args =
|
|
4626
|
+
args = util.deepMerge({}, this.constructor.defaults, args, {
|
|
4628
4627
|
constraint: 1
|
|
4629
4628
|
});
|
|
4630
4629
|
ellipseAnnotation.call(this, args, annotationName || 'circle');
|
|
@@ -4634,7 +4633,7 @@ inherit(_circleAnnotation, ellipseAnnotation);
|
|
|
4634
4633
|
/**
|
|
4635
4634
|
* This object contains the default options to initialize the class.
|
|
4636
4635
|
*/
|
|
4637
|
-
_circleAnnotation.defaults =
|
|
4636
|
+
_circleAnnotation.defaults = Object.assign({}, ellipseAnnotation.defaults, {});
|
|
4638
4637
|
var circleRequiredFeatures = {};
|
|
4639
4638
|
circleRequiredFeatures[markerFeature.capabilities.feature] = true;
|
|
4640
4639
|
registerAnnotation('circle', _circleAnnotation, circleRequiredFeatures);
|
|
@@ -4645,10 +4644,10 @@ module.exports = _circleAnnotation;
|
|
|
4645
4644
|
/***/ 3656:
|
|
4646
4645
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4647
4646
|
|
|
4648
|
-
var $ = __webpack_require__(5616);
|
|
4649
4647
|
var inherit = __webpack_require__(4626);
|
|
4650
4648
|
var registerAnnotation = (__webpack_require__(1098).registerAnnotation);
|
|
4651
4649
|
var markerFeature = __webpack_require__(2225);
|
|
4650
|
+
var util = __webpack_require__(642);
|
|
4652
4651
|
var annotationState = (__webpack_require__(6978).state);
|
|
4653
4652
|
var rectangleAnnotation = __webpack_require__(4019);
|
|
4654
4653
|
|
|
@@ -4670,7 +4669,7 @@ var _ellipseAnnotation = function ellipseAnnotation(args, annotationName) {
|
|
|
4670
4669
|
if (!(this instanceof _ellipseAnnotation)) {
|
|
4671
4670
|
return new _ellipseAnnotation(args, annotationName);
|
|
4672
4671
|
}
|
|
4673
|
-
args =
|
|
4672
|
+
args = util.deepMerge({}, this.constructor.defaults, args);
|
|
4674
4673
|
rectangleAnnotation.call(this, args, annotationName || 'ellipse');
|
|
4675
4674
|
var m_this = this;
|
|
4676
4675
|
|
|
@@ -4695,7 +4694,7 @@ var _ellipseAnnotation = function ellipseAnnotation(args, annotationName) {
|
|
|
4695
4694
|
marker: {
|
|
4696
4695
|
x: (opt.corners[0].x + opt.corners[1].x + opt.corners[2].x + opt.corners[3].x) / 4,
|
|
4697
4696
|
y: (opt.corners[0].y + opt.corners[1].y + opt.corners[2].y + opt.corners[3].y) / 4,
|
|
4698
|
-
style:
|
|
4697
|
+
style: Object.assign({}, style, {
|
|
4699
4698
|
radius: radius,
|
|
4700
4699
|
symbolValue: aspect,
|
|
4701
4700
|
rotation: rotation,
|
|
@@ -4766,7 +4765,7 @@ inherit(_ellipseAnnotation, rectangleAnnotation);
|
|
|
4766
4765
|
/**
|
|
4767
4766
|
* This object contains the default options to initialize the class.
|
|
4768
4767
|
*/
|
|
4769
|
-
_ellipseAnnotation.defaults =
|
|
4768
|
+
_ellipseAnnotation.defaults = Object.assign({}, rectangleAnnotation.defaults, {});
|
|
4770
4769
|
var ellipseRequiredFeatures = {};
|
|
4771
4770
|
ellipseRequiredFeatures[markerFeature.capabilities.feature] = true;
|
|
4772
4771
|
registerAnnotation('ellipse', _ellipseAnnotation, ellipseRequiredFeatures);
|
|
@@ -4804,10 +4803,10 @@ module.exports = {
|
|
|
4804
4803
|
/***/ 2612:
|
|
4805
4804
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4806
4805
|
|
|
4807
|
-
var $ = __webpack_require__(5616);
|
|
4808
4806
|
var inherit = __webpack_require__(4626);
|
|
4809
4807
|
var registerAnnotation = (__webpack_require__(1098).registerAnnotation);
|
|
4810
4808
|
var lineFeature = __webpack_require__(9281);
|
|
4809
|
+
var util = __webpack_require__(642);
|
|
4811
4810
|
var annotation = (__webpack_require__(6978).annotation);
|
|
4812
4811
|
var annotationState = (__webpack_require__(6978).state);
|
|
4813
4812
|
var continuousVerticesActions = (__webpack_require__(6978).continuousVerticesActions);
|
|
@@ -4843,7 +4842,7 @@ var _lineAnnotation = function lineAnnotation(args) {
|
|
|
4843
4842
|
if (!(this instanceof _lineAnnotation)) {
|
|
4844
4843
|
return new _lineAnnotation(args);
|
|
4845
4844
|
}
|
|
4846
|
-
args =
|
|
4845
|
+
args = util.deepMerge({}, this.constructor.defaults, {
|
|
4847
4846
|
style: {
|
|
4848
4847
|
line: function line(d) {
|
|
4849
4848
|
/* Return an array that has the same number of items as we have
|
|
@@ -5124,7 +5123,7 @@ inherit(_lineAnnotation, annotation);
|
|
|
5124
5123
|
/**
|
|
5125
5124
|
* This object contains the default options to initialize the class.
|
|
5126
5125
|
*/
|
|
5127
|
-
_lineAnnotation.defaults =
|
|
5126
|
+
_lineAnnotation.defaults = Object.assign({}, annotation.defaults, {
|
|
5128
5127
|
style: {
|
|
5129
5128
|
strokeColor: {
|
|
5130
5129
|
r: 0,
|
|
@@ -5163,7 +5162,6 @@ module.exports = _lineAnnotation;
|
|
|
5163
5162
|
/***/ 400:
|
|
5164
5163
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5165
5164
|
|
|
5166
|
-
var $ = __webpack_require__(5616);
|
|
5167
5165
|
var inherit = __webpack_require__(4626);
|
|
5168
5166
|
var util = __webpack_require__(642);
|
|
5169
5167
|
var registerAnnotation = (__webpack_require__(1098).registerAnnotation);
|
|
@@ -5204,7 +5202,7 @@ var _pointAnnotation = function pointAnnotation(args) {
|
|
|
5204
5202
|
if (!(this instanceof _pointAnnotation)) {
|
|
5205
5203
|
return new _pointAnnotation(args);
|
|
5206
5204
|
}
|
|
5207
|
-
args =
|
|
5205
|
+
args = util.deepMerge({}, this.constructor.defaults, args);
|
|
5208
5206
|
args.position = args.position || (args.coordinates ? args.coordinates[0] : undefined);
|
|
5209
5207
|
delete args.coordinates;
|
|
5210
5208
|
annotation.call(this, 'point', args);
|
|
@@ -5231,7 +5229,7 @@ var _pointAnnotation = function pointAnnotation(args) {
|
|
|
5231
5229
|
if (opt.style.scaled === true) {
|
|
5232
5230
|
opt.style.scaled = m_this.layer().map().zoom();
|
|
5233
5231
|
}
|
|
5234
|
-
style =
|
|
5232
|
+
style = Object.assign({}, style, {
|
|
5235
5233
|
radius: function radius() {
|
|
5236
5234
|
var radius = opt.style.radius,
|
|
5237
5235
|
zoom = m_this.layer().map().zoom();
|
|
@@ -5347,7 +5345,7 @@ inherit(_pointAnnotation, annotation);
|
|
|
5347
5345
|
/**
|
|
5348
5346
|
* This object contains the default options to initialize the class.
|
|
5349
5347
|
*/
|
|
5350
|
-
_pointAnnotation.defaults =
|
|
5348
|
+
_pointAnnotation.defaults = Object.assign({}, annotation.defaults, {
|
|
5351
5349
|
style: {
|
|
5352
5350
|
fill: true,
|
|
5353
5351
|
fillColor: {
|
|
@@ -5400,7 +5398,6 @@ module.exports = _pointAnnotation;
|
|
|
5400
5398
|
/***/ 1920:
|
|
5401
5399
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5402
5400
|
|
|
5403
|
-
var $ = __webpack_require__(5616);
|
|
5404
5401
|
var inherit = __webpack_require__(4626);
|
|
5405
5402
|
var registerAnnotation = (__webpack_require__(1098).registerAnnotation);
|
|
5406
5403
|
var lineFeature = __webpack_require__(9281);
|
|
@@ -5445,7 +5442,7 @@ var _polygonAnnotation = function polygonAnnotation(args) {
|
|
|
5445
5442
|
if (!(this instanceof _polygonAnnotation)) {
|
|
5446
5443
|
return new _polygonAnnotation(args);
|
|
5447
5444
|
}
|
|
5448
|
-
args =
|
|
5445
|
+
args = util.deepMerge({}, this.constructor.defaults, {
|
|
5449
5446
|
style: {
|
|
5450
5447
|
polygon: function polygon(d) {
|
|
5451
5448
|
return d.polygon;
|
|
@@ -5767,7 +5764,7 @@ inherit(_polygonAnnotation, annotation);
|
|
|
5767
5764
|
/**
|
|
5768
5765
|
* This object contains the default options to initialize the class.
|
|
5769
5766
|
*/
|
|
5770
|
-
_polygonAnnotation.defaults =
|
|
5767
|
+
_polygonAnnotation.defaults = Object.assign({}, annotation.defaults, {
|
|
5771
5768
|
style: {
|
|
5772
5769
|
fill: true,
|
|
5773
5770
|
fillColor: {
|
|
@@ -5838,12 +5835,12 @@ module.exports = _polygonAnnotation;
|
|
|
5838
5835
|
/***/ 4019:
|
|
5839
5836
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5840
5837
|
|
|
5841
|
-
var $ = __webpack_require__(5616);
|
|
5842
5838
|
var inherit = __webpack_require__(4626);
|
|
5843
5839
|
var geo_event = __webpack_require__(6409);
|
|
5844
5840
|
var geo_action = __webpack_require__(8695);
|
|
5845
5841
|
var registerAnnotation = (__webpack_require__(1098).registerAnnotation);
|
|
5846
5842
|
var polygonFeature = __webpack_require__(6645);
|
|
5843
|
+
var util = __webpack_require__(642);
|
|
5847
5844
|
var annotation = (__webpack_require__(6978).annotation);
|
|
5848
5845
|
var annotationState = (__webpack_require__(6978).state);
|
|
5849
5846
|
var annotationActionOwner = (__webpack_require__(6978).annotationActionOwner);
|
|
@@ -5887,7 +5884,7 @@ var _rectangleAnnotation = function rectangleAnnotation(args, annotationName) {
|
|
|
5887
5884
|
if (!(this instanceof _rectangleAnnotation)) {
|
|
5888
5885
|
return new _rectangleAnnotation(args, annotationName);
|
|
5889
5886
|
}
|
|
5890
|
-
args =
|
|
5887
|
+
args = util.deepMerge({}, this.constructor.defaults, args);
|
|
5891
5888
|
args.corners = args.corners || args.coordinates || [];
|
|
5892
5889
|
delete args.coordinates;
|
|
5893
5890
|
annotation.call(this, annotationName || 'rectangle', args);
|
|
@@ -6080,7 +6077,7 @@ var _rectangleAnnotation = function rectangleAnnotation(args, annotationName) {
|
|
|
6080
6077
|
x: c0.x,
|
|
6081
6078
|
y: c2.y
|
|
6082
6079
|
};
|
|
6083
|
-
corners[2] =
|
|
6080
|
+
corners[2] = Object.assign({}, evt.mapgcs);
|
|
6084
6081
|
corners[1] = map.displayToGcs(c1, null);
|
|
6085
6082
|
corners[3] = map.displayToGcs(c3, null);
|
|
6086
6083
|
if (this._selectionConstraint) {
|
|
@@ -6139,10 +6136,10 @@ var _rectangleAnnotation = function rectangleAnnotation(args, annotationName) {
|
|
|
6139
6136
|
return 'done';
|
|
6140
6137
|
}
|
|
6141
6138
|
if (evt.buttonsDown.left) {
|
|
6142
|
-
corners.push(
|
|
6143
|
-
corners.push(
|
|
6144
|
-
corners.push(
|
|
6145
|
-
corners.push(
|
|
6139
|
+
corners.push(Object.assign({}, evt.mapgcs));
|
|
6140
|
+
corners.push(Object.assign({}, evt.mapgcs));
|
|
6141
|
+
corners.push(Object.assign({}, evt.mapgcs));
|
|
6142
|
+
corners.push(Object.assign({}, evt.mapgcs));
|
|
6146
6143
|
return true;
|
|
6147
6144
|
}
|
|
6148
6145
|
};
|
|
@@ -6242,7 +6239,7 @@ inherit(_rectangleAnnotation, annotation);
|
|
|
6242
6239
|
/**
|
|
6243
6240
|
* This object contains the default options to initialize the class.
|
|
6244
6241
|
*/
|
|
6245
|
-
_rectangleAnnotation.defaults =
|
|
6242
|
+
_rectangleAnnotation.defaults = Object.assign({}, annotation.defaults, {
|
|
6246
6243
|
style: {
|
|
6247
6244
|
fill: true,
|
|
6248
6245
|
fillColor: {
|
|
@@ -6298,10 +6295,10 @@ module.exports = _rectangleAnnotation;
|
|
|
6298
6295
|
/***/ 5229:
|
|
6299
6296
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6300
6297
|
|
|
6301
|
-
var $ = __webpack_require__(5616);
|
|
6302
6298
|
var inherit = __webpack_require__(4626);
|
|
6303
6299
|
var registerAnnotation = (__webpack_require__(1098).registerAnnotation);
|
|
6304
6300
|
var polygonFeature = __webpack_require__(6645);
|
|
6301
|
+
var util = __webpack_require__(642);
|
|
6305
6302
|
var rectangleAnnotation = __webpack_require__(4019);
|
|
6306
6303
|
|
|
6307
6304
|
/**
|
|
@@ -6322,7 +6319,7 @@ var _squareAnnotation = function squareAnnotation(args, annotationName) {
|
|
|
6322
6319
|
if (!(this instanceof _squareAnnotation)) {
|
|
6323
6320
|
return new _squareAnnotation(args, annotationName);
|
|
6324
6321
|
}
|
|
6325
|
-
args =
|
|
6322
|
+
args = util.deepMerge({}, this.constructor.defaults, args, {
|
|
6326
6323
|
constraint: 1
|
|
6327
6324
|
});
|
|
6328
6325
|
rectangleAnnotation.call(this, args, annotationName || 'square');
|
|
@@ -6332,7 +6329,7 @@ inherit(_squareAnnotation, rectangleAnnotation);
|
|
|
6332
6329
|
/**
|
|
6333
6330
|
* This object contains the default options to initialize the class.
|
|
6334
6331
|
*/
|
|
6335
|
-
_squareAnnotation.defaults =
|
|
6332
|
+
_squareAnnotation.defaults = Object.assign({}, rectangleAnnotation.defaults, {});
|
|
6336
6333
|
var squareRequiredFeatures = {};
|
|
6337
6334
|
squareRequiredFeatures[polygonFeature.capabilities.feature] = true;
|
|
6338
6335
|
registerAnnotation('square', _squareAnnotation, squareRequiredFeatures);
|
|
@@ -6523,7 +6520,7 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
6523
6520
|
keys: [key, 'label' + key.charAt(0).toUpperCase() + key.slice(1), key.replace(/([A-Z])/g, '-$1').toLowerCase(), 'label-' + key.replace(/([A-Z])/g, '-$1').toLowerCase()]
|
|
6524
6521
|
};
|
|
6525
6522
|
});
|
|
6526
|
-
m_options =
|
|
6523
|
+
m_options = util.deepMerge({}, {
|
|
6527
6524
|
dblClickTime: 300,
|
|
6528
6525
|
adjacentPointProximity: 5,
|
|
6529
6526
|
// in pixels, 0 is exact
|
|
@@ -6831,7 +6828,7 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
6831
6828
|
return m_options[arg1];
|
|
6832
6829
|
}
|
|
6833
6830
|
if (arg2 === undefined) {
|
|
6834
|
-
m_options =
|
|
6831
|
+
m_options = util.deepMerge(m_options, arg1);
|
|
6835
6832
|
} else {
|
|
6836
6833
|
m_options[arg1] = arg2;
|
|
6837
6834
|
}
|
|
@@ -7082,7 +7079,7 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
7082
7079
|
}
|
|
7083
7080
|
m_this.map().interactor().removeAction(undefined, undefined, geo_annotation.actionOwner);
|
|
7084
7081
|
if (createAnnotation) {
|
|
7085
|
-
options =
|
|
7082
|
+
options = Object.assign({}, options || {}, {
|
|
7086
7083
|
state: geo_annotation.state.create,
|
|
7087
7084
|
layer: m_this
|
|
7088
7085
|
});
|
|
@@ -7198,7 +7195,7 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
7198
7195
|
gcs = gcs === null ? map.gcs() : gcs === undefined ? map.ingcs() : gcs;
|
|
7199
7196
|
$.each(dataList, function (data_idx, data) {
|
|
7200
7197
|
var type = (data.properties || {}).annotationType || feature.featureType,
|
|
7201
|
-
options =
|
|
7198
|
+
options = Object.assign({}, data.properties || {}),
|
|
7202
7199
|
position,
|
|
7203
7200
|
datagcs,
|
|
7204
7201
|
i,
|
|
@@ -10617,7 +10614,6 @@ var _choroplethFeature = function choroplethFeature(arg) {
|
|
|
10617
10614
|
}
|
|
10618
10615
|
arg = arg || {};
|
|
10619
10616
|
feature.call(this, arg);
|
|
10620
|
-
var $ = __webpack_require__(5616);
|
|
10621
10617
|
var ensureFunction = (__webpack_require__(642).ensureFunction);
|
|
10622
10618
|
delete arg.layer;
|
|
10623
10619
|
delete arg.renderer;
|
|
@@ -10627,7 +10623,7 @@ var _choroplethFeature = function choroplethFeature(arg) {
|
|
|
10627
10623
|
var d3 = (__webpack_require__(2493).d3),
|
|
10628
10624
|
m_this = this,
|
|
10629
10625
|
s_init = this._init,
|
|
10630
|
-
m_choropleth =
|
|
10626
|
+
m_choropleth = Object.assign({}, {
|
|
10631
10627
|
colorRange: [{
|
|
10632
10628
|
r: 0.07514311,
|
|
10633
10629
|
g: 0.468049805,
|
|
@@ -10738,7 +10734,7 @@ var _choroplethFeature = function choroplethFeature(arg) {
|
|
|
10738
10734
|
return m_choropleth[arg1];
|
|
10739
10735
|
}
|
|
10740
10736
|
if (arg2 === undefined) {
|
|
10741
|
-
choropleth =
|
|
10737
|
+
choropleth = Object.assign({}, m_choropleth, arg1);
|
|
10742
10738
|
m_choropleth = choropleth;
|
|
10743
10739
|
} else {
|
|
10744
10740
|
m_choropleth[arg1] = arg2; //if you pass in accessor for prop
|
|
@@ -10970,7 +10966,6 @@ var _contourFeature = function contourFeature(arg) {
|
|
|
10970
10966
|
if (!(this instanceof _contourFeature)) {
|
|
10971
10967
|
return new _contourFeature(arg);
|
|
10972
10968
|
}
|
|
10973
|
-
var $ = __webpack_require__(5616);
|
|
10974
10969
|
var util = __webpack_require__(642);
|
|
10975
10970
|
var meshUtil = __webpack_require__(5905);
|
|
10976
10971
|
arg = arg || {};
|
|
@@ -11002,7 +10997,7 @@ var _contourFeature = function contourFeature(arg) {
|
|
|
11002
10997
|
*/
|
|
11003
10998
|
this._init = function (arg) {
|
|
11004
10999
|
s_init.call(m_this, arg);
|
|
11005
|
-
var defaultStyle =
|
|
11000
|
+
var defaultStyle = Object.assign({}, {
|
|
11006
11001
|
opacity: 1.0,
|
|
11007
11002
|
value: function value(d, i) {
|
|
11008
11003
|
return util.isNonNullFinite(d) ? d : m_this.position()(d, i).z;
|
|
@@ -11018,7 +11013,7 @@ var _contourFeature = function contourFeature(arg) {
|
|
|
11018
11013
|
}
|
|
11019
11014
|
}, arg.style === undefined ? {} : arg.style);
|
|
11020
11015
|
m_this.style(defaultStyle);
|
|
11021
|
-
m_this.contour(
|
|
11016
|
+
m_this.contour(Object.assign({}, {
|
|
11022
11017
|
minColor: 'black',
|
|
11023
11018
|
minOpacity: 0,
|
|
11024
11019
|
maxColor: 'black',
|
|
@@ -12527,7 +12522,7 @@ var _feature = function feature(arg) {
|
|
|
12527
12522
|
} else if (typeof arg1 === 'string' && arg2 === undefined) {
|
|
12528
12523
|
return m_style[arg1];
|
|
12529
12524
|
} else if (arg2 === undefined) {
|
|
12530
|
-
m_style =
|
|
12525
|
+
m_style = Object.assign({}, m_style, arg1);
|
|
12531
12526
|
m_this.modified();
|
|
12532
12527
|
return m_this;
|
|
12533
12528
|
} else {
|
|
@@ -12926,7 +12921,7 @@ var _feature = function feature(arg) {
|
|
|
12926
12921
|
if (!m_layer) {
|
|
12927
12922
|
throw new Error('Feature requires a valid layer');
|
|
12928
12923
|
}
|
|
12929
|
-
m_style =
|
|
12924
|
+
m_style = Object.assign({}, {
|
|
12930
12925
|
opacity: 1.0
|
|
12931
12926
|
}, arg.style === undefined ? {} : arg.style);
|
|
12932
12927
|
m_this._bindMouseHandlers();
|
|
@@ -14360,7 +14355,6 @@ var _graphFeature = function graphFeature(arg) {
|
|
|
14360
14355
|
}
|
|
14361
14356
|
arg = arg || {};
|
|
14362
14357
|
feature.call(this, arg);
|
|
14363
|
-
var $ = __webpack_require__(5616);
|
|
14364
14358
|
var util = __webpack_require__(642);
|
|
14365
14359
|
var registry = __webpack_require__(1098);
|
|
14366
14360
|
var m_this = this,
|
|
@@ -14384,7 +14378,7 @@ var _graphFeature = function graphFeature(arg) {
|
|
|
14384
14378
|
*/
|
|
14385
14379
|
this._init = function (arg) {
|
|
14386
14380
|
s_init.call(m_this, arg);
|
|
14387
|
-
var defaultStyle =
|
|
14381
|
+
var defaultStyle = util.deepMerge({}, {
|
|
14388
14382
|
nodes: {
|
|
14389
14383
|
radius: 5.0,
|
|
14390
14384
|
fill: true,
|
|
@@ -14684,7 +14678,6 @@ var _gridFeature = function gridFeature(arg) {
|
|
|
14684
14678
|
if (!(this instanceof _gridFeature)) {
|
|
14685
14679
|
return new _gridFeature(arg);
|
|
14686
14680
|
}
|
|
14687
|
-
var $ = __webpack_require__(5616);
|
|
14688
14681
|
var util = __webpack_require__(642);
|
|
14689
14682
|
var meshUtil = __webpack_require__(5905);
|
|
14690
14683
|
arg = arg || {};
|
|
@@ -14716,7 +14709,7 @@ var _gridFeature = function gridFeature(arg) {
|
|
|
14716
14709
|
*/
|
|
14717
14710
|
this._init = function (arg) {
|
|
14718
14711
|
s_init.call(m_this, arg);
|
|
14719
|
-
var defaultStyle =
|
|
14712
|
+
var defaultStyle = Object.assign({}, {
|
|
14720
14713
|
opacity: 1.0,
|
|
14721
14714
|
value: function value(d, i) {
|
|
14722
14715
|
return util.isNonNullFinite(d) ? d : m_this.position()(d, i).z;
|
|
@@ -14732,7 +14725,7 @@ var _gridFeature = function gridFeature(arg) {
|
|
|
14732
14725
|
}
|
|
14733
14726
|
}, arg.style === undefined ? {} : arg.style);
|
|
14734
14727
|
m_this.style(defaultStyle);
|
|
14735
|
-
m_this.grid(
|
|
14728
|
+
m_this.grid(Object.assign({}, {
|
|
14736
14729
|
minColor: 'black',
|
|
14737
14730
|
minOpacity: 0,
|
|
14738
14731
|
maxColor: 'black',
|
|
@@ -14791,7 +14784,6 @@ module.exports = _gridFeature;
|
|
|
14791
14784
|
/***/ 9163:
|
|
14792
14785
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
14793
14786
|
|
|
14794
|
-
var $ = __webpack_require__(5616);
|
|
14795
14787
|
var inherit = __webpack_require__(4626);
|
|
14796
14788
|
var feature = __webpack_require__(1275);
|
|
14797
14789
|
var transform = __webpack_require__(5325);
|
|
@@ -15026,7 +15018,7 @@ var _heatmapFeature = function heatmapFeature(arg) {
|
|
|
15026
15018
|
*/
|
|
15027
15019
|
this._init = function (arg) {
|
|
15028
15020
|
s_init.call(m_this, arg);
|
|
15029
|
-
var defaultStyle =
|
|
15021
|
+
var defaultStyle = Object.assign({}, {
|
|
15030
15022
|
radius: 10,
|
|
15031
15023
|
blurRadius: 10,
|
|
15032
15024
|
gaussian: true,
|
|
@@ -15274,7 +15266,7 @@ $.htmlPrefilter = function (html) {
|
|
|
15274
15266
|
return html.replace(rxhtmlTag, '<$1></$2>');
|
|
15275
15267
|
};
|
|
15276
15268
|
__webpack_require__(7605);
|
|
15277
|
-
module.exports =
|
|
15269
|
+
module.exports = Object.assign({
|
|
15278
15270
|
annotationLayer: __webpack_require__(2075),
|
|
15279
15271
|
camera: __webpack_require__(3578),
|
|
15280
15272
|
choroplethFeature: __webpack_require__(3561),
|
|
@@ -15674,7 +15666,6 @@ var _isolineFeature = function isolineFeature(arg) {
|
|
|
15674
15666
|
if (!(this instanceof _isolineFeature)) {
|
|
15675
15667
|
return new _isolineFeature(arg);
|
|
15676
15668
|
}
|
|
15677
|
-
var $ = __webpack_require__(5616);
|
|
15678
15669
|
var transform = __webpack_require__(5325);
|
|
15679
15670
|
var geo_event = __webpack_require__(6409);
|
|
15680
15671
|
var textFeature = __webpack_require__(6546);
|
|
@@ -16149,7 +16140,7 @@ var _isolineFeature = function isolineFeature(arg) {
|
|
|
16149
16140
|
* properties if there are no labels.
|
|
16150
16141
|
*/
|
|
16151
16142
|
this.lastLabelPositions = function () {
|
|
16152
|
-
return
|
|
16143
|
+
return Object.assign({}, m_lastLabelPositions);
|
|
16153
16144
|
};
|
|
16154
16145
|
|
|
16155
16146
|
/**
|
|
@@ -16318,7 +16309,7 @@ var _isolineFeature = function isolineFeature(arg) {
|
|
|
16318
16309
|
this._init = function (arg) {
|
|
16319
16310
|
arg = arg || {};
|
|
16320
16311
|
s_init.call(m_this, arg);
|
|
16321
|
-
var defaultStyle =
|
|
16312
|
+
var defaultStyle = Object.assign({}, {
|
|
16322
16313
|
opacity: 1.0,
|
|
16323
16314
|
value: function value(d, i) {
|
|
16324
16315
|
return m_this.position()(d, i).z;
|
|
@@ -16343,7 +16334,7 @@ var _isolineFeature = function isolineFeature(arg) {
|
|
|
16343
16334
|
fontSize: '12px'
|
|
16344
16335
|
}, arg.style === undefined ? {} : arg.style);
|
|
16345
16336
|
m_this.style(defaultStyle);
|
|
16346
|
-
m_this.isoline(
|
|
16337
|
+
m_this.isoline(Object.assign({}, {
|
|
16347
16338
|
count: 15,
|
|
16348
16339
|
autofit: true,
|
|
16349
16340
|
levels: [5, 5],
|
|
@@ -16925,7 +16916,7 @@ var _layer = function layer(arg) {
|
|
|
16925
16916
|
m_map.node().append(m_node);
|
|
16926
16917
|
|
|
16927
16918
|
/* Pass along the arguments, but not the map reference */
|
|
16928
|
-
var options =
|
|
16919
|
+
var options = Object.assign({}, arg);
|
|
16929
16920
|
delete options.map;
|
|
16930
16921
|
if (m_renderer) {
|
|
16931
16922
|
m_this._canvas(m_renderer.canvas());
|
|
@@ -17207,7 +17198,6 @@ var _lineFeature = function lineFeature(arg) {
|
|
|
17207
17198
|
if (!(this instanceof _lineFeature)) {
|
|
17208
17199
|
return new _lineFeature(arg);
|
|
17209
17200
|
}
|
|
17210
|
-
var $ = __webpack_require__(5616);
|
|
17211
17201
|
arg = arg || {};
|
|
17212
17202
|
feature.call(this, arg);
|
|
17213
17203
|
|
|
@@ -17671,7 +17661,7 @@ var _lineFeature = function lineFeature(arg) {
|
|
|
17671
17661
|
this._init = function (arg) {
|
|
17672
17662
|
arg = arg || {};
|
|
17673
17663
|
s_init.call(m_this, arg);
|
|
17674
|
-
var defaultStyle =
|
|
17664
|
+
var defaultStyle = Object.assign({}, {
|
|
17675
17665
|
strokeWidth: 1.0,
|
|
17676
17666
|
// Default to gold color for lines
|
|
17677
17667
|
strokeColor: {
|
|
@@ -18085,7 +18075,7 @@ var _map2 = function map(arg) {
|
|
|
18085
18075
|
* @returns {geo.geoPosition}
|
|
18086
18076
|
*/
|
|
18087
18077
|
this.origin = function () {
|
|
18088
|
-
return
|
|
18078
|
+
return Object.assign({}, m_origin);
|
|
18089
18079
|
};
|
|
18090
18080
|
|
|
18091
18081
|
/**
|
|
@@ -18345,7 +18335,7 @@ var _map2 = function map(arg) {
|
|
|
18345
18335
|
this.center = function (coordinates, gcs, ignoreDiscreteZoom, ignoreClampBounds) {
|
|
18346
18336
|
var center;
|
|
18347
18337
|
if (coordinates === undefined) {
|
|
18348
|
-
center =
|
|
18338
|
+
center = Object.assign({}, m_this.worldToGcs(m_center, gcs));
|
|
18349
18339
|
return center;
|
|
18350
18340
|
}
|
|
18351
18341
|
|
|
@@ -18659,7 +18649,7 @@ var _map2 = function map(arg) {
|
|
|
18659
18649
|
if (typeof readerOrName === 'string') {
|
|
18660
18650
|
opts = opts || {};
|
|
18661
18651
|
if (!opts.layer) {
|
|
18662
|
-
opts.layer = m_this.createLayer('feature',
|
|
18652
|
+
opts.layer = m_this.createLayer('feature', Object.assign({}, opts));
|
|
18663
18653
|
}
|
|
18664
18654
|
opts.renderer = opts.layer.renderer().api();
|
|
18665
18655
|
m_fileReader = registry.createFileReader(readerOrName, opts);
|
|
@@ -18817,7 +18807,7 @@ var _map2 = function map(arg) {
|
|
|
18817
18807
|
*/
|
|
18818
18808
|
this.zoomRange = function (arg, noRefresh) {
|
|
18819
18809
|
if (arg === undefined) {
|
|
18820
|
-
return
|
|
18810
|
+
return Object.assign({}, m_validZoomRange);
|
|
18821
18811
|
}
|
|
18822
18812
|
if (arg.max !== undefined) {
|
|
18823
18813
|
m_validZoomRange.max = arg.max;
|
|
@@ -18885,11 +18875,11 @@ var _map2 = function map(arg) {
|
|
|
18885
18875
|
/* The queued transition needs to combine the current transition's
|
|
18886
18876
|
* endpoint, any other queued transition, and the new transition to be
|
|
18887
18877
|
* complete. */
|
|
18888
|
-
var transitionEnd =
|
|
18878
|
+
var transitionEnd = util.deepMerge({}, m_transition.end);
|
|
18889
18879
|
if (transitionEnd.center && m_gcs !== m_ingcs) {
|
|
18890
18880
|
transitionEnd.center = transform.transformCoordinates(m_gcs, m_ingcs, transitionEnd.center);
|
|
18891
18881
|
}
|
|
18892
|
-
m_queuedTransition =
|
|
18882
|
+
m_queuedTransition = Object.assign({}, transitionEnd || {}, m_queuedTransition || {}, opts);
|
|
18893
18883
|
return m_this;
|
|
18894
18884
|
}
|
|
18895
18885
|
|
|
@@ -18938,13 +18928,13 @@ var _map2 = function map(arg) {
|
|
|
18938
18928
|
};
|
|
18939
18929
|
if (opts.center) {
|
|
18940
18930
|
gcs = gcs === null ? m_gcs : gcs === undefined ? m_ingcs : gcs;
|
|
18941
|
-
opts =
|
|
18931
|
+
opts = util.deepMerge({}, opts);
|
|
18942
18932
|
opts.center = util.normalizeCoordinates(opts.center);
|
|
18943
18933
|
if (gcs !== m_gcs) {
|
|
18944
18934
|
opts.center = transform.transformCoordinates(gcs, m_gcs, opts.center);
|
|
18945
18935
|
}
|
|
18946
18936
|
}
|
|
18947
|
-
opts =
|
|
18937
|
+
opts = util.deepMerge({}, defaultOpts, opts);
|
|
18948
18938
|
m_transition = {
|
|
18949
18939
|
start: {
|
|
18950
18940
|
center: m_this.center(undefined, null),
|
|
@@ -19511,7 +19501,7 @@ var _map2 = function map(arg) {
|
|
|
19511
19501
|
/* if asked to wait, return a Deferred that will do so, calling the
|
|
19512
19502
|
* screenshot function without waiting once it is done. */
|
|
19513
19503
|
if (opts.wait) {
|
|
19514
|
-
var optsWithoutWait =
|
|
19504
|
+
var optsWithoutWait = Object.assign({}, opts, {
|
|
19515
19505
|
wait: false
|
|
19516
19506
|
});
|
|
19517
19507
|
defer = $.Deferred();
|
|
@@ -19979,7 +19969,7 @@ var _map2 = function map(arg) {
|
|
|
19979
19969
|
dy,
|
|
19980
19970
|
maxBounds = m_maxBounds;
|
|
19981
19971
|
if (rotation) {
|
|
19982
|
-
maxBounds =
|
|
19972
|
+
maxBounds = Object.assign({}, m_maxBounds);
|
|
19983
19973
|
/* When rotated, expand the maximum bounds so that they will allow the
|
|
19984
19974
|
* corners to be visible. We know the rotated bounding box, plus the
|
|
19985
19975
|
* original maximum bounds. To fit the corners of the maximum bounds, we
|
|
@@ -20173,7 +20163,7 @@ var _map2 = function map(arg) {
|
|
|
20173
20163
|
m_zoom = this._fix_zoom(m_zoom);
|
|
20174
20164
|
m_rotation = fix_rotation(m_rotation);
|
|
20175
20165
|
// Now update to the correct center and zoom level
|
|
20176
|
-
this.center(
|
|
20166
|
+
this.center(Object.assign({}, arg.center || m_center), undefined);
|
|
20177
20167
|
if (arg.interactor !== null) {
|
|
20178
20168
|
this.interactor(arg.interactor || mapInteractor({
|
|
20179
20169
|
discreteZoom: m_discreteZoom
|
|
@@ -20400,7 +20390,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
20400
20390
|
}
|
|
20401
20391
|
|
|
20402
20392
|
// copy the options object with defaults
|
|
20403
|
-
m_options =
|
|
20393
|
+
m_options = util.deepMerge({}, {
|
|
20404
20394
|
throttle: 30,
|
|
20405
20395
|
discreteZoom: false,
|
|
20406
20396
|
/* There should only be one action with any specific combination of event
|
|
@@ -20649,13 +20639,13 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
20649
20639
|
/* We don't want to merge the original arrays with arrays passed in the args,
|
|
20650
20640
|
* so override that as necessary for actions. */
|
|
20651
20641
|
if (args && args.actions) {
|
|
20652
|
-
m_options.actions =
|
|
20642
|
+
m_options.actions = util.deepMerge([], args.actions);
|
|
20653
20643
|
}
|
|
20654
20644
|
if (args && args.momentum && args.momentum.actions) {
|
|
20655
|
-
m_options.momentum.actions =
|
|
20645
|
+
m_options.momentum.actions = util.deepMerge([], args.momentum.actions);
|
|
20656
20646
|
}
|
|
20657
20647
|
if (args && args.keyboard && args.keyboard.actions !== undefined) {
|
|
20658
|
-
m_options.keyboard.actions =
|
|
20648
|
+
m_options.keyboard.actions = util.deepMerge({}, args.keyboard.actions);
|
|
20659
20649
|
}
|
|
20660
20650
|
|
|
20661
20651
|
// default mouse object
|
|
@@ -21168,9 +21158,9 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
21168
21158
|
*/
|
|
21169
21159
|
this.options = function (opts) {
|
|
21170
21160
|
if (opts === undefined) {
|
|
21171
|
-
return
|
|
21161
|
+
return Object.assign({}, m_options);
|
|
21172
21162
|
}
|
|
21173
|
-
|
|
21163
|
+
Object.assign(m_options, opts);
|
|
21174
21164
|
|
|
21175
21165
|
// reset event handlers for new options
|
|
21176
21166
|
m_this._connectEvents();
|
|
@@ -21327,7 +21317,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
21327
21317
|
display: display,
|
|
21328
21318
|
gcs: gcs,
|
|
21329
21319
|
mouse: mouse,
|
|
21330
|
-
origin:
|
|
21320
|
+
origin: Object.assign({}, m_state.origin)
|
|
21331
21321
|
};
|
|
21332
21322
|
};
|
|
21333
21323
|
|
|
@@ -21399,7 +21389,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
21399
21389
|
m_this._setClickMaybe({
|
|
21400
21390
|
x: m_mouse.page.x,
|
|
21401
21391
|
y: m_mouse.page.y,
|
|
21402
|
-
buttons:
|
|
21392
|
+
buttons: Object.assign({}, m_mouse.buttons)
|
|
21403
21393
|
});
|
|
21404
21394
|
if (m_options.click.duration > 0) {
|
|
21405
21395
|
m_clickMaybeTimeout = window.setTimeout(function () {
|
|
@@ -21429,7 +21419,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
21429
21419
|
m_state = {
|
|
21430
21420
|
action: action,
|
|
21431
21421
|
actionRecord: actionRecord,
|
|
21432
|
-
origin:
|
|
21422
|
+
origin: util.deepMerge({}, m_mouse),
|
|
21433
21423
|
initialZoom: map.zoom(),
|
|
21434
21424
|
initialRotation: map.rotation(),
|
|
21435
21425
|
initialEventRotation: evt.rotation,
|
|
@@ -21962,7 +21952,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
21962
21952
|
function accum(dz, org) {
|
|
21963
21953
|
var map = m_this.map(),
|
|
21964
21954
|
zoom;
|
|
21965
|
-
origin =
|
|
21955
|
+
origin = util.deepMerge({}, org);
|
|
21966
21956
|
deltaZ += dz;
|
|
21967
21957
|
if (targetZoom === undefined) {
|
|
21968
21958
|
startZoom = targetZoom = map.zoom();
|
|
@@ -22256,7 +22246,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
22256
22246
|
* @returns {object} The current mouse state.
|
|
22257
22247
|
*/
|
|
22258
22248
|
this.mouse = function () {
|
|
22259
|
-
return
|
|
22249
|
+
return util.deepMerge({}, m_mouse);
|
|
22260
22250
|
};
|
|
22261
22251
|
|
|
22262
22252
|
/**
|
|
@@ -22269,7 +22259,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
22269
22259
|
*/
|
|
22270
22260
|
this.keyboard = function (newValue) {
|
|
22271
22261
|
if (newValue === undefined) {
|
|
22272
|
-
return
|
|
22262
|
+
return util.deepMerge({}, m_options.keyboard || {});
|
|
22273
22263
|
}
|
|
22274
22264
|
return m_this.options({
|
|
22275
22265
|
keyboard: newValue
|
|
@@ -22282,7 +22272,7 @@ var _mapInteractor = function mapInteractor(args) {
|
|
|
22282
22272
|
* @returns {geo.interactorState}
|
|
22283
22273
|
*/
|
|
22284
22274
|
this.state = function () {
|
|
22285
|
-
return
|
|
22275
|
+
return util.deepMerge({}, m_state);
|
|
22286
22276
|
};
|
|
22287
22277
|
|
|
22288
22278
|
/**
|
|
@@ -22579,7 +22569,6 @@ var _markerFeature = function markerFeature(arg) {
|
|
|
22579
22569
|
}
|
|
22580
22570
|
arg = arg || {};
|
|
22581
22571
|
pointFeature.call(this, arg);
|
|
22582
|
-
var $ = __webpack_require__(5616);
|
|
22583
22572
|
var timestamp = __webpack_require__(77);
|
|
22584
22573
|
var util = __webpack_require__(642);
|
|
22585
22574
|
var KDBush = __webpack_require__(4279);
|
|
@@ -22966,8 +22955,8 @@ var _markerFeature = function markerFeature(arg) {
|
|
|
22966
22955
|
* @returns {this}
|
|
22967
22956
|
*/
|
|
22968
22957
|
this._init = function (arg) {
|
|
22969
|
-
arg =
|
|
22970
|
-
style:
|
|
22958
|
+
arg = util.deepMerge({}, {
|
|
22959
|
+
style: Object.assign({}, {
|
|
22971
22960
|
radius: 6.25,
|
|
22972
22961
|
radiusIncludesStroke: true,
|
|
22973
22962
|
strokeColor: {
|
|
@@ -23207,7 +23196,6 @@ var _meshFeature = function meshFeature(arg) {
|
|
|
23207
23196
|
if (!(this instanceof _meshFeature)) {
|
|
23208
23197
|
return new _meshFeature(arg);
|
|
23209
23198
|
}
|
|
23210
|
-
var $ = __webpack_require__(5616);
|
|
23211
23199
|
var util = __webpack_require__(642);
|
|
23212
23200
|
arg = arg || {};
|
|
23213
23201
|
feature.call(this, arg);
|
|
@@ -23237,7 +23225,7 @@ var _meshFeature = function meshFeature(arg) {
|
|
|
23237
23225
|
return m_mesh[specOrProperty];
|
|
23238
23226
|
}
|
|
23239
23227
|
if (value === undefined) {
|
|
23240
|
-
var mesh =
|
|
23228
|
+
var mesh = Object.assign({}, {
|
|
23241
23229
|
gridWidth: function gridWidth() {
|
|
23242
23230
|
if (specOrProperty.gridHeight) {
|
|
23243
23231
|
return Math.floor(m_this.data().length / specOrProperty.gridHeight);
|
|
@@ -23663,7 +23651,7 @@ var _meshFeature = function meshFeature(arg) {
|
|
|
23663
23651
|
|
|
23664
23652
|
/* Initialize from arguments */
|
|
23665
23653
|
arg = arg || {};
|
|
23666
|
-
var style =
|
|
23654
|
+
var style = Object.assign({}, {
|
|
23667
23655
|
position: function position(d) {
|
|
23668
23656
|
return Array.isArray(d) ? {
|
|
23669
23657
|
x: d[0],
|
|
@@ -23980,11 +23968,11 @@ module.exports = _object;
|
|
|
23980
23968
|
/***/ 4880:
|
|
23981
23969
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
23982
23970
|
|
|
23983
|
-
var $ = __webpack_require__(5616);
|
|
23984
23971
|
var inherit = __webpack_require__(4626);
|
|
23985
23972
|
var tileLayer = __webpack_require__(9264);
|
|
23986
23973
|
var registry = __webpack_require__(1098);
|
|
23987
23974
|
var quadFeature = __webpack_require__(3842);
|
|
23975
|
+
var util = __webpack_require__(642);
|
|
23988
23976
|
|
|
23989
23977
|
/**
|
|
23990
23978
|
* Object specification for an OSM layer.
|
|
@@ -24017,10 +24005,10 @@ var _osmLayer = function osmLayer(arg) {
|
|
|
24017
24005
|
}
|
|
24018
24006
|
arg = arg || {};
|
|
24019
24007
|
if (arg.mapOpacity !== undefined && arg.opacity === undefined) {
|
|
24020
|
-
arg =
|
|
24008
|
+
arg = Object.assign({}, arg);
|
|
24021
24009
|
arg.opacity = arg.mapOpacity;
|
|
24022
24010
|
}
|
|
24023
|
-
arg =
|
|
24011
|
+
arg = util.deepMerge({}, this.constructor.defaults, _osmLayer.tileSources[this.constructor.defaults.source] || {}, _osmLayer.tileSources[arg.source] || {},
|
|
24024
24012
|
// don't name the layer based on the source
|
|
24025
24013
|
{
|
|
24026
24014
|
name: ''
|
|
@@ -24094,7 +24082,7 @@ var _osmLayer = function osmLayer(arg) {
|
|
|
24094
24082
|
/**
|
|
24095
24083
|
* This object contains the default options used to initialize the osmLayer.
|
|
24096
24084
|
*/
|
|
24097
|
-
_osmLayer.defaults =
|
|
24085
|
+
_osmLayer.defaults = Object.assign({}, tileLayer.defaults, {
|
|
24098
24086
|
tileOffset: function tileOffset(level) {
|
|
24099
24087
|
var s = Math.pow(2, level - 1) * 256;
|
|
24100
24088
|
return {
|
|
@@ -24245,7 +24233,6 @@ module.exports = _osmLayer;
|
|
|
24245
24233
|
/***/ 2266:
|
|
24246
24234
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24247
24235
|
|
|
24248
|
-
var $ = __webpack_require__(5616);
|
|
24249
24236
|
var inherit = __webpack_require__(4626);
|
|
24250
24237
|
var feature = __webpack_require__(1275);
|
|
24251
24238
|
|
|
@@ -24324,7 +24311,7 @@ var _pathFeature = function pathFeature(arg) {
|
|
|
24324
24311
|
*/
|
|
24325
24312
|
this._init = function (arg) {
|
|
24326
24313
|
s_init.call(m_this, arg);
|
|
24327
|
-
var defaultStyle =
|
|
24314
|
+
var defaultStyle = Object.assign({}, {
|
|
24328
24315
|
strokeWidth: 1,
|
|
24329
24316
|
strokeColor: {
|
|
24330
24317
|
r: 1.0,
|
|
@@ -24633,7 +24620,7 @@ var _pixelmapFeature = function pixelmapFeature(arg) {
|
|
|
24633
24620
|
this._init = function (arg) {
|
|
24634
24621
|
arg = arg || {};
|
|
24635
24622
|
s_init.call(m_this, arg);
|
|
24636
|
-
var style =
|
|
24623
|
+
var style = Object.assign({}, {
|
|
24637
24624
|
color: function color(d, idx) {
|
|
24638
24625
|
return {
|
|
24639
24626
|
r: (idx & 0xFF) / 255,
|
|
@@ -24693,12 +24680,12 @@ module.exports = _pixelmapFeature;
|
|
|
24693
24680
|
/***/ 534:
|
|
24694
24681
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24695
24682
|
|
|
24696
|
-
var $ = __webpack_require__(5616);
|
|
24697
24683
|
var inherit = __webpack_require__(4626);
|
|
24698
24684
|
var tileLayer = __webpack_require__(9264);
|
|
24699
24685
|
var registry = __webpack_require__(1098);
|
|
24700
24686
|
var quadFeature = __webpack_require__(3842);
|
|
24701
24687
|
var pixelmapFeature = __webpack_require__(7761);
|
|
24688
|
+
var util = __webpack_require__(642);
|
|
24702
24689
|
|
|
24703
24690
|
/**
|
|
24704
24691
|
* Object specification for a pixelmap layer.
|
|
@@ -24740,7 +24727,7 @@ var _pixelmapLayer = function pixelmapLayer(arg) {
|
|
|
24740
24727
|
argdata = arg.data;
|
|
24741
24728
|
delete arg.data;
|
|
24742
24729
|
}
|
|
24743
|
-
arg =
|
|
24730
|
+
arg = util.deepMerge({}, this.constructor.defaults, arg);
|
|
24744
24731
|
tileLayer.call(this, arg);
|
|
24745
24732
|
var s_init = this._init,
|
|
24746
24733
|
m_pixelmapFeature,
|
|
@@ -24825,7 +24812,7 @@ var _pixelmapLayer = function pixelmapLayer(arg) {
|
|
|
24825
24812
|
* This object contains the default options used to initialize the
|
|
24826
24813
|
* pixelmapLayer.
|
|
24827
24814
|
*/
|
|
24828
|
-
_pixelmapLayer.defaults =
|
|
24815
|
+
_pixelmapLayer.defaults = Object.assign({}, tileLayer.defaults, {
|
|
24829
24816
|
features: [quadFeature.capabilities.image, pixelmapFeature.capabilities.lookup],
|
|
24830
24817
|
tileOffset: function tileOffset(level) {
|
|
24831
24818
|
var s = Math.pow(2, level - 1) * 256;
|
|
@@ -24933,7 +24920,6 @@ var _pointFeature = function pointFeature(arg) {
|
|
|
24933
24920
|
}
|
|
24934
24921
|
arg = arg || {};
|
|
24935
24922
|
feature.call(this, arg);
|
|
24936
|
-
var $ = __webpack_require__(5616);
|
|
24937
24923
|
var timestamp = __webpack_require__(77);
|
|
24938
24924
|
var ClusterGroup = __webpack_require__(5966);
|
|
24939
24925
|
var geo_event = __webpack_require__(6409);
|
|
@@ -25011,7 +24997,7 @@ var _pointFeature = function pointFeature(arg) {
|
|
|
25011
24997
|
radiusInGcsAtZoom = Math.pow(Math.pow(offset.y - center.y, 2) + Math.pow(offset.x - center.x, 2), 0.5),
|
|
25012
24998
|
zoom = map.zoom(),
|
|
25013
24999
|
radiusInGcsAtZoom0 = radiusInGcsAtZoom * Math.pow(2, zoom);
|
|
25014
|
-
opts =
|
|
25000
|
+
opts = Object.assign({}, opts, {
|
|
25015
25001
|
radius: radiusInGcsAtZoom0
|
|
25016
25002
|
});
|
|
25017
25003
|
m_clusterTree = new ClusterGroup(opts);
|
|
@@ -25415,7 +25401,7 @@ var _pointFeature = function pointFeature(arg) {
|
|
|
25415
25401
|
this._init = function (arg) {
|
|
25416
25402
|
arg = arg || {};
|
|
25417
25403
|
s_init.call(m_this, arg);
|
|
25418
|
-
var defaultStyle =
|
|
25404
|
+
var defaultStyle = util.deepMerge({}, {
|
|
25419
25405
|
radius: 5.0,
|
|
25420
25406
|
stroke: true,
|
|
25421
25407
|
strokeColor: {
|
|
@@ -25500,7 +25486,6 @@ module.exports = _pointFeature;
|
|
|
25500
25486
|
/***/ 6645:
|
|
25501
25487
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25502
25488
|
|
|
25503
|
-
var $ = __webpack_require__(5616);
|
|
25504
25489
|
var inherit = __webpack_require__(4626);
|
|
25505
25490
|
var feature = __webpack_require__(1275);
|
|
25506
25491
|
var transform = __webpack_require__(5325);
|
|
@@ -26336,7 +26321,7 @@ var _polygonFeature = function polygonFeature(arg) {
|
|
|
26336
26321
|
this._init = function (arg) {
|
|
26337
26322
|
arg = arg || {};
|
|
26338
26323
|
s_init.call(m_this, arg);
|
|
26339
|
-
var style =
|
|
26324
|
+
var style = Object.assign({}, {
|
|
26340
26325
|
// default style
|
|
26341
26326
|
fill: true,
|
|
26342
26327
|
fillColor: {
|
|
@@ -27133,7 +27118,7 @@ var _quadFeature = function quadFeature(arg) {
|
|
|
27133
27118
|
arg = arg || {};
|
|
27134
27119
|
s_init.call(m_this, arg);
|
|
27135
27120
|
m_cacheQuads = arg.cacheQuads !== false;
|
|
27136
|
-
var style =
|
|
27121
|
+
var style = Object.assign({}, {
|
|
27137
27122
|
color: {
|
|
27138
27123
|
r: 1.0,
|
|
27139
27124
|
g: 1,
|
|
@@ -27202,6 +27187,7 @@ module.exports = _quadFeature;
|
|
|
27202
27187
|
|
|
27203
27188
|
var $ = __webpack_require__(5616);
|
|
27204
27189
|
var geo_action = __webpack_require__(8695);
|
|
27190
|
+
var util = __webpack_require__(1949);
|
|
27205
27191
|
var widgets = {
|
|
27206
27192
|
dom: {}
|
|
27207
27193
|
};
|
|
@@ -27213,7 +27199,7 @@ var featureCapabilities = {};
|
|
|
27213
27199
|
var fileReaders = {};
|
|
27214
27200
|
var rendererLayerAdjustments = {};
|
|
27215
27201
|
var annotations = {};
|
|
27216
|
-
var
|
|
27202
|
+
var registry = {};
|
|
27217
27203
|
|
|
27218
27204
|
/**
|
|
27219
27205
|
* Register a new file reader type.
|
|
@@ -27223,7 +27209,7 @@ var util = {};
|
|
|
27223
27209
|
* exists, the class creation function is replaced.
|
|
27224
27210
|
* @param {function} func Class creation function.
|
|
27225
27211
|
*/
|
|
27226
|
-
|
|
27212
|
+
registry.registerFileReader = function (name, func) {
|
|
27227
27213
|
fileReaders[name] = func;
|
|
27228
27214
|
};
|
|
27229
27215
|
|
|
@@ -27236,7 +27222,7 @@ util.registerFileReader = function (name, func) {
|
|
|
27236
27222
|
* @returns {geo.fileReader|null} The new reader or null if no such name is
|
|
27237
27223
|
* registered.
|
|
27238
27224
|
*/
|
|
27239
|
-
|
|
27225
|
+
registry.createFileReader = function (name, opts) {
|
|
27240
27226
|
if (fileReaders.hasOwnProperty(name)) {
|
|
27241
27227
|
return fileReaders[name](opts);
|
|
27242
27228
|
}
|
|
@@ -27251,7 +27237,7 @@ util.createFileReader = function (name, opts) {
|
|
|
27251
27237
|
* exists, the class creation function is replaced.
|
|
27252
27238
|
* @param {function} func Class creation function.
|
|
27253
27239
|
*/
|
|
27254
|
-
|
|
27240
|
+
registry.registerRenderer = function (name, func) {
|
|
27255
27241
|
renderers[name] = func;
|
|
27256
27242
|
};
|
|
27257
27243
|
|
|
@@ -27267,7 +27253,7 @@ util.registerRenderer = function (name, func) {
|
|
|
27267
27253
|
* @returns {geo.renderer|null} The new renderer or null if no such name is
|
|
27268
27254
|
* registered.
|
|
27269
27255
|
*/
|
|
27270
|
-
|
|
27256
|
+
registry.createRenderer = function (name, layer, canvas, options) {
|
|
27271
27257
|
if (renderers.hasOwnProperty(name)) {
|
|
27272
27258
|
var ren = renderers[name]({
|
|
27273
27259
|
layer: layer,
|
|
@@ -27292,7 +27278,7 @@ util.createRenderer = function (name, layer, canvas, options) {
|
|
|
27292
27278
|
* @returns {string|null|false} The name of the renderer that should be used
|
|
27293
27279
|
* or false if no valid renderer can be determined.
|
|
27294
27280
|
*/
|
|
27295
|
-
|
|
27281
|
+
registry.checkRenderer = function (name, noFallback) {
|
|
27296
27282
|
if (name === null) {
|
|
27297
27283
|
return name;
|
|
27298
27284
|
}
|
|
@@ -27304,7 +27290,7 @@ util.checkRenderer = function (name, noFallback) {
|
|
|
27304
27290
|
if (!ren.fallback || noFallback) {
|
|
27305
27291
|
return false;
|
|
27306
27292
|
}
|
|
27307
|
-
var fallback =
|
|
27293
|
+
var fallback = registry.checkRenderer(ren.fallback(), true);
|
|
27308
27294
|
if (fallback !== false) {
|
|
27309
27295
|
console.warn(name + ' renderer is unavailable, using ' + fallback + ' renderer instead');
|
|
27310
27296
|
}
|
|
@@ -27331,12 +27317,12 @@ util.checkRenderer = function (name, noFallback) {
|
|
|
27331
27317
|
* @returns {string|null|false} The name of the renderer that should be used
|
|
27332
27318
|
* or false if no valid renderer can be determined.
|
|
27333
27319
|
*/
|
|
27334
|
-
|
|
27320
|
+
registry.rendererForFeatures = function (featureList) {
|
|
27335
27321
|
var preferredRenderers = ['webgl', 'canvas', 'svg', 'vtkjs', null];
|
|
27336
27322
|
var renderer, ridx, feature, fidx, capability, available;
|
|
27337
27323
|
for (ridx = 0; ridx < preferredRenderers.length; ridx += 1) {
|
|
27338
27324
|
renderer = preferredRenderers[ridx];
|
|
27339
|
-
if (
|
|
27325
|
+
if (registry.checkRenderer(renderer, true) === false) {
|
|
27340
27326
|
continue;
|
|
27341
27327
|
}
|
|
27342
27328
|
if (!featureList) {
|
|
@@ -27388,7 +27374,7 @@ util.rendererForFeatures = function (featureList) {
|
|
|
27388
27374
|
* @returns {object} if this feature replaces an existing one, this was the
|
|
27389
27375
|
* feature that was replaced. In this case, a warning is issued.
|
|
27390
27376
|
*/
|
|
27391
|
-
|
|
27377
|
+
registry.registerFeature = function (category, name, func, capabilities) {
|
|
27392
27378
|
if (!(category in features)) {
|
|
27393
27379
|
features[category] = {};
|
|
27394
27380
|
featureCapabilities[category] = {};
|
|
@@ -27414,7 +27400,7 @@ util.registerFeature = function (category, name, func, capabilities) {
|
|
|
27414
27400
|
* @returns {geo.feature|null} The new feature or null if no such name is
|
|
27415
27401
|
* registered.
|
|
27416
27402
|
*/
|
|
27417
|
-
|
|
27403
|
+
registry.createFeature = function (name, layer, renderer, arg) {
|
|
27418
27404
|
var category = renderer.api(),
|
|
27419
27405
|
options = {
|
|
27420
27406
|
layer: layer,
|
|
@@ -27422,7 +27408,7 @@ util.createFeature = function (name, layer, renderer, arg) {
|
|
|
27422
27408
|
};
|
|
27423
27409
|
if (category in features && name in features[category]) {
|
|
27424
27410
|
if (arg !== undefined) {
|
|
27425
|
-
|
|
27411
|
+
util.deepMerge(options, arg);
|
|
27426
27412
|
}
|
|
27427
27413
|
var feature = features[category][name](options);
|
|
27428
27414
|
if (layer.gcs === undefined) {
|
|
@@ -27449,7 +27435,7 @@ util.createFeature = function (name, layer, renderer, arg) {
|
|
|
27449
27435
|
* @returns {object} if this layer adjustment replaces an existing one, this
|
|
27450
27436
|
* was the value that was replaced. In this case, a warning is issued.
|
|
27451
27437
|
*/
|
|
27452
|
-
|
|
27438
|
+
registry.registerLayerAdjustment = function (category, name, func) {
|
|
27453
27439
|
if (!(category in rendererLayerAdjustments)) {
|
|
27454
27440
|
rendererLayerAdjustments[category] = {};
|
|
27455
27441
|
}
|
|
@@ -27469,7 +27455,7 @@ util.registerLayerAdjustment = function (category, name, func) {
|
|
|
27469
27455
|
* @param {string} name Name of the layer or adjustment.
|
|
27470
27456
|
* @param {object} layer Instantiated layer object.
|
|
27471
27457
|
*/
|
|
27472
|
-
|
|
27458
|
+
registry.adjustLayerForRenderer = function (name, layer) {
|
|
27473
27459
|
var rendererName = layer.rendererName();
|
|
27474
27460
|
if (rendererName) {
|
|
27475
27461
|
if (rendererLayerAdjustments && rendererLayerAdjustments[rendererName] && rendererLayerAdjustments[rendererName][name]) {
|
|
@@ -27488,7 +27474,7 @@ util.adjustLayerForRenderer = function (name, layer) {
|
|
|
27488
27474
|
* @param {string[]} [defaultFeatures] An optional list of feature capabilities
|
|
27489
27475
|
* that are required to use this layer.
|
|
27490
27476
|
*/
|
|
27491
|
-
|
|
27477
|
+
registry.registerLayer = function (name, func, defaultFeatures) {
|
|
27492
27478
|
layers[name] = func;
|
|
27493
27479
|
layerDefaultFeatures[name] = defaultFeatures;
|
|
27494
27480
|
};
|
|
@@ -27503,7 +27489,7 @@ util.registerLayer = function (name, func, defaultFeatures) {
|
|
|
27503
27489
|
* @returns {geo.layer|null} The new layer or null if no such name is
|
|
27504
27490
|
* registered.
|
|
27505
27491
|
*/
|
|
27506
|
-
|
|
27492
|
+
registry.createLayer = function (name, map, arg) {
|
|
27507
27493
|
// Default renderer is webgl
|
|
27508
27494
|
var options = {
|
|
27509
27495
|
map: map
|
|
@@ -27516,7 +27502,7 @@ util.createLayer = function (name, map, arg) {
|
|
|
27516
27502
|
if (arg !== undefined) {
|
|
27517
27503
|
var argdata = arg.data;
|
|
27518
27504
|
delete arg.data;
|
|
27519
|
-
|
|
27505
|
+
util.deepMerge(options, arg);
|
|
27520
27506
|
if (argdata) {
|
|
27521
27507
|
options.data = argdata;
|
|
27522
27508
|
}
|
|
@@ -27541,7 +27527,7 @@ util.createLayer = function (name, map, arg) {
|
|
|
27541
27527
|
* @returns {object} If this widget replaces an existing one, this was the
|
|
27542
27528
|
* value that was replaced. In this case, a warning is issued.
|
|
27543
27529
|
*/
|
|
27544
|
-
|
|
27530
|
+
registry.registerWidget = function (category, name, func) {
|
|
27545
27531
|
if (!(category in widgets)) {
|
|
27546
27532
|
widgets[category] = {};
|
|
27547
27533
|
}
|
|
@@ -27562,13 +27548,13 @@ util.registerWidget = function (category, name, func) {
|
|
|
27562
27548
|
* @param {object} arg Options for the new widget.
|
|
27563
27549
|
* @returns {geo.widget} The new widget.
|
|
27564
27550
|
*/
|
|
27565
|
-
|
|
27551
|
+
registry.createWidget = function (name, layer, arg) {
|
|
27566
27552
|
var options = {
|
|
27567
27553
|
layer: layer
|
|
27568
27554
|
};
|
|
27569
27555
|
if (name in widgets.dom) {
|
|
27570
27556
|
if (arg !== undefined) {
|
|
27571
|
-
|
|
27557
|
+
util.deepMerge(options, arg);
|
|
27572
27558
|
}
|
|
27573
27559
|
return widgets.dom[name](options);
|
|
27574
27560
|
}
|
|
@@ -27589,7 +27575,7 @@ util.createWidget = function (name, layer, arg) {
|
|
|
27589
27575
|
* @returns {object} if this annotation replaces an existing one, this was the
|
|
27590
27576
|
* value that was replaced. In this case, a warning is issued.
|
|
27591
27577
|
*/
|
|
27592
|
-
|
|
27578
|
+
registry.registerAnnotation = function (name, func, features) {
|
|
27593
27579
|
var old = annotations[name];
|
|
27594
27580
|
if (old) {
|
|
27595
27581
|
console.warn('The ' + name + ' annotation is already registered');
|
|
@@ -27610,7 +27596,7 @@ util.registerAnnotation = function (name, func, features) {
|
|
|
27610
27596
|
* @param {object} options The options for the annotation.
|
|
27611
27597
|
* @returns {object} the new annotation.
|
|
27612
27598
|
*/
|
|
27613
|
-
|
|
27599
|
+
registry.createAnnotation = function (name, options) {
|
|
27614
27600
|
if (!annotations[name]) {
|
|
27615
27601
|
console.warn('The ' + name + ' annotation is not registered');
|
|
27616
27602
|
return;
|
|
@@ -27625,7 +27611,7 @@ util.createAnnotation = function (name, options) {
|
|
|
27625
27611
|
* @alias geo.listAnnotations
|
|
27626
27612
|
* @returns {string[]} A list of registered annotations.
|
|
27627
27613
|
*/
|
|
27628
|
-
|
|
27614
|
+
registry.listAnnotations = function () {
|
|
27629
27615
|
return Object.keys(annotations);
|
|
27630
27616
|
};
|
|
27631
27617
|
|
|
@@ -27643,7 +27629,7 @@ util.listAnnotations = function () {
|
|
|
27643
27629
|
* @returns {string[]} a list of features needed for the specified annotations.
|
|
27644
27630
|
* There may be duplicates in the list.
|
|
27645
27631
|
*/
|
|
27646
|
-
|
|
27632
|
+
registry.featuresForAnnotations = function (annotationList) {
|
|
27647
27633
|
var features = [];
|
|
27648
27634
|
var annList = Array.isArray(annotationList) ? annotationList : Object.keys(annotationList);
|
|
27649
27635
|
annList.forEach(function (ann) {
|
|
@@ -27679,8 +27665,8 @@ util.featuresForAnnotations = function (annotationList) {
|
|
|
27679
27665
|
* @returns {string|null|false} the name of the renderer that should be used or
|
|
27680
27666
|
* false if no valid renderer can be determined.
|
|
27681
27667
|
*/
|
|
27682
|
-
|
|
27683
|
-
return
|
|
27668
|
+
registry.rendererForAnnotations = function (annotationList) {
|
|
27669
|
+
return registry.rendererForFeatures(registry.featuresForAnnotations(annotationList));
|
|
27684
27670
|
};
|
|
27685
27671
|
|
|
27686
27672
|
/**
|
|
@@ -27689,7 +27675,7 @@ util.rendererForAnnotations = function (annotationList) {
|
|
|
27689
27675
|
*
|
|
27690
27676
|
* @namespace geo.registries
|
|
27691
27677
|
*/
|
|
27692
|
-
|
|
27678
|
+
registry.registries = {
|
|
27693
27679
|
annotations: annotations,
|
|
27694
27680
|
features: features,
|
|
27695
27681
|
featureCapabilities: featureCapabilities,
|
|
@@ -27698,7 +27684,7 @@ util.registries = {
|
|
|
27698
27684
|
renderers: renderers,
|
|
27699
27685
|
widgets: widgets
|
|
27700
27686
|
};
|
|
27701
|
-
module.exports =
|
|
27687
|
+
module.exports = registry;
|
|
27702
27688
|
|
|
27703
27689
|
/***/ }),
|
|
27704
27690
|
|
|
@@ -28074,7 +28060,7 @@ module.exports = _sceneObject;
|
|
|
28074
28060
|
* @constant
|
|
28075
28061
|
* @type {string}
|
|
28076
28062
|
*/
|
|
28077
|
-
module.exports = "
|
|
28063
|
+
module.exports = "689846cc4aaa81643bd60b9d9afd9c8dd08bd8ff";
|
|
28078
28064
|
|
|
28079
28065
|
/***/ }),
|
|
28080
28066
|
|
|
@@ -28388,7 +28374,6 @@ var _svg_pathFeature = function svg_pathFeature(arg) {
|
|
|
28388
28374
|
if (!(this instanceof _svg_pathFeature)) {
|
|
28389
28375
|
return new _svg_pathFeature(arg);
|
|
28390
28376
|
}
|
|
28391
|
-
var $ = __webpack_require__(5616);
|
|
28392
28377
|
var object = __webpack_require__(5005);
|
|
28393
28378
|
var timestamp = __webpack_require__(77);
|
|
28394
28379
|
arg = arg || {};
|
|
@@ -28436,7 +28421,7 @@ var _svg_pathFeature = function svg_pathFeature(arg) {
|
|
|
28436
28421
|
m_style.id = m_this._svgid();
|
|
28437
28422
|
m_style.append = 'path';
|
|
28438
28423
|
m_style.classes = ['svgPathFeature'];
|
|
28439
|
-
m_style.style =
|
|
28424
|
+
m_style.style = Object.assign({
|
|
28440
28425
|
fill: function fill() {
|
|
28441
28426
|
return false;
|
|
28442
28427
|
},
|
|
@@ -30078,7 +30063,6 @@ var _textFeature = function textFeature(arg) {
|
|
|
30078
30063
|
}
|
|
30079
30064
|
arg = arg || {};
|
|
30080
30065
|
feature.call(this, arg);
|
|
30081
|
-
var $ = __webpack_require__(5616);
|
|
30082
30066
|
|
|
30083
30067
|
/**
|
|
30084
30068
|
* @private
|
|
@@ -30131,7 +30115,7 @@ var _textFeature = function textFeature(arg) {
|
|
|
30131
30115
|
this._init = function (arg) {
|
|
30132
30116
|
arg = arg || {};
|
|
30133
30117
|
s_init.call(m_this, arg);
|
|
30134
|
-
var style =
|
|
30118
|
+
var style = Object.assign({}, {
|
|
30135
30119
|
font: 'bold 16px sans-serif',
|
|
30136
30120
|
textAlign: 'center',
|
|
30137
30121
|
textBaseline: 'middle',
|
|
@@ -30617,6 +30601,7 @@ module.exports = _tileCache;
|
|
|
30617
30601
|
|
|
30618
30602
|
var inherit = __webpack_require__(4626);
|
|
30619
30603
|
var featureLayer = __webpack_require__(6498);
|
|
30604
|
+
var util = __webpack_require__(642);
|
|
30620
30605
|
|
|
30621
30606
|
/**
|
|
30622
30607
|
* Object specification for a tile layer.
|
|
@@ -30801,7 +30786,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
30801
30786
|
var fetchQueue = __webpack_require__(5938);
|
|
30802
30787
|
var adjustLayerForRenderer = (__webpack_require__(1098).adjustLayerForRenderer);
|
|
30803
30788
|
var Tile = __webpack_require__(5289);
|
|
30804
|
-
arg =
|
|
30789
|
+
arg = util.deepMerge({}, this.constructor.defaults, arg || {});
|
|
30805
30790
|
if (!arg.cacheSize) {
|
|
30806
30791
|
// this size should be sufficient for a 4k display
|
|
30807
30792
|
// where display size is (w, h), minimum tile dimension is ts, and total
|
|
@@ -30842,7 +30827,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
30842
30827
|
m_this = this;
|
|
30843
30828
|
|
|
30844
30829
|
// copy the options into a private variable
|
|
30845
|
-
this._options =
|
|
30830
|
+
this._options = util.deepMerge({}, arg);
|
|
30846
30831
|
|
|
30847
30832
|
// set the layer attribution text
|
|
30848
30833
|
this.attribution(arg.attribution);
|
|
@@ -30892,7 +30877,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
30892
30877
|
*/
|
|
30893
30878
|
Object.defineProperty(this, 'options', {
|
|
30894
30879
|
get: function get() {
|
|
30895
|
-
return
|
|
30880
|
+
return Object.assign({}, m_this._options);
|
|
30896
30881
|
}
|
|
30897
30882
|
});
|
|
30898
30883
|
|
|
@@ -30917,7 +30902,7 @@ var _tileLayer = function tileLayer(arg) {
|
|
|
30917
30902
|
*/
|
|
30918
30903
|
Object.defineProperty(this, 'activeTiles', {
|
|
30919
30904
|
get: function get() {
|
|
30920
|
-
return
|
|
30905
|
+
return Object.assign({}, m_this._activeTiles); // copy on output
|
|
30921
30906
|
}
|
|
30922
30907
|
});
|
|
30923
30908
|
|
|
@@ -32590,7 +32575,6 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
32590
32575
|
if (!(this instanceof _trackFeature)) {
|
|
32591
32576
|
return new _trackFeature(arg);
|
|
32592
32577
|
}
|
|
32593
|
-
var $ = __webpack_require__(5616);
|
|
32594
32578
|
var transform = __webpack_require__(5325);
|
|
32595
32579
|
arg = arg || {};
|
|
32596
32580
|
feature.call(this, arg);
|
|
@@ -33023,7 +33007,7 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
33023
33007
|
m_styles[styleType] = {};
|
|
33024
33008
|
}
|
|
33025
33009
|
if (arg2 === undefined) {
|
|
33026
|
-
m_styles[styleType] =
|
|
33010
|
+
m_styles[styleType] = util.deepMerge(m_styles[styleType], arg1);
|
|
33027
33011
|
} else {
|
|
33028
33012
|
m_styles[styleType][arg1] = arg2;
|
|
33029
33013
|
}
|
|
@@ -33370,7 +33354,7 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
33370
33354
|
this._init = function (arg) {
|
|
33371
33355
|
arg = arg || {};
|
|
33372
33356
|
s_init.call(m_this, arg);
|
|
33373
|
-
var style =
|
|
33357
|
+
var style = util.deepMerge({}, {
|
|
33374
33358
|
track: util.identityFunction,
|
|
33375
33359
|
position: util.identityFunction,
|
|
33376
33360
|
time: function time(d, i) {
|
|
@@ -33379,25 +33363,25 @@ var _trackFeature = function trackFeature(arg) {
|
|
|
33379
33363
|
uniformLine: 'drop',
|
|
33380
33364
|
closed: false
|
|
33381
33365
|
}, arg.style === undefined ? {} : arg.style);
|
|
33382
|
-
var markerStyle =
|
|
33366
|
+
var markerStyle = util.deepMerge({}, {
|
|
33383
33367
|
rotateWithMap: true,
|
|
33384
33368
|
rotation: function rotation(d, i) {
|
|
33385
33369
|
return -m_tracks.endPosition[i].angle || 0;
|
|
33386
33370
|
}
|
|
33387
33371
|
}, arg.markerStyle === undefined ? {} : arg.markerStyle);
|
|
33388
|
-
var textStyle =
|
|
33372
|
+
var textStyle = util.deepMerge({}, {
|
|
33389
33373
|
rotateWithMap: true,
|
|
33390
33374
|
rotation: function rotation(d, i) {
|
|
33391
33375
|
return m_tracks.endPosition[i].angle !== undefined ? -m_tracks.endPosition[i].angle + Math.PI / 2 : 0;
|
|
33392
33376
|
}
|
|
33393
33377
|
}, arg.textStyle === undefined ? {} : arg.textStyle);
|
|
33394
|
-
var pastStyle =
|
|
33378
|
+
var pastStyle = util.deepMerge({}, {
|
|
33395
33379
|
strokeOpacity: 0.25
|
|
33396
33380
|
}, arg.pastStyle === undefined ? {} : arg.pastStyle);
|
|
33397
|
-
var currentStyle =
|
|
33381
|
+
var currentStyle = util.deepMerge({}, {
|
|
33398
33382
|
// defaults go here
|
|
33399
33383
|
}, arg.currentStyle === undefined ? {} : arg.currentStyle);
|
|
33400
|
-
var futureStyle =
|
|
33384
|
+
var futureStyle = util.deepMerge({}, {
|
|
33401
33385
|
strokeOpacity: 0.25
|
|
33402
33386
|
}, arg.futureStyle === undefined ? {} : arg.futureStyle);
|
|
33403
33387
|
['track', 'position', 'time'].forEach(function (key) {
|
|
@@ -35321,7 +35305,7 @@ var _scaleWidget = function scaleWidget(arg) {
|
|
|
35321
35305
|
var d3 = (__webpack_require__(2493).d3);
|
|
35322
35306
|
var m_this = this,
|
|
35323
35307
|
s_exit = this._exit,
|
|
35324
|
-
m_options =
|
|
35308
|
+
m_options = Object.assign({}, {
|
|
35325
35309
|
scale: 1,
|
|
35326
35310
|
maxWidth: 200,
|
|
35327
35311
|
maxHeight: arg.orientation === 'left' || arg.orientation === 'right' ? 200 : 20,
|
|
@@ -35531,7 +35515,7 @@ var _scaleWidget = function scaleWidget(arg) {
|
|
|
35531
35515
|
*/
|
|
35532
35516
|
this.options = function (arg1, arg2) {
|
|
35533
35517
|
if (arg1 === undefined) {
|
|
35534
|
-
var result =
|
|
35518
|
+
var result = Object.assign({}, m_options);
|
|
35535
35519
|
result.position = m_this.position(undefined, true);
|
|
35536
35520
|
return result;
|
|
35537
35521
|
}
|
|
@@ -35539,7 +35523,7 @@ var _scaleWidget = function scaleWidget(arg) {
|
|
|
35539
35523
|
return arg1 === 'position' ? m_this.position(undefined, true) : m_options[arg1];
|
|
35540
35524
|
}
|
|
35541
35525
|
if (arg2 === undefined) {
|
|
35542
|
-
m_options =
|
|
35526
|
+
m_options = util.deepMerge(m_options, arg1);
|
|
35543
35527
|
} else {
|
|
35544
35528
|
m_options[arg1] = arg2;
|
|
35545
35529
|
}
|
|
@@ -36190,7 +36174,6 @@ module.exports = _uiLayer;
|
|
|
36190
36174
|
|
|
36191
36175
|
var inherit = __webpack_require__(4626);
|
|
36192
36176
|
var sceneObject = __webpack_require__(5402);
|
|
36193
|
-
var $ = __webpack_require__(5616);
|
|
36194
36177
|
|
|
36195
36178
|
/**
|
|
36196
36179
|
* @typedef {object} geo.gui.widget.position
|
|
@@ -36354,7 +36337,7 @@ var _widget = function widget(arg) {
|
|
|
36354
36337
|
if (m_position.hasOwnProperty('x') && m_position.hasOwnProperty('y')) {
|
|
36355
36338
|
m_this.layer().geoOn(geo_event.pan, m_this.repositionEvent);
|
|
36356
36339
|
}
|
|
36357
|
-
m_this.reposition(
|
|
36340
|
+
m_this.reposition(Object.assign(clearPosition, m_this.position()));
|
|
36358
36341
|
return m_this;
|
|
36359
36342
|
}
|
|
36360
36343
|
if (m_position.hasOwnProperty('x') && m_position.hasOwnProperty('y') && !actualValue) {
|
|
@@ -36577,7 +36560,7 @@ function C(opts) {
|
|
|
36577
36560
|
var DistanceGrid = __webpack_require__(7235);
|
|
36578
36561
|
|
|
36579
36562
|
// store the options
|
|
36580
|
-
this._opts =
|
|
36563
|
+
this._opts = Object.assign({
|
|
36581
36564
|
maxZoom: 18,
|
|
36582
36565
|
radius: 5
|
|
36583
36566
|
}, opts);
|
|
@@ -37507,7 +37490,7 @@ var util = {
|
|
|
37507
37490
|
* @example <caption>The returned objects can be modified or
|
|
37508
37491
|
* extended.</caption>
|
|
37509
37492
|
* var results = pixelCoordinateParams('#map', 10000, 9000);
|
|
37510
|
-
* var map = geo.map(
|
|
37493
|
+
* var map = geo.map(Object.assign(results.map, {clampZoom: false}));
|
|
37511
37494
|
* map.createLayer('osm', results.layer);
|
|
37512
37495
|
*
|
|
37513
37496
|
* @param {string?} node DOM selector for the map container.
|
|
@@ -37978,6 +37961,46 @@ var util = {
|
|
|
37978
37961
|
return '&#' + code.toString(10) + ';';
|
|
37979
37962
|
});
|
|
37980
37963
|
},
|
|
37964
|
+
/**
|
|
37965
|
+
* Recursively merge two objects. This is intended to replace
|
|
37966
|
+
* util.deepMerge(target, ...sources).
|
|
37967
|
+
*
|
|
37968
|
+
* @param {object} target target object to modify.
|
|
37969
|
+
* @param {object} sources object(s) to merge into the target.
|
|
37970
|
+
* @returns {object} The merged object.
|
|
37971
|
+
* @member geo.util
|
|
37972
|
+
*/
|
|
37973
|
+
deepMerge: function deepMerge(target) {
|
|
37974
|
+
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
37975
|
+
sources[_key - 1] = arguments[_key];
|
|
37976
|
+
}
|
|
37977
|
+
for (var _i = 0, _sources = sources; _i < _sources.length; _i++) {
|
|
37978
|
+
var source = _sources[_i];
|
|
37979
|
+
if (source === null || source === undefined) {
|
|
37980
|
+
continue;
|
|
37981
|
+
}
|
|
37982
|
+
for (var key in source) {
|
|
37983
|
+
if (key === '__proto__' || target === source[key]) {
|
|
37984
|
+
continue;
|
|
37985
|
+
}
|
|
37986
|
+
var copy = source[key];
|
|
37987
|
+
if (copy && _typeof(copy) === 'object' && copy && (copy.constructor === undefined || copy.constructor === Object || Array.isArray(copy))) {
|
|
37988
|
+
var src = target[key];
|
|
37989
|
+
if (!Array.isArray(copy)) {
|
|
37990
|
+
if (_typeof(src) !== 'object' || Array.isArray(src)) {
|
|
37991
|
+
src = {};
|
|
37992
|
+
}
|
|
37993
|
+
} else if (!Array.isArray(src)) {
|
|
37994
|
+
src = [];
|
|
37995
|
+
}
|
|
37996
|
+
target[key] = util.deepMerge(src, copy);
|
|
37997
|
+
} else if (copy !== undefined) {
|
|
37998
|
+
target[key] = copy;
|
|
37999
|
+
}
|
|
38000
|
+
}
|
|
38001
|
+
}
|
|
38002
|
+
return target;
|
|
38003
|
+
},
|
|
37981
38004
|
/**
|
|
37982
38005
|
* Check svg image and html img tags. If the source is set, load images
|
|
37983
38006
|
* explicitly and convert them to local data:image references.
|
|
@@ -38692,7 +38715,6 @@ __webpack_require__(5637), __webpack_require__(208), __webpack_require__(269), /
|
|
|
38692
38715
|
* information.
|
|
38693
38716
|
*/
|
|
38694
38717
|
function createColoredMesh(feature, elementValues) {
|
|
38695
|
-
var $ = __webpack_require__(5616);
|
|
38696
38718
|
var util = __webpack_require__(642);
|
|
38697
38719
|
var mesh = feature.mesh,
|
|
38698
38720
|
valueFunc = feature.style.get('value'),
|
|
@@ -38720,14 +38742,14 @@ function createColoredMesh(feature, elementValues) {
|
|
|
38720
38742
|
result.stepped = stepped === undefined || stepped ? true : false;
|
|
38721
38743
|
/* Create the min/max colors and the color array */
|
|
38722
38744
|
result.colorMap = [];
|
|
38723
|
-
result.minColor =
|
|
38745
|
+
result.minColor = Object.assign({
|
|
38724
38746
|
a: mesh.get('minOpacity')(result) || 0
|
|
38725
38747
|
}, util.convertColor(mesh.get('minColor')(result)));
|
|
38726
|
-
result.maxColor =
|
|
38748
|
+
result.maxColor = Object.assign({
|
|
38727
38749
|
a: mesh.get('maxOpacity')(result) || 0
|
|
38728
38750
|
}, util.convertColor(mesh.get('maxColor')(result)));
|
|
38729
38751
|
mesh.get('colorRange')(result).forEach(function (clr, idx) {
|
|
38730
|
-
result.colorMap.push(
|
|
38752
|
+
result.colorMap.push(Object.assign({
|
|
38731
38753
|
a: opacityRange && opacityRange[idx] !== undefined ? opacityRange[idx] : 1
|
|
38732
38754
|
}, util.convertColor(clr)));
|
|
38733
38755
|
});
|
|
@@ -38786,7 +38808,6 @@ module.exports = {
|
|
|
38786
38808
|
|
|
38787
38809
|
/* eslint-disable camelcase */
|
|
38788
38810
|
|
|
38789
|
-
var $ = __webpack_require__(5616);
|
|
38790
38811
|
var webglRenderer = __webpack_require__(7945);
|
|
38791
38812
|
var _renderWindow, _supported;
|
|
38792
38813
|
module.exports = {};
|
|
@@ -38935,7 +38956,7 @@ module.exports.mockWebglRenderer = function mockWebglRenderer(supported) {
|
|
|
38935
38956
|
renderers = m_this.renderers(),
|
|
38936
38957
|
wsize = m_this.windowSize(),
|
|
38937
38958
|
wpos = m_this.windowPosition();
|
|
38938
|
-
m_context =
|
|
38959
|
+
m_context = Object.assign({}, vgl.GL, default_context);
|
|
38939
38960
|
for (i = 0; i < renderers.length; i += 1) {
|
|
38940
38961
|
if (renderers[i].width() > wsize[0] || renderers[i].width() === 0 || renderers[i].height() > wsize[1] || renderers[i].height() === 0) {
|
|
38941
38962
|
renderers[i].resize(wpos[0], wpos[1], wsize[0], wsize[1]);
|
|
@@ -39817,7 +39838,6 @@ var _vectorFeature = function vectorFeature(arg) {
|
|
|
39817
39838
|
if (!(this instanceof _vectorFeature)) {
|
|
39818
39839
|
return new _vectorFeature(arg);
|
|
39819
39840
|
}
|
|
39820
|
-
var $ = __webpack_require__(5616);
|
|
39821
39841
|
arg = arg || {};
|
|
39822
39842
|
feature.call(this, arg);
|
|
39823
39843
|
|
|
@@ -39874,7 +39894,7 @@ var _vectorFeature = function vectorFeature(arg) {
|
|
|
39874
39894
|
*/
|
|
39875
39895
|
this._init = function (arg) {
|
|
39876
39896
|
s_init.call(m_this, arg);
|
|
39877
|
-
var defaultStyle =
|
|
39897
|
+
var defaultStyle = Object.assign({}, {
|
|
39878
39898
|
strokeColor: 'black',
|
|
39879
39899
|
strokeWidth: 2.0,
|
|
39880
39900
|
strokeOpacity: 1.0,
|
|
@@ -39913,7 +39933,7 @@ module.exports = _vectorFeature;
|
|
|
39913
39933
|
* @constant
|
|
39914
39934
|
* @type {string}
|
|
39915
39935
|
*/
|
|
39916
|
-
module.exports = "1.12.
|
|
39936
|
+
module.exports = "1.12.6";
|
|
39917
39937
|
|
|
39918
39938
|
/***/ }),
|
|
39919
39939
|
|