geojs 1.10.12 → 1.10.13
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/.github/workflows/main.yml +2 -0
- package/geo.js +129 -59
- package/geo.lean.js +128 -58
- package/geo.lean.min.js +9 -9
- package/geo.min.js +11 -11
- package/package.json +7 -6
- package/src/pixelmapLayer.js +3 -1
package/geo.lean.js
CHANGED
|
@@ -3343,13 +3343,13 @@ module.exports = squareAnnotation;
|
|
|
3343
3343
|
/***/ 836:
|
|
3344
3344
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3345
3345
|
|
|
3346
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3347
3346
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3348
3347
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3349
3348
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3350
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
3351
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
3349
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
3350
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
3352
3351
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3352
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3353
3353
|
var inherit = __webpack_require__(5699);
|
|
3354
3354
|
var featureLayer = __webpack_require__(3715);
|
|
3355
3355
|
var geo_annotation = __webpack_require__(4213);
|
|
@@ -4748,38 +4748,39 @@ var annotationLayer = function annotationLayer(arg) {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
};
|
|
4750
4750
|
if (correspond) {
|
|
4751
|
-
|
|
4751
|
+
var _loop = function _loop() {
|
|
4752
4752
|
if (correspond[i] && correspond[i].indexOf(idx) >= 0) {
|
|
4753
|
-
var
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4753
|
+
var orig = annot[indices[i]];
|
|
4754
|
+
if (keep !== 'all' && keep !== 'none' && exact && exact[i] && exact[i].indexOf(idx) >= 0) {
|
|
4755
|
+
keepIds[orig.id()] = true;
|
|
4756
|
+
return {
|
|
4757
|
+
v: void 0
|
|
4758
|
+
};
|
|
4759
|
+
}
|
|
4760
|
+
if (keep !== 'all' && reusedIds[orig.id()] === undefined) {
|
|
4761
|
+
result.annotationId = orig.id();
|
|
4762
|
+
reusedIds[orig.id()] = true;
|
|
4763
|
+
}
|
|
4764
|
+
['name', 'description', 'label'].forEach(function (k) {
|
|
4765
|
+
if (orig[k](undefined, true)) {
|
|
4766
|
+
result[k] = orig[k](undefined, true);
|
|
4760
4767
|
}
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4768
|
+
});
|
|
4769
|
+
Object.entries(orig.options()).forEach(function (_ref) {
|
|
4770
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
4771
|
+
key = _ref2[0],
|
|
4772
|
+
value = _ref2[1];
|
|
4773
|
+
if (['showLabel', 'style'].indexOf(key) >= 0 || key.endsWith('Style')) {
|
|
4774
|
+
result[key] = value;
|
|
4764
4775
|
}
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
result[k] = orig[k](undefined, true);
|
|
4768
|
-
}
|
|
4769
|
-
});
|
|
4770
|
-
Object.entries(orig.options()).forEach(function (_ref) {
|
|
4771
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
4772
|
-
key = _ref2[0],
|
|
4773
|
-
value = _ref2[1];
|
|
4774
|
-
if (['showLabel', 'style'].indexOf(key) >= 0 || key.endsWith('Style')) {
|
|
4775
|
-
result[key] = value;
|
|
4776
|
-
}
|
|
4777
|
-
});
|
|
4778
|
-
return "break";
|
|
4779
|
-
}();
|
|
4780
|
-
if (_ret === "break") break;
|
|
4781
|
-
if (_typeof(_ret) === "object") return _ret.v;
|
|
4776
|
+
});
|
|
4777
|
+
return "break";
|
|
4782
4778
|
}
|
|
4779
|
+
};
|
|
4780
|
+
for (var i = 0; i < correspond.length; i += 1) {
|
|
4781
|
+
var _ret = _loop();
|
|
4782
|
+
if (_ret === "break") break;
|
|
4783
|
+
if (_typeof(_ret) === "object") return _ret.v;
|
|
4783
4784
|
}
|
|
4784
4785
|
}
|
|
4785
4786
|
polyAnnot.push(result);
|
|
@@ -21652,7 +21653,9 @@ var pixelmapLayer = function pixelmapLayer(arg) {
|
|
|
21652
21653
|
['modified', 'geoOn', 'geoOff', 'geoOnce'].forEach(function (funcName) {
|
|
21653
21654
|
var superFunc = m_this[funcName];
|
|
21654
21655
|
m_this[funcName] = function () {
|
|
21655
|
-
|
|
21656
|
+
if (!Array.isArray(arguments[0])) {
|
|
21657
|
+
m_pixelmapFeature[funcName].apply(this, arguments);
|
|
21658
|
+
}
|
|
21656
21659
|
return superFunc.apply(this, arguments);
|
|
21657
21660
|
};
|
|
21658
21661
|
});
|
|
@@ -24891,7 +24894,7 @@ module.exports = sceneObject;
|
|
|
24891
24894
|
* @constant
|
|
24892
24895
|
* @type {string}
|
|
24893
24896
|
*/
|
|
24894
|
-
module.exports = "
|
|
24897
|
+
module.exports = "3965f128094d5c5479272bde5f7e83479e925310";
|
|
24895
24898
|
|
|
24896
24899
|
/***/ }),
|
|
24897
24900
|
|
|
@@ -35841,7 +35844,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
35841
35844
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
35842
35845
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
35843
35846
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
35844
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
35847
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
35845
35848
|
var PolyBool = __webpack_require__(3291);
|
|
35846
35849
|
var geo_map = __webpack_require__(2804);
|
|
35847
35850
|
var util = __webpack_require__(8340);
|
|
@@ -36769,7 +36772,7 @@ module.exports = vectorFeature;
|
|
|
36769
36772
|
* @constant
|
|
36770
36773
|
* @type {string}
|
|
36771
36774
|
*/
|
|
36772
|
-
module.exports = "1.10.
|
|
36775
|
+
module.exports = "1.10.13";
|
|
36773
36776
|
|
|
36774
36777
|
/***/ }),
|
|
36775
36778
|
|
|
@@ -41878,10 +41881,7 @@ module.exports = function (item) {
|
|
|
41878
41881
|
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
|
|
41879
41882
|
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
|
|
41880
41883
|
var sourceMapping = "/*# ".concat(data, " */");
|
|
41881
|
-
|
|
41882
|
-
return "/*# sourceURL=".concat(cssMapping.sourceRoot || "").concat(source, " */");
|
|
41883
|
-
});
|
|
41884
|
-
return [content].concat(sourceURLs).concat([sourceMapping]).join("\n");
|
|
41884
|
+
return [content].concat([sourceMapping]).join("\n");
|
|
41885
41885
|
}
|
|
41886
41886
|
return [content].join("\n");
|
|
41887
41887
|
};
|
|
@@ -58748,7 +58748,7 @@ return vgl;
|
|
|
58748
58748
|
/***/ (function(module, exports) {
|
|
58749
58749
|
|
|
58750
58750
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
58751
|
-
* jQuery JavaScript Library v3.6.
|
|
58751
|
+
* jQuery JavaScript Library v3.6.4
|
|
58752
58752
|
* https://jquery.com/
|
|
58753
58753
|
*
|
|
58754
58754
|
* Includes Sizzle.js
|
|
@@ -58758,7 +58758,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
58758
58758
|
* Released under the MIT license
|
|
58759
58759
|
* https://jquery.org/license
|
|
58760
58760
|
*
|
|
58761
|
-
* Date:
|
|
58761
|
+
* Date: 2023-03-08T15:28Z
|
|
58762
58762
|
*/
|
|
58763
58763
|
( function( global, factory ) {
|
|
58764
58764
|
|
|
@@ -58900,7 +58900,7 @@ function toType( obj ) {
|
|
|
58900
58900
|
|
|
58901
58901
|
|
|
58902
58902
|
var
|
|
58903
|
-
version = "3.6.
|
|
58903
|
+
version = "3.6.4",
|
|
58904
58904
|
|
|
58905
58905
|
// Define a local copy of jQuery
|
|
58906
58906
|
jQuery = function( selector, context ) {
|
|
@@ -59271,14 +59271,14 @@ function isArrayLike( obj ) {
|
|
|
59271
59271
|
}
|
|
59272
59272
|
var Sizzle =
|
|
59273
59273
|
/*!
|
|
59274
|
-
* Sizzle CSS Selector Engine v2.3.
|
|
59274
|
+
* Sizzle CSS Selector Engine v2.3.10
|
|
59275
59275
|
* https://sizzlejs.com/
|
|
59276
59276
|
*
|
|
59277
59277
|
* Copyright JS Foundation and other contributors
|
|
59278
59278
|
* Released under the MIT license
|
|
59279
59279
|
* https://js.foundation/
|
|
59280
59280
|
*
|
|
59281
|
-
* Date:
|
|
59281
|
+
* Date: 2023-02-14
|
|
59282
59282
|
*/
|
|
59283
59283
|
( function( window ) {
|
|
59284
59284
|
var i,
|
|
@@ -59382,7 +59382,7 @@ var i,
|
|
|
59382
59382
|
whitespace + "+$", "g" ),
|
|
59383
59383
|
|
|
59384
59384
|
rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
|
|
59385
|
-
|
|
59385
|
+
rleadingCombinator = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
|
|
59386
59386
|
"*" ),
|
|
59387
59387
|
rdescend = new RegExp( whitespace + "|>" ),
|
|
59388
59388
|
|
|
@@ -59599,7 +59599,7 @@ function Sizzle( selector, context, results, seed ) {
|
|
|
59599
59599
|
// as such selectors are not recognized by querySelectorAll.
|
|
59600
59600
|
// Thanks to Andrew Dupont for this technique.
|
|
59601
59601
|
if ( nodeType === 1 &&
|
|
59602
|
-
( rdescend.test( selector ) ||
|
|
59602
|
+
( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) {
|
|
59603
59603
|
|
|
59604
59604
|
// Expand context for sibling selectors
|
|
59605
59605
|
newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
|
|
@@ -59923,6 +59923,24 @@ setDocument = Sizzle.setDocument = function( node ) {
|
|
|
59923
59923
|
!el.querySelectorAll( ":scope fieldset div" ).length;
|
|
59924
59924
|
} );
|
|
59925
59925
|
|
|
59926
|
+
// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+
|
|
59927
|
+
// Make sure the the `:has()` argument is parsed unforgivingly.
|
|
59928
|
+
// We include `*` in the test to detect buggy implementations that are
|
|
59929
|
+
// _selectively_ forgiving (specifically when the list includes at least
|
|
59930
|
+
// one valid selector).
|
|
59931
|
+
// Note that we treat complete lack of support for `:has()` as if it were
|
|
59932
|
+
// spec-compliant support, which is fine because use of `:has()` in such
|
|
59933
|
+
// environments will fail in the qSA path and fall back to jQuery traversal
|
|
59934
|
+
// anyway.
|
|
59935
|
+
support.cssHas = assert( function() {
|
|
59936
|
+
try {
|
|
59937
|
+
document.querySelector( ":has(*,:jqfake)" );
|
|
59938
|
+
return false;
|
|
59939
|
+
} catch ( e ) {
|
|
59940
|
+
return true;
|
|
59941
|
+
}
|
|
59942
|
+
} );
|
|
59943
|
+
|
|
59926
59944
|
/* Attributes
|
|
59927
59945
|
---------------------------------------------------------------------- */
|
|
59928
59946
|
|
|
@@ -60189,6 +60207,17 @@ setDocument = Sizzle.setDocument = function( node ) {
|
|
|
60189
60207
|
} );
|
|
60190
60208
|
}
|
|
60191
60209
|
|
|
60210
|
+
if ( !support.cssHas ) {
|
|
60211
|
+
|
|
60212
|
+
// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+
|
|
60213
|
+
// Our regular `try-catch` mechanism fails to detect natively-unsupported
|
|
60214
|
+
// pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`)
|
|
60215
|
+
// in browsers that parse the `:has()` argument as a forgiving selector list.
|
|
60216
|
+
// https://drafts.csswg.org/selectors/#relational now requires the argument
|
|
60217
|
+
// to be parsed unforgivingly, but browsers have not yet fully adjusted.
|
|
60218
|
+
rbuggyQSA.push( ":has" );
|
|
60219
|
+
}
|
|
60220
|
+
|
|
60192
60221
|
rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
|
|
60193
60222
|
rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) );
|
|
60194
60223
|
|
|
@@ -60201,7 +60230,14 @@ setDocument = Sizzle.setDocument = function( node ) {
|
|
|
60201
60230
|
// As in, an element does not contain itself
|
|
60202
60231
|
contains = hasCompare || rnative.test( docElem.contains ) ?
|
|
60203
60232
|
function( a, b ) {
|
|
60204
|
-
|
|
60233
|
+
|
|
60234
|
+
// Support: IE <9 only
|
|
60235
|
+
// IE doesn't have `contains` on `document` so we need to check for
|
|
60236
|
+
// `documentElement` presence.
|
|
60237
|
+
// We need to fall back to `a` when `documentElement` is missing
|
|
60238
|
+
// as `ownerDocument` of elements within `<template/>` may have
|
|
60239
|
+
// a null one - a default behavior of all modern browsers.
|
|
60240
|
+
var adown = a.nodeType === 9 && a.documentElement || a,
|
|
60205
60241
|
bup = b && b.parentNode;
|
|
60206
60242
|
return a === bup || !!( bup && bup.nodeType === 1 && (
|
|
60207
60243
|
adown.contains ?
|
|
@@ -60991,7 +61027,7 @@ Expr = Sizzle.selectors = {
|
|
|
60991
61027
|
return elem.nodeName.toLowerCase() === "input" &&
|
|
60992
61028
|
elem.type === "text" &&
|
|
60993
61029
|
|
|
60994
|
-
// Support: IE<
|
|
61030
|
+
// Support: IE <10 only
|
|
60995
61031
|
// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
|
|
60996
61032
|
( ( attr = elem.getAttribute( "type" ) ) == null ||
|
|
60997
61033
|
attr.toLowerCase() === "text" );
|
|
@@ -61091,7 +61127,7 @@ tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
|
|
|
61091
61127
|
matched = false;
|
|
61092
61128
|
|
|
61093
61129
|
// Combinators
|
|
61094
|
-
if ( ( match =
|
|
61130
|
+
if ( ( match = rleadingCombinator.exec( soFar ) ) ) {
|
|
61095
61131
|
matched = match.shift();
|
|
61096
61132
|
tokens.push( {
|
|
61097
61133
|
value: matched,
|
|
@@ -65357,17 +65393,37 @@ function curCSS( elem, name, computed ) {
|
|
|
65357
65393
|
// .css('filter') (IE 9 only, trac-12537)
|
|
65358
65394
|
// .css('--customProperty) (gh-3144)
|
|
65359
65395
|
if ( computed ) {
|
|
65396
|
+
|
|
65397
|
+
// Support: IE <=9 - 11+
|
|
65398
|
+
// IE only supports `"float"` in `getPropertyValue`; in computed styles
|
|
65399
|
+
// it's only available as `"cssFloat"`. We no longer modify properties
|
|
65400
|
+
// sent to `.css()` apart from camelCasing, so we need to check both.
|
|
65401
|
+
// Normally, this would create difference in behavior: if
|
|
65402
|
+
// `getPropertyValue` returns an empty string, the value returned
|
|
65403
|
+
// by `.css()` would be `undefined`. This is usually the case for
|
|
65404
|
+
// disconnected elements. However, in IE even disconnected elements
|
|
65405
|
+
// with no styles return `"none"` for `getPropertyValue( "float" )`
|
|
65360
65406
|
ret = computed.getPropertyValue( name ) || computed[ name ];
|
|
65361
65407
|
|
|
65362
|
-
|
|
65363
|
-
if ( isCustomProp ) {
|
|
65408
|
+
if ( isCustomProp && ret ) {
|
|
65364
65409
|
|
|
65365
|
-
//
|
|
65410
|
+
// Support: Firefox 105+, Chrome <=105+
|
|
65411
|
+
// Spec requires trimming whitespace for custom properties (gh-4926).
|
|
65412
|
+
// Firefox only trims leading whitespace. Chrome just collapses
|
|
65413
|
+
// both leading & trailing whitespace to a single space.
|
|
65414
|
+
//
|
|
65415
|
+
// Fall back to `undefined` if empty string returned.
|
|
65416
|
+
// This collapses a missing definition with property defined
|
|
65417
|
+
// and set to an empty string but there's no standard API
|
|
65418
|
+
// allowing us to differentiate them without a performance penalty
|
|
65419
|
+
// and returning `undefined` aligns with older jQuery.
|
|
65420
|
+
//
|
|
65421
|
+
// rtrimCSS treats U+000D CARRIAGE RETURN and U+000C FORM FEED
|
|
65366
65422
|
// as whitespace while CSS does not, but this is not a problem
|
|
65367
65423
|
// because CSS preprocessing replaces them with U+000A LINE FEED
|
|
65368
65424
|
// (which *is* CSS whitespace)
|
|
65369
65425
|
// https://www.w3.org/TR/css-syntax-3/#input-preprocessing
|
|
65370
|
-
ret = ret.replace( rtrimCSS, "$1" );
|
|
65426
|
+
ret = ret.replace( rtrimCSS, "$1" ) || undefined;
|
|
65371
65427
|
}
|
|
65372
65428
|
|
|
65373
65429
|
if ( ret === "" && !isAttached( elem ) ) {
|
|
@@ -75157,14 +75213,25 @@ function checkCoord(num) {
|
|
|
75157
75213
|
|
|
75158
75214
|
|
|
75159
75215
|
function checkNotWGS(source, dest) {
|
|
75160
|
-
return (
|
|
75216
|
+
return (
|
|
75217
|
+
(source.datum.datum_type === values/* PJD_3PARAM */.cN || source.datum.datum_type === values/* PJD_7PARAM */.iM || source.datum.datum_type === values/* PJD_GRIDSHIFT */.Hp) && dest.datumCode !== 'WGS84') ||
|
|
75218
|
+
((dest.datum.datum_type === values/* PJD_3PARAM */.cN || dest.datum.datum_type === values/* PJD_7PARAM */.iM || dest.datum.datum_type === values/* PJD_GRIDSHIFT */.Hp) && source.datumCode !== 'WGS84');
|
|
75161
75219
|
}
|
|
75162
75220
|
|
|
75163
75221
|
function transform(source, dest, point, enforceAxis) {
|
|
75164
75222
|
var wgs84;
|
|
75165
75223
|
if (Array.isArray(point)) {
|
|
75166
75224
|
point = toPoint(point);
|
|
75225
|
+
} else {
|
|
75226
|
+
// Clone the point object so inputs don't get modified
|
|
75227
|
+
point = {
|
|
75228
|
+
x: point.x,
|
|
75229
|
+
y: point.y,
|
|
75230
|
+
z: point.z,
|
|
75231
|
+
m: point.m
|
|
75232
|
+
};
|
|
75167
75233
|
}
|
|
75234
|
+
var hasZ = point.z !== undefined;
|
|
75168
75235
|
checkSanity(point);
|
|
75169
75236
|
// Workaround for datum shifts towgs84, if either source or destination projection is not wgs84
|
|
75170
75237
|
if (source.datum && dest.datum && checkNotWGS(source, dest)) {
|
|
@@ -75239,6 +75306,9 @@ function transform(source, dest, point, enforceAxis) {
|
|
|
75239
75306
|
return adjust_axis(dest, true, point);
|
|
75240
75307
|
}
|
|
75241
75308
|
|
|
75309
|
+
if (!hasZ) {
|
|
75310
|
+
delete point.z;
|
|
75311
|
+
}
|
|
75242
75312
|
return point;
|
|
75243
75313
|
}
|
|
75244
75314
|
|
|
@@ -76296,18 +76366,18 @@ function init() {
|
|
|
76296
76366
|
this.t1 = this.sin_po;
|
|
76297
76367
|
this.con = this.sin_po;
|
|
76298
76368
|
this.ms1 = (0,_common_msfnz__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this.e3, this.sin_po, this.cos_po);
|
|
76299
|
-
this.qs1 = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_po
|
|
76369
|
+
this.qs1 = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_po);
|
|
76300
76370
|
|
|
76301
76371
|
this.sin_po = Math.sin(this.lat2);
|
|
76302
76372
|
this.cos_po = Math.cos(this.lat2);
|
|
76303
76373
|
this.t2 = this.sin_po;
|
|
76304
76374
|
this.ms2 = (0,_common_msfnz__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this.e3, this.sin_po, this.cos_po);
|
|
76305
|
-
this.qs2 = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_po
|
|
76375
|
+
this.qs2 = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_po);
|
|
76306
76376
|
|
|
76307
76377
|
this.sin_po = Math.sin(this.lat0);
|
|
76308
76378
|
this.cos_po = Math.cos(this.lat0);
|
|
76309
76379
|
this.t3 = this.sin_po;
|
|
76310
|
-
this.qs0 = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_po
|
|
76380
|
+
this.qs0 = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_po);
|
|
76311
76381
|
|
|
76312
76382
|
if (Math.abs(this.lat1 - this.lat2) > _constants_values__WEBPACK_IMPORTED_MODULE_1__/* .EPSLN */ .cp) {
|
|
76313
76383
|
this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1);
|
|
@@ -76329,7 +76399,7 @@ function forward(p) {
|
|
|
76329
76399
|
this.sin_phi = Math.sin(lat);
|
|
76330
76400
|
this.cos_phi = Math.cos(lat);
|
|
76331
76401
|
|
|
76332
|
-
var qs = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_phi
|
|
76402
|
+
var qs = (0,_common_qsfnz__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this.e3, this.sin_phi);
|
|
76333
76403
|
var rh1 = this.a * Math.sqrt(this.c - this.ns0 * qs) / this.ns0;
|
|
76334
76404
|
var theta = this.ns0 * (0,_common_adjust_lon__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(lon - this.long0);
|
|
76335
76405
|
var x = rh1 * Math.sin(theta) + this.x0;
|