@vtx/cs-map 1.0.19 → 1.0.20
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/lib/_util/mapTool.js +0 -1
- package/lib/_util/mapTool.js.map +1 -1
- package/lib/assets/base-img-1.png +0 -0
- package/lib/assets/base-img-2.png +0 -0
- package/lib/assets/base-img-3.png +0 -0
- package/lib/assets/base-img-4.png +0 -0
- package/lib/assets/base-img-5.png +0 -0
- package/lib/assets/base-img.png +0 -0
- package/lib/cesium-tiles-layer/index.js +18 -4
- package/lib/cesium-tiles-layer/index.js.map +1 -1
- package/lib/gif-dom-layer/index.js +5 -5
- package/lib/gif-dom-layer/index.js.map +1 -1
- package/lib/highlight-layer/HighlightLayer.js +6 -5
- package/lib/highlight-layer/HighlightLayer.js.map +1 -1
- package/lib/map/Layers.js +5 -1
- package/lib/map/Layers.js.map +1 -1
- package/lib/map/base/imagery/baidu/BaiduImageryProvider.js +3 -0
- package/lib/map/base/imagery/baidu/BaiduImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js +38 -66
- package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js.map +1 -1
- package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js +40 -45
- package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js.map +1 -1
- package/lib/map/base/imagery/geoq/GeoQImageryProvider.js +5 -4
- package/lib/map/base/imagery/geoq/GeoQImageryProvider.js.map +1 -1
- package/lib/map/base/imagery/tdt/TdtImageryProvider.js +2 -2
- package/lib/map/base/imagery/tdt/TdtImageryProvider.js.map +1 -1
- package/lib/map/base/index.js +187 -3
- package/lib/map/base/index.js.map +1 -1
- package/lib/map/index.js +60 -33
- package/lib/map/index.js.map +1 -1
- package/lib/map/style/index.css +0 -1
- package/lib/map/style/index.less +0 -1
- package/lib/tools/base-map-switch/index.js +103 -0
- package/lib/tools/base-map-switch/index.js.map +1 -0
- package/lib/tools/dimension-switch/index.js +37 -0
- package/lib/tools/dimension-switch/index.js.map +1 -0
- package/lib/tools/index.js +13 -1
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/style/index.css +56 -0
- package/lib/tools/style/index.less +72 -0
- package/package.json +1 -1
- package/lib/tools/base-map-switch/base/imagery/amap/AmapImageryProvider.js +0 -52
- package/lib/tools/base-map-switch/base/imagery/amap/AmapImageryProvider.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/amap/AmapMercatorTilingScheme.js +0 -52
- package/lib/tools/base-map-switch/base/imagery/amap/AmapMercatorTilingScheme.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/baidu/BaiduImageryProvider.js +0 -152
- package/lib/tools/base-map-switch/base/imagery/baidu/BaiduImageryProvider.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/baidu/BaiduMercatorProjection.js +0 -383
- package/lib/tools/base-map-switch/base/imagery/baidu/BaiduMercatorProjection.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/baidu/BaiduMercatorTilingScheme.js +0 -125
- package/lib/tools/base-map-switch/base/imagery/baidu/BaiduMercatorTilingScheme.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/geoq/GeoQImageryProvider.js +0 -53
- package/lib/tools/base-map-switch/base/imagery/geoq/GeoQImageryProvider.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/google/GoogleImageryProvider.js +0 -47
- package/lib/tools/base-map-switch/base/imagery/google/GoogleImageryProvider.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/tdt/TdtImageryProvider.js +0 -44
- package/lib/tools/base-map-switch/base/imagery/tdt/TdtImageryProvider.js.map +0 -1
- package/lib/tools/base-map-switch/base/imagery/tencent/TencentImageryProvider.js +0 -57
- package/lib/tools/base-map-switch/base/imagery/tencent/TencentImageryProvider.js.map +0 -1
- package/lib/tools/base-map-switch/base/index.js +0 -23
- package/lib/tools/base-map-switch/base/index.js.map +0 -1
- package/lib/tools/base-map-switch/base/transform/CoordTransform.js +0 -179
- package/lib/tools/base-map-switch/base/transform/CoordTransform.js.map +0 -1
|
@@ -139,3 +139,59 @@
|
|
|
139
139
|
.cs-search-wrap .ant-select-item-group {
|
|
140
140
|
color: #aaa;
|
|
141
141
|
}
|
|
142
|
+
.base-map-switch-active {
|
|
143
|
+
width: 80%;
|
|
144
|
+
height: 80%;
|
|
145
|
+
border-radius: 50%;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
}
|
|
148
|
+
.base-map-switch-list-wrap {
|
|
149
|
+
width: 300px;
|
|
150
|
+
}
|
|
151
|
+
.base-map-switch-list-wrap .base-map-switch-list-title {
|
|
152
|
+
font-size: 18px;
|
|
153
|
+
}
|
|
154
|
+
.base-map-switch-list-wrap .base-map-switch-list {
|
|
155
|
+
max-height: 400px;
|
|
156
|
+
overflow-y: scroll;
|
|
157
|
+
}
|
|
158
|
+
.base-map-switch-list-wrap .base-map-switch-list::-webkit-scrollbar {
|
|
159
|
+
/*滚动条整体样式*/
|
|
160
|
+
width: 0;
|
|
161
|
+
/*高宽分别对应横竖滚动条的尺寸*/
|
|
162
|
+
height: 0;
|
|
163
|
+
}
|
|
164
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-label {
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
margin: 5px 0;
|
|
167
|
+
}
|
|
168
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-item-wrap {
|
|
169
|
+
border: 1px solid #888;
|
|
170
|
+
border-radius: 5px;
|
|
171
|
+
padding: 5px;
|
|
172
|
+
}
|
|
173
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-item {
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
}
|
|
176
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-item .base-map-switch-list-item-img {
|
|
177
|
+
width: 100%;
|
|
178
|
+
border: solid 1px #444;
|
|
179
|
+
border-radius: 9px;
|
|
180
|
+
}
|
|
181
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-item .base-map-switch-list-item-label {
|
|
182
|
+
margin-top: 4px;
|
|
183
|
+
text-align: center;
|
|
184
|
+
font-size: 12px;
|
|
185
|
+
color: #FFF;
|
|
186
|
+
}
|
|
187
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-item:hover .base-map-switch-list-item-img {
|
|
188
|
+
border-color: #fff;
|
|
189
|
+
-webkit-box-shadow: 0 0 8px #fff, 0 0 8px #fff;
|
|
190
|
+
box-shadow: 0 0 8px #fff, 0 0 8px #fff;
|
|
191
|
+
}
|
|
192
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-item-active .base-map-switch-list-item-img {
|
|
193
|
+
border: double 4px #bdecf8;
|
|
194
|
+
}
|
|
195
|
+
.base-map-switch-list-wrap .base-map-switch-list .base-map-switch-list-item-active .base-map-switch-list-item-label {
|
|
196
|
+
color: #bdecf8;
|
|
197
|
+
}
|
|
@@ -139,3 +139,75 @@
|
|
|
139
139
|
color: #aaa;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
+
|
|
143
|
+
.base-map-switch-active {
|
|
144
|
+
width: 80%;
|
|
145
|
+
height: 80%;
|
|
146
|
+
border-radius: 50%;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.base-map-switch-list-wrap {
|
|
151
|
+
width: 300px;
|
|
152
|
+
|
|
153
|
+
.base-map-switch-list-title {
|
|
154
|
+
font-size: 18px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.base-map-switch-list {
|
|
158
|
+
max-height: 400px;
|
|
159
|
+
overflow-y: scroll;
|
|
160
|
+
|
|
161
|
+
&::-webkit-scrollbar {
|
|
162
|
+
/*滚动条整体样式*/
|
|
163
|
+
width: 0; /*高宽分别对应横竖滚动条的尺寸*/
|
|
164
|
+
height: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.base-map-switch-list-label {
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
margin: 5px 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.base-map-switch-list-item-wrap {
|
|
173
|
+
border: 1px solid #888;
|
|
174
|
+
border-radius: 5px;
|
|
175
|
+
padding: 5px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.base-map-switch-list-item {
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
|
|
181
|
+
.base-map-switch-list-item-img {
|
|
182
|
+
width: 100%;
|
|
183
|
+
border: solid 1px #444;
|
|
184
|
+
border-radius: 9px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.base-map-switch-list-item-label {
|
|
188
|
+
margin-top: 4px;
|
|
189
|
+
text-align: center;
|
|
190
|
+
font-size: 12px;
|
|
191
|
+
color: #FFF;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&:hover {
|
|
195
|
+
.base-map-switch-list-item-img {
|
|
196
|
+
border-color: #fff;
|
|
197
|
+
box-shadow: 0 0 8px #fff, 0 0 8px #fff;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.base-map-switch-list-item-active {
|
|
203
|
+
.base-map-switch-list-item-img {
|
|
204
|
+
border: double 4px rgb(189, 236, 248);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.base-map-switch-list-item-label {
|
|
208
|
+
color: rgb(189, 236, 248);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
package/package.json
CHANGED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var Cesium = _interopRequireWildcard(require("cesium"));
|
|
9
|
-
var _AmapMercatorTilingScheme = _interopRequireDefault(require("./AmapMercatorTilingScheme"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
14
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
|
|
25
|
-
* @Author: Caven
|
|
26
|
-
* @Date: 2020-01-15 20:31:28
|
|
27
|
-
*/
|
|
28
|
-
var URL = {
|
|
29
|
-
IMG: 'https://webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
|
|
30
|
-
ELEC: 'https://webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
|
|
31
|
-
CVA: 'https://webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'
|
|
32
|
-
};
|
|
33
|
-
var AmapImageryProvider = /*#__PURE__*/function (_Cesium$UrlTemplateIm) {
|
|
34
|
-
_inherits(AmapImageryProvider, _Cesium$UrlTemplateIm);
|
|
35
|
-
var _super = _createSuper(AmapImageryProvider);
|
|
36
|
-
function AmapImageryProvider() {
|
|
37
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
38
|
-
_classCallCheck(this, AmapImageryProvider);
|
|
39
|
-
options['url'] = options['url'] || URL[options.style || 'ELEC'];
|
|
40
|
-
if (!options.subdomains || !options.subdomains.length) {
|
|
41
|
-
options['subdomains'] = ['01', '02', '03', '04'];
|
|
42
|
-
}
|
|
43
|
-
if (options.crs === 'WGS84') {
|
|
44
|
-
options['tilingScheme'] = new _AmapMercatorTilingScheme["default"]();
|
|
45
|
-
}
|
|
46
|
-
return _super.call(this, options);
|
|
47
|
-
}
|
|
48
|
-
return _createClass(AmapImageryProvider);
|
|
49
|
-
}(Cesium.UrlTemplateImageryProvider);
|
|
50
|
-
var _default = AmapImageryProvider;
|
|
51
|
-
exports["default"] = _default;
|
|
52
|
-
//# sourceMappingURL=AmapImageryProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AmapImageryProvider.js","names":["Cesium","_interopRequireWildcard","require","_AmapMercatorTilingScheme","_interopRequireDefault","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","_toPropertyKey","_createClass","Constructor","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_classCallCheck","instance","_inherits","subClass","superClass","create","constructor","value","_setPrototypeOf","o","p","setPrototypeOf","bind","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","URL","IMG","ELEC","CVA","AmapImageryProvider","_Cesium$UrlTemplateIm","_super","options","style","subdomains","crs","AmapMercatorTilingScheme","UrlTemplateImageryProvider","_default","exports"],"sources":["tools/base-map-switch/base/imagery/amap/AmapImageryProvider.js"],"sourcesContent":["/**\n * @Author: Caven\n * @Date: 2020-01-15 20:31:28\n */\nimport * as Cesium from 'cesium';\n\nimport AmapMercatorTilingScheme from './AmapMercatorTilingScheme'\n\nlet URL = {\n IMG: 'https://webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',\n ELEC: 'https://webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',\n CVA: 'https://webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',\n}\n\n\nclass AmapImageryProvider extends Cesium.UrlTemplateImageryProvider {\n constructor(options = {}) {\n options['url'] = options['url'] || URL[options.style || 'ELEC'];\n if (!options.subdomains || !options.subdomains.length) {\n options['subdomains'] = ['01', '02', '03', '04']\n }\n if (options.crs === 'WGS84') {\n options['tilingScheme'] = new AmapMercatorTilingScheme()\n }\n super(options)\n }\n}\nexport default AmapImageryProvider\n"],"mappings":";;;;;;;AAIA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAiE,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAI,GAAA,EAAAG,WAAA,SAAAA,WAAA,IAAAH,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAO,OAAA,CAAAP,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAQ,KAAA,GAAAN,wBAAA,CAAAC,WAAA,OAAAK,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAhB,GAAA,QAAAgB,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAnB,GAAA,EAAAgB,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAf,GAAA,EAAAgB,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA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AO,CAACE,UAAU,CAACpE,MAAM,EAAE;MACrDkE,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;IAClD;IACA,IAAIA,OAAO,CAACG,GAAG,KAAK,OAAO,EAAE;MAC3BH,OAAO,CAAC,cAAc,CAAC,GAAG,IAAII,oCAAwB,CAAC,CAAC;IAC1D;IAAC,OAAAL,MAAA,CAAAxE,IAAA,OACKyE,OAAO;EACf;EAAC,OAAA5D,YAAA,CAAAyD,mBAAA;AAAA,EAV+B9F,MAAM,CAACsG,0BAA0B;AAAA,IAAAC,QAAA,GAYpDT,mBAAmB;AAAAU,OAAA,cAAAD,QAAA"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var Cesium = _interopRequireWildcard(require("cesium"));
|
|
9
|
-
var _CoordTransform = _interopRequireDefault(require("../../transform/CoordTransform"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
14
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**
|
|
25
|
-
* @Author: Caven
|
|
26
|
-
* @Date: 2021-01-31 22:07:05
|
|
27
|
-
*/
|
|
28
|
-
var AmapMercatorTilingScheme = /*#__PURE__*/function (_Cesium$WebMercatorTi) {
|
|
29
|
-
_inherits(AmapMercatorTilingScheme, _Cesium$WebMercatorTi);
|
|
30
|
-
var _super = _createSuper(AmapMercatorTilingScheme);
|
|
31
|
-
function AmapMercatorTilingScheme(options) {
|
|
32
|
-
var _this;
|
|
33
|
-
_classCallCheck(this, AmapMercatorTilingScheme);
|
|
34
|
-
_this = _super.call(this, options);
|
|
35
|
-
var projection = new Cesium.WebMercatorProjection();
|
|
36
|
-
_this._projection.project = function (cartographic, result) {
|
|
37
|
-
result = _CoordTransform["default"].WGS84ToGCJ02(Cesium.Math.toDegrees(cartographic.longitude), Cesium.Math.toDegrees(cartographic.latitude));
|
|
38
|
-
result = projection.project(new Cesium.Cartographic(Cesium.Math.toRadians(result[0]), Cesium.Math.toRadians(result[1])));
|
|
39
|
-
return new Cesium.Cartesian2(result.x, result.y);
|
|
40
|
-
};
|
|
41
|
-
_this._projection.unproject = function (cartesian, result) {
|
|
42
|
-
var cartographic = projection.unproject(cartesian);
|
|
43
|
-
result = _CoordTransform["default"].GCJ02ToWGS84(Cesium.Math.toDegrees(cartographic.longitude), Cesium.Math.toDegrees(cartographic.latitude));
|
|
44
|
-
return new Cesium.Cartographic(Cesium.Math.toRadians(result[0]), Cesium.Math.toRadians(result[1]));
|
|
45
|
-
};
|
|
46
|
-
return _this;
|
|
47
|
-
}
|
|
48
|
-
return _createClass(AmapMercatorTilingScheme);
|
|
49
|
-
}(Cesium.WebMercatorTilingScheme);
|
|
50
|
-
var _default = AmapMercatorTilingScheme;
|
|
51
|
-
exports["default"] = _default;
|
|
52
|
-
//# sourceMappingURL=AmapMercatorTilingScheme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AmapMercatorTilingScheme.js","names":["Cesium","_interopRequireWildcard","require","_CoordTransform","_interopRequireDefault","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","_toPropertyKey","_createClass","Constructor","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_classCallCheck","instance","_inherits","subClass","superClass","create","constructor","value","_setPrototypeOf","o","p","setPrototypeOf","bind","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","AmapMercatorTilingScheme","_Cesium$WebMercatorTi","_super","options","_this","projection","WebMercatorProjection","_projection","project","cartographic","CoordTransform","WGS84ToGCJ02","Math","toDegrees","longitude","latitude","Cartographic","toRadians","Cartesian2","x","y","unproject","cartesian","GCJ02ToWGS84","WebMercatorTilingScheme","_default","exports"],"sources":["tools/base-map-switch/base/imagery/amap/AmapMercatorTilingScheme.js"],"sourcesContent":["/**\n * @Author: Caven\n * @Date: 2021-01-31 22:07:05\n */\nimport * as Cesium from 'cesium';\n\nimport CoordTransform from '../../transform/CoordTransform'\n\nclass AmapMercatorTilingScheme extends Cesium.WebMercatorTilingScheme {\n constructor(options) {\n super(options)\n let projection = new Cesium.WebMercatorProjection()\n this._projection.project = function(cartographic, result) {\n result = CoordTransform.WGS84ToGCJ02(\n Cesium.Math.toDegrees(cartographic.longitude),\n Cesium.Math.toDegrees(cartographic.latitude)\n )\n result = projection.project(\n new Cesium.Cartographic(\n Cesium.Math.toRadians(result[0]),\n Cesium.Math.toRadians(result[1])\n )\n )\n return new Cesium.Cartesian2(result.x, result.y)\n }\n this._projection.unproject = function(cartesian, result) {\n let cartographic = projection.unproject(cartesian)\n result = CoordTransform.GCJ02ToWGS84(\n Cesium.Math.toDegrees(cartographic.longitude),\n Cesium.Math.toDegrees(cartographic.latitude)\n )\n return new Cesium.Cartographic(\n Cesium.Math.toRadians(result[0]),\n Cesium.Math.toRadians(result[1])\n )\n }\n }\n}\n\nexport default AmapMercatorTilingScheme\n"],"mappings":";;;;;;;AAIA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA2D,SAAAE,uBAAAC,GAAA,WAAAA,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C,EAAEnC,MAAM,CAACoC,CAAC,CAAC;IAClD,CAAC;IACDhB,KAAA,CAAKG,WAAW,CAACc,SAAS,GAAG,UAASC,SAAS,EAAEtC,MAAM,EAAE;MACvD,IAAIyB,YAAY,GAAGJ,UAAU,CAACgB,SAAS,CAACC,SAAS,CAAC;MAClDtC,MAAM,GAAG0B,0BAAc,CAACa,YAAY,CAClCjH,MAAM,CAACsG,IAAI,CAACC,SAAS,CAACJ,YAAY,CAACK,SAAS,CAAC,EAC7CxG,MAAM,CAACsG,IAAI,CAACC,SAAS,CAACJ,YAAY,CAACM,QAAQ,CAC7C,CAAC;MACD,OAAO,IAAIzG,MAAM,CAAC0G,YAAY,CAC5B1G,MAAM,CAACsG,IAAI,CAACK,SAAS,CAACjC,MAAM,CAAC,CAAC,CAAC,CAAC,EAChC1E,MAAM,CAACsG,IAAI,CAACK,SAAS,CAACjC,MAAM,CAAC,CAAC,CAAC,CACjC,CAAC;IACH,CAAC;IAAA,OAAAoB,KAAA;EACH;EAAC,OAAAzD,YAAA,CAAAqD,wBAAA;AAAA,EA5BoC1F,MAAM,CAACkH,uBAAuB;AAAA,IAAAC,QAAA,GA+BtDzB,wBAAwB;AAAA0B,OAAA,cAAAD,QAAA"}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var Cesium = _interopRequireWildcard(require("cesium"));
|
|
8
|
-
var _BaiduMercatorTilingScheme = _interopRequireDefault(require("./BaiduMercatorTilingScheme"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
18
|
-
* @Author: Caven
|
|
19
|
-
* @Date: 2020-01-15 20:27:27
|
|
20
|
-
*/
|
|
21
|
-
var URL = {
|
|
22
|
-
IMG: 'http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46',
|
|
23
|
-
VEC: 'http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020',
|
|
24
|
-
CUSTOM: 'http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid={style}'
|
|
25
|
-
};
|
|
26
|
-
var BaiduImageryProvider = /*#__PURE__*/function () {
|
|
27
|
-
function BaiduImageryProvider() {
|
|
28
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
29
|
-
_classCallCheck(this, BaiduImageryProvider);
|
|
30
|
-
this._url = options.url || URL[options.style || 'CUSTOM'];
|
|
31
|
-
this._tileWidth = 256;
|
|
32
|
-
this._tileHeight = 256;
|
|
33
|
-
this._maximumLevel = 18;
|
|
34
|
-
this._crs = options.crs || 'BD09';
|
|
35
|
-
if (options.crs === 'WGS84') {
|
|
36
|
-
var resolutions = [];
|
|
37
|
-
for (var i = 0; i < 19; i++) {
|
|
38
|
-
resolutions[i] = 256 * Math.pow(2, 18 - i);
|
|
39
|
-
}
|
|
40
|
-
this._tilingScheme = new _BaiduMercatorTilingScheme["default"]({
|
|
41
|
-
resolutions: resolutions,
|
|
42
|
-
rectangleSouthwestInMeters: new Cesium.Cartesian2(-20037726.37, -12474104.17),
|
|
43
|
-
rectangleNortheastInMeters: new Cesium.Cartesian2(20037726.37, 12474104.17)
|
|
44
|
-
});
|
|
45
|
-
} else {
|
|
46
|
-
this._tilingScheme = new Cesium.WebMercatorTilingScheme({
|
|
47
|
-
rectangleSouthwestInMeters: new Cesium.Cartesian2(-33554054, -33746824),
|
|
48
|
-
rectangleNortheastInMeters: new Cesium.Cartesian2(33554054, 33746824)
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
this._rectangle = this._tilingScheme.rectangle;
|
|
52
|
-
this._credit = undefined;
|
|
53
|
-
this._style = options.style || 'normal';
|
|
54
|
-
}
|
|
55
|
-
_createClass(BaiduImageryProvider, [{
|
|
56
|
-
key: "url",
|
|
57
|
-
get: function get() {
|
|
58
|
-
return this._url;
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
key: "token",
|
|
62
|
-
get: function get() {
|
|
63
|
-
return this._token;
|
|
64
|
-
}
|
|
65
|
-
}, {
|
|
66
|
-
key: "tileWidth",
|
|
67
|
-
get: function get() {
|
|
68
|
-
if (!this.ready) {
|
|
69
|
-
throw new Cesium.DeveloperError('tileWidth must not be called before the imagery provider is ready.');
|
|
70
|
-
}
|
|
71
|
-
return this._tileWidth;
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: "tileHeight",
|
|
75
|
-
get: function get() {
|
|
76
|
-
if (!this.ready) {
|
|
77
|
-
throw new Cesium.DeveloperError('tileHeight must not be called before the imagery provider is ready.');
|
|
78
|
-
}
|
|
79
|
-
return this._tileHeight;
|
|
80
|
-
}
|
|
81
|
-
}, {
|
|
82
|
-
key: "maximumLevel",
|
|
83
|
-
get: function get() {
|
|
84
|
-
if (!this.ready) {
|
|
85
|
-
throw new Cesium.DeveloperError('maximumLevel must not be called before the imagery provider is ready.');
|
|
86
|
-
}
|
|
87
|
-
return this._maximumLevel;
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
key: "minimumLevel",
|
|
91
|
-
get: function get() {
|
|
92
|
-
if (!this.ready) {
|
|
93
|
-
throw new Cesium.DeveloperError('minimumLevel must not be called before the imagery provider is ready.');
|
|
94
|
-
}
|
|
95
|
-
return 0;
|
|
96
|
-
}
|
|
97
|
-
}, {
|
|
98
|
-
key: "tilingScheme",
|
|
99
|
-
get: function get() {
|
|
100
|
-
if (!this.ready) {
|
|
101
|
-
throw new Cesium.DeveloperError('tilingScheme must not be called before the imagery provider is ready.');
|
|
102
|
-
}
|
|
103
|
-
return this._tilingScheme;
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
key: "rectangle",
|
|
107
|
-
get: function get() {
|
|
108
|
-
if (!this.ready) {
|
|
109
|
-
throw new Cesium.DeveloperError('rectangle must not be called before the imagery provider is ready.');
|
|
110
|
-
}
|
|
111
|
-
return this._rectangle;
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
key: "ready",
|
|
115
|
-
get: function get() {
|
|
116
|
-
return !!this._url;
|
|
117
|
-
}
|
|
118
|
-
}, {
|
|
119
|
-
key: "credit",
|
|
120
|
-
get: function get() {
|
|
121
|
-
return this._credit;
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
key: "hasAlphaChannel",
|
|
125
|
-
get: function get() {
|
|
126
|
-
return true;
|
|
127
|
-
}
|
|
128
|
-
}, {
|
|
129
|
-
key: "getTileCredits",
|
|
130
|
-
value: function getTileCredits(x, y, level) {}
|
|
131
|
-
}, {
|
|
132
|
-
key: "requestImage",
|
|
133
|
-
value: function requestImage(x, y, level) {
|
|
134
|
-
if (!this.ready) {
|
|
135
|
-
throw new Cesium.DeveloperError('requestImage must not be called before the imagery provider is ready.');
|
|
136
|
-
}
|
|
137
|
-
var xTiles = this._tilingScheme.getNumberOfXTilesAtLevel(level);
|
|
138
|
-
var yTiles = this._tilingScheme.getNumberOfYTilesAtLevel(level);
|
|
139
|
-
var url = this._url.replace('{z}', level).replace('{s}', String(1)).replace('{style}', this._style);
|
|
140
|
-
if (this._crs === 'WGS84') {
|
|
141
|
-
url = url.replace('{x}', String(x)).replace('{y}', String(-y));
|
|
142
|
-
} else {
|
|
143
|
-
url = url.replace('{x}', String(x - xTiles / 2)).replace('{y}', String(yTiles / 2 - y - 1));
|
|
144
|
-
}
|
|
145
|
-
return Cesium.ImageryProvider.loadImage(this, url);
|
|
146
|
-
}
|
|
147
|
-
}]);
|
|
148
|
-
return BaiduImageryProvider;
|
|
149
|
-
}();
|
|
150
|
-
var _default = BaiduImageryProvider;
|
|
151
|
-
exports["default"] = _default;
|
|
152
|
-
//# sourceMappingURL=BaiduImageryProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaiduImageryProvider.js","names":["Cesium","_interopRequireWildcard","require","_BaiduMercatorTilingScheme","_interopRequireDefault","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","o","Symbol","iterator","constructor","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","_toPropertyKey","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","URL","IMG","VEC","CUSTOM","BaiduImageryProvider","options","arguments","_url","url","style","_tileWidth","_tileHeight","_maximumLevel","_crs","crs","resolutions","Math","pow","_tilingScheme","BaiduMercatorTilingScheme","rectangleSouthwestInMeters","Cartesian2","rectangleNortheastInMeters","WebMercatorTilingScheme","_rectangle","rectangle","_credit","_style","_token","ready","DeveloperError","value","getTileCredits","x","y","level","requestImage","xTiles","getNumberOfXTilesAtLevel","yTiles","getNumberOfYTilesAtLevel","replace","ImageryProvider","loadImage","_default","exports"],"sources":["tools/base-map-switch/base/imagery/baidu/BaiduImageryProvider.js"],"sourcesContent":["/**\n * @Author: Caven\n * @Date: 2020-01-15 20:27:27\n */\nimport * as Cesium from 'cesium';\n\nimport BaiduMercatorTilingScheme from './BaiduMercatorTilingScheme'\n\nlet URL = {\n IMG: 'http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46',\n VEC: 'http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020',\n CUSTOM: 'http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid={style}',\n}\n\nclass BaiduImageryProvider {\n constructor(options = {}) {\n this._url = options.url || URL[options.style || 'CUSTOM']\n this._tileWidth = 256\n this._tileHeight = 256\n this._maximumLevel = 18\n this._crs = options.crs || 'BD09'\n if (options.crs === 'WGS84') {\n let resolutions = []\n for (let i = 0; i < 19; i++) {\n resolutions[i] = 256 * Math.pow(2, 18 - i)\n }\n this._tilingScheme = new BaiduMercatorTilingScheme({\n resolutions,\n rectangleSouthwestInMeters: new Cesium.Cartesian2(\n -20037726.37,\n -12474104.17\n ),\n rectangleNortheastInMeters: new Cesium.Cartesian2(\n 20037726.37,\n 12474104.17\n )\n })\n } else {\n this._tilingScheme = new Cesium.WebMercatorTilingScheme({\n rectangleSouthwestInMeters: new Cesium.Cartesian2(-33554054, -33746824),\n rectangleNortheastInMeters: new Cesium.Cartesian2(33554054, 33746824)\n })\n }\n this._rectangle = this._tilingScheme.rectangle\n this._credit = undefined\n this._style = options.style || 'normal'\n }\n\n get url() {\n return this._url\n }\n\n get token() {\n return this._token\n }\n\n get tileWidth() {\n if (!this.ready) {\n throw new Cesium.DeveloperError(\n 'tileWidth must not be called before the imagery provider is ready.'\n )\n }\n return this._tileWidth\n }\n\n get tileHeight() {\n if (!this.ready) {\n throw new Cesium.DeveloperError(\n 'tileHeight must not be called before the imagery provider is ready.'\n )\n }\n return this._tileHeight\n }\n\n get maximumLevel() {\n if (!this.ready) {\n throw new Cesium.DeveloperError(\n 'maximumLevel must not be called before the imagery provider is ready.'\n )\n }\n return this._maximumLevel\n }\n\n get minimumLevel() {\n if (!this.ready) {\n throw new Cesium.DeveloperError(\n 'minimumLevel must not be called before the imagery provider is ready.'\n )\n }\n return 0\n }\n\n get tilingScheme() {\n if (!this.ready) {\n throw new Cesium.DeveloperError(\n 'tilingScheme must not be called before the imagery provider is ready.'\n )\n }\n return this._tilingScheme\n }\n\n get rectangle() {\n if (!this.ready) {\n throw new Cesium.DeveloperError(\n 'rectangle must not be called before the imagery provider is ready.'\n )\n }\n return this._rectangle\n }\n\n get ready() {\n return !!this._url\n }\n\n get credit() {\n return this._credit\n }\n\n get hasAlphaChannel() {\n return true\n }\n\n getTileCredits(x, y, level) {}\n\n requestImage(x, y, level) {\n if (!this.ready) {\n throw new Cesium.DeveloperError(\n 'requestImage must not be called before the imagery provider is ready.'\n )\n }\n let xTiles = this._tilingScheme.getNumberOfXTilesAtLevel(level)\n let yTiles = this._tilingScheme.getNumberOfYTilesAtLevel(level)\n let url = this._url\n .replace('{z}', level)\n .replace('{s}', String(1))\n .replace('{style}', this._style)\n if (this._crs === 'WGS84') {\n url = url.replace('{x}', String(x)).replace('{y}', String(-y))\n } else {\n url = url\n .replace('{x}', String(x - xTiles / 2))\n .replace('{y}', String(yTiles / 2 - y - 1))\n }\n return Cesium.ImageryProvider.loadImage(this, url)\n }\n}\n\nexport default BaiduImageryProvider\n"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAmE,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAI,GAAA,EAAAG,WAAA,SAAAA,WAAA,IAAAH,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAO,OAAA,CAAAP,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAQ,KAA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