@vtx/cs-map 1.0.77 → 1.0.78

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.
Files changed (315) hide show
  1. package/README.md +202 -202
  2. package/lib/_util/EventEmitter.js +4 -3
  3. package/lib/_util/EventEmitter.js.map +1 -1
  4. package/lib/_util/Provider.js.map +1 -1
  5. package/lib/_util/StyleCache.js +4 -3
  6. package/lib/_util/StyleCache.js.map +1 -1
  7. package/lib/_util/encryptParams.js.map +1 -1
  8. package/lib/_util/filterSpecialCharacters.js +6 -6
  9. package/lib/_util/filterSpecialCharacters.js.map +1 -1
  10. package/lib/_util/generateRandomPosition.js +5 -5
  11. package/lib/_util/generateRandomPosition.js.map +1 -1
  12. package/lib/_util/getBBoxFromGeojson.js +12 -11
  13. package/lib/_util/getBBoxFromGeojson.js.map +1 -1
  14. package/lib/_util/getComponentProps.js.map +1 -1
  15. package/lib/_util/getCookie.js +4 -4
  16. package/lib/_util/getCookie.js.map +1 -1
  17. package/lib/_util/getDefaultMapInfo.js +2 -2
  18. package/lib/_util/getDefaultMapInfo.js.map +1 -1
  19. package/lib/_util/getSystemInfo.js +2 -2
  20. package/lib/_util/getSystemInfo.js.map +1 -1
  21. package/lib/_util/getToken.js +2 -2
  22. package/lib/_util/getToken.js.map +1 -1
  23. package/lib/_util/getUrlParam.js.map +1 -1
  24. package/lib/_util/heightAndZoom.js.map +1 -1
  25. package/lib/_util/http.js +22 -21
  26. package/lib/_util/http.js.map +1 -1
  27. package/lib/_util/isFunction.js.map +1 -1
  28. package/lib/_util/isObject.js.map +1 -1
  29. package/lib/_util/layer.js +3 -3
  30. package/lib/_util/layer.js.map +1 -1
  31. package/lib/_util/mapTool.js +34 -34
  32. package/lib/_util/mapTool.js.map +1 -1
  33. package/lib/_util/setCookie.js +4 -4
  34. package/lib/_util/setCookie.js.map +1 -1
  35. package/lib/_util/transformRgb.js.map +1 -1
  36. package/lib/_util/useColSize.js.map +1 -1
  37. package/lib/_util/useInterval.js.map +1 -1
  38. package/lib/_util/useProps.js.map +1 -1
  39. package/lib/_util/useSet.js +2 -2
  40. package/lib/_util/useSet.js.map +1 -1
  41. package/lib/building-tiles-layer/BuildingTilesLayer.js +11 -9
  42. package/lib/building-tiles-layer/BuildingTilesLayer.js.map +1 -1
  43. package/lib/building-tiles-layer/index.js +4 -4
  44. package/lib/building-tiles-layer/index.js.map +1 -1
  45. package/lib/building-tiles-layer/style/css.js.map +1 -1
  46. package/lib/building-tiles-layer/style/index.js.map +1 -1
  47. package/lib/cesium-tiles-layer/CesiumTilesLayer.js +12 -10
  48. package/lib/cesium-tiles-layer/CesiumTilesLayer.js.map +1 -1
  49. package/lib/cesium-tiles-layer/index.js +4 -4
  50. package/lib/cesium-tiles-layer/index.js.map +1 -1
  51. package/lib/cesium-tiles-layer/style/css.js.map +1 -1
  52. package/lib/cesium-tiles-layer/style/index.js.map +1 -1
  53. package/lib/circle/Circle.js +11 -9
  54. package/lib/circle/Circle.js.map +1 -1
  55. package/lib/circle/index.js +2 -2
  56. package/lib/circle/index.js.map +1 -1
  57. package/lib/circle/style/css.js.map +1 -1
  58. package/lib/circle/style/index.js.map +1 -1
  59. package/lib/config.js.map +1 -1
  60. package/lib/demand-layer/DemandLayer.js +13 -11
  61. package/lib/demand-layer/DemandLayer.js.map +1 -1
  62. package/lib/demand-layer/index.js +2 -2
  63. package/lib/demand-layer/index.js.map +1 -1
  64. package/lib/demand-layer/style/css.js.map +1 -1
  65. package/lib/demand-layer/style/index.js.map +1 -1
  66. package/lib/dom/Dom.js +4 -3
  67. package/lib/dom/Dom.js.map +1 -1
  68. package/lib/dom/index.js +4 -4
  69. package/lib/dom/index.js.map +1 -1
  70. package/lib/dom/style/css.js.map +1 -1
  71. package/lib/dom/style/index.js.map +1 -1
  72. package/lib/events/index.js.map +1 -1
  73. package/lib/feature-layer/FeatureLayer.js +13 -11
  74. package/lib/feature-layer/FeatureLayer.js.map +1 -1
  75. package/lib/feature-layer/createFeatureCollection.js +13 -13
  76. package/lib/feature-layer/createFeatureCollection.js.map +1 -1
  77. package/lib/feature-layer/index.js +4 -4
  78. package/lib/feature-layer/index.js.map +1 -1
  79. package/lib/feature-layer/style/css.js.map +1 -1
  80. package/lib/feature-layer/style/index.js.map +1 -1
  81. package/lib/fence-layer/FenceLayer.js +13 -11
  82. package/lib/fence-layer/FenceLayer.js.map +1 -1
  83. package/lib/fence-layer/GradualLightRingMaterialProperty.js +5 -5
  84. package/lib/fence-layer/GradualLightRingMaterialProperty.js.map +1 -1
  85. package/lib/fence-layer/index.js +4 -4
  86. package/lib/fence-layer/index.js.map +1 -1
  87. package/lib/fence-layer/style/css.js.map +1 -1
  88. package/lib/fence-layer/style/index.js.map +1 -1
  89. package/lib/fly-line-layer/FlyLineLayer.js +55 -37
  90. package/lib/fly-line-layer/FlyLineLayer.js.map +1 -1
  91. package/lib/fly-line-layer/LineFlowMaterialProperty.js +4 -3
  92. package/lib/fly-line-layer/LineFlowMaterialProperty.js.map +1 -1
  93. package/lib/fly-line-layer/index.js +8 -4
  94. package/lib/fly-line-layer/index.js.map +1 -1
  95. package/lib/fly-line-layer/style/css.js.map +1 -1
  96. package/lib/fly-line-layer/style/index.js.map +1 -1
  97. package/lib/gif-dom-layer/GifDomLayer.js +4 -3
  98. package/lib/gif-dom-layer/GifDomLayer.js.map +1 -1
  99. package/lib/gif-dom-layer/index.js +2 -2
  100. package/lib/gif-dom-layer/index.js.map +1 -1
  101. package/lib/gif-dom-layer/style/css.js.map +1 -1
  102. package/lib/gif-dom-layer/style/index.js.map +1 -1
  103. package/lib/gradation-line-layer/GradationLineLayer.js +11 -9
  104. package/lib/gradation-line-layer/GradationLineLayer.js.map +1 -1
  105. package/lib/gradation-line-layer/index.js +2 -2
  106. package/lib/gradation-line-layer/index.js.map +1 -1
  107. package/lib/gradation-line-layer/style/css.js.map +1 -1
  108. package/lib/gradation-line-layer/style/index.js.map +1 -1
  109. package/lib/group-layer/GroupLayer.js +4 -3
  110. package/lib/group-layer/GroupLayer.js.map +1 -1
  111. package/lib/group-layer/index.js +2 -2
  112. package/lib/group-layer/index.js.map +1 -1
  113. package/lib/group-layer/style/css.js.map +1 -1
  114. package/lib/group-layer/style/index.js.map +1 -1
  115. package/lib/heatmap-layer/CesiumHeatmap.js +24 -23
  116. package/lib/heatmap-layer/CesiumHeatmap.js.map +1 -1
  117. package/lib/heatmap-layer/HeatmapLayer.js +11 -9
  118. package/lib/heatmap-layer/HeatmapLayer.js.map +1 -1
  119. package/lib/heatmap-layer/heatmap.js +42 -41
  120. package/lib/heatmap-layer/heatmap.js.map +1 -1
  121. package/lib/heatmap-layer/index.js +4 -4
  122. package/lib/heatmap-layer/index.js.map +1 -1
  123. package/lib/heatmap-layer/style/css.js.map +1 -1
  124. package/lib/heatmap-layer/style/index.js.map +1 -1
  125. package/lib/highlight-layer/HighlightLayer.js +10 -9
  126. package/lib/highlight-layer/HighlightLayer.js.map +1 -1
  127. package/lib/highlight-layer/index.js +2 -2
  128. package/lib/highlight-layer/index.js.map +1 -1
  129. package/lib/highlight-layer/style/css.js.map +1 -1
  130. package/lib/highlight-layer/style/index.js.map +1 -1
  131. package/lib/image-layer/ImageLayer.js +13 -11
  132. package/lib/image-layer/ImageLayer.js.map +1 -1
  133. package/lib/image-layer/ImageLayer2.js +4 -3
  134. package/lib/image-layer/ImageLayer2.js.map +1 -1
  135. package/lib/image-layer/index.js +4 -4
  136. package/lib/image-layer/index.js.map +1 -1
  137. package/lib/image-layer/style/css.js.map +1 -1
  138. package/lib/image-layer/style/index.js.map +1 -1
  139. package/lib/index.js.map +1 -1
  140. package/lib/label/Label.js +11 -9
  141. package/lib/label/Label.js.map +1 -1
  142. package/lib/label/index.js +2 -2
  143. package/lib/label/index.js.map +1 -1
  144. package/lib/label/style/css.js.map +1 -1
  145. package/lib/label/style/index.js.map +1 -1
  146. package/lib/legend/index.js +4 -4
  147. package/lib/legend/index.js.map +1 -1
  148. package/lib/legend/style/css.js.map +1 -1
  149. package/lib/legend/style/index.js.map +1 -1
  150. package/lib/legend/style/index.less +64 -64
  151. package/lib/line-flow-layer/LineFlowLayer.js +12 -9
  152. package/lib/line-flow-layer/LineFlowLayer.js.map +1 -1
  153. package/lib/line-flow-layer/index.js +2 -2
  154. package/lib/line-flow-layer/index.js.map +1 -1
  155. package/lib/line-flow-layer/style/css.js.map +1 -1
  156. package/lib/line-flow-layer/style/index.js.map +1 -1
  157. package/lib/map/InfoTool/index.js +66 -58
  158. package/lib/map/InfoTool/index.js.map +1 -1
  159. package/lib/map/InfoTool/index.less +46 -46
  160. package/lib/map/InfoTool/util.js +23 -23
  161. package/lib/map/InfoTool/util.js.map +1 -1
  162. package/lib/map/InfoWindow.js +2 -2
  163. package/lib/map/InfoWindow.js.map +1 -1
  164. package/lib/map/Layers.js +11 -9
  165. package/lib/map/Layers.js.map +1 -1
  166. package/lib/map/Popup.js +2 -2
  167. package/lib/map/Popup.js.map +1 -1
  168. package/lib/map/base/imagery/amap/AmapImageryProvider.js +9 -8
  169. package/lib/map/base/imagery/amap/AmapImageryProvider.js.map +1 -1
  170. package/lib/map/base/imagery/amap/AmapMercatorTilingScheme.js +9 -8
  171. package/lib/map/base/imagery/amap/AmapMercatorTilingScheme.js.map +1 -1
  172. package/lib/map/base/imagery/baidu/BaiduImageryProvider.js +4 -3
  173. package/lib/map/base/imagery/baidu/BaiduImageryProvider.js.map +1 -1
  174. package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js +81 -80
  175. package/lib/map/base/imagery/baidu/BaiduMercatorProjection.js.map +1 -1
  176. package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js +26 -24
  177. package/lib/map/base/imagery/baidu/BaiduMercatorTilingScheme.js.map +1 -1
  178. package/lib/map/base/imagery/geoq/GeoQImageryProvider.js +9 -8
  179. package/lib/map/base/imagery/geoq/GeoQImageryProvider.js.map +1 -1
  180. package/lib/map/base/imagery/google/GoogleImageryProvider.js +9 -8
  181. package/lib/map/base/imagery/google/GoogleImageryProvider.js.map +1 -1
  182. package/lib/map/base/imagery/tdt/TdtImageryProvider.js +10 -9
  183. package/lib/map/base/imagery/tdt/TdtImageryProvider.js.map +1 -1
  184. package/lib/map/base/imagery/tencent/TencentImageryProvider.js +9 -8
  185. package/lib/map/base/imagery/tencent/TencentImageryProvider.js.map +1 -1
  186. package/lib/map/base/imagery/transform/AmapMercatorTilingScheme.js +9 -8
  187. package/lib/map/base/imagery/transform/AmapMercatorTilingScheme.js.map +1 -1
  188. package/lib/map/base/imagery/transform/CoordTransform.js +46 -45
  189. package/lib/map/base/imagery/transform/CoordTransform.js.map +1 -1
  190. package/lib/map/base/index.js +11 -9
  191. package/lib/map/base/index.js.map +1 -1
  192. package/lib/map/hooks/useGetMapFeatureInfoByText.js +1 -1
  193. package/lib/map/hooks/useGetMapFeatureInfoByText.js.map +1 -1
  194. package/lib/map/index.js +8 -7
  195. package/lib/map/index.js.map +1 -1
  196. package/lib/map/material/AroundPoint.js +4 -3
  197. package/lib/map/material/AroundPoint.js.map +1 -1
  198. package/lib/map/material/CircleRippleMaterialProperty.js +6 -5
  199. package/lib/map/material/CircleRippleMaterialProperty.js.map +1 -1
  200. package/lib/map/material/ODLineLayer.js +4 -3
  201. package/lib/map/material/ODLineLayer.js.map +1 -1
  202. package/lib/map/material/PolylineTrailLinkMaterialProperty.js +4 -3
  203. package/lib/map/material/PolylineTrailLinkMaterialProperty.js.map +1 -1
  204. package/lib/map/material/PolylineTrailMaterialProperty.js +4 -3
  205. package/lib/map/material/PolylineTrailMaterialProperty.js.map +1 -1
  206. package/lib/map/material/TilesBuilding.js +4 -3
  207. package/lib/map/material/TilesBuilding.js.map +1 -1
  208. package/lib/map/material/index.js.map +1 -1
  209. package/lib/map/style/css.js.map +1 -1
  210. package/lib/map/style/index.js.map +1 -1
  211. package/lib/map/style/index.less +248 -248
  212. package/lib/marker/Marker.js +11 -9
  213. package/lib/marker/Marker.js.map +1 -1
  214. package/lib/marker/index.js +2 -2
  215. package/lib/marker/index.js.map +1 -1
  216. package/lib/marker/style/css.js.map +1 -1
  217. package/lib/marker/style/index.js.map +1 -1
  218. package/lib/point/Point.js +11 -9
  219. package/lib/point/Point.js.map +1 -1
  220. package/lib/point/index.js +2 -2
  221. package/lib/point/index.js.map +1 -1
  222. package/lib/point/style/css.js.map +1 -1
  223. package/lib/point/style/index.js.map +1 -1
  224. package/lib/polygon/Polygon.js +11 -9
  225. package/lib/polygon/Polygon.js.map +1 -1
  226. package/lib/polygon/index.js +2 -2
  227. package/lib/polygon/index.js.map +1 -1
  228. package/lib/polygon/style/css.js.map +1 -1
  229. package/lib/polygon/style/index.js.map +1 -1
  230. package/lib/polyline/Polyline.js +11 -9
  231. package/lib/polyline/Polyline.js.map +1 -1
  232. package/lib/polyline/index.js +2 -2
  233. package/lib/polyline/index.js.map +1 -1
  234. package/lib/polyline/style/css.js.map +1 -1
  235. package/lib/polyline/style/index.js.map +1 -1
  236. package/lib/renderer/index.js +18 -17
  237. package/lib/renderer/index.js.map +1 -1
  238. package/lib/renderer/style/css.js.map +1 -1
  239. package/lib/renderer/style/index.js.map +1 -1
  240. package/lib/style/index.less +2 -2
  241. package/lib/style/themes/compact.less +1 -1
  242. package/lib/style/themes/dark.less +9 -9
  243. package/lib/style/themes/default.less +7 -7
  244. package/lib/style/themes/index.less +1 -1
  245. package/lib/style/themes/variable.less +5 -5
  246. package/lib/tools/base-map-switch/index.js +4 -4
  247. package/lib/tools/base-map-switch/index.js.map +1 -1
  248. package/lib/tools/components/Icon/index.js.map +1 -1
  249. package/lib/tools/components/Icon/svg.js.map +1 -1
  250. package/lib/tools/components/Modal/index.js +2 -2
  251. package/lib/tools/components/Modal/index.js.map +1 -1
  252. package/lib/tools/components/Modal/index.less +33 -33
  253. package/lib/tools/components/item-wrap/index.js +2 -2
  254. package/lib/tools/components/item-wrap/index.js.map +1 -1
  255. package/lib/tools/components/tool-Item/index.js.map +1 -1
  256. package/lib/tools/components/tool-Item/index.less +27 -27
  257. package/lib/tools/dimension-switch/index.js +2 -2
  258. package/lib/tools/dimension-switch/index.js.map +1 -1
  259. package/lib/tools/index.js.map +1 -1
  260. package/lib/tools/layer-control/index.js +4 -4
  261. package/lib/tools/layer-control/index.js.map +1 -1
  262. package/lib/tools/layer-control-popover/LayersCheckService.js +1 -0
  263. package/lib/tools/layer-control-popover/LayersCheckService.js.map +1 -1
  264. package/lib/tools/layer-control-popover/index.js +5 -5
  265. package/lib/tools/layer-control-popover/index.js.map +1 -1
  266. package/lib/tools/map-search/Select/index.js +7 -7
  267. package/lib/tools/map-search/Select/index.js.map +1 -1
  268. package/lib/tools/map-search/Select/style/css.js.map +1 -1
  269. package/lib/tools/map-search/Select/style/index.js.map +1 -1
  270. package/lib/tools/map-search/Select/style/index.less +47 -47
  271. package/lib/tools/map-search/index.js +5 -5
  272. package/lib/tools/map-search/index.js.map +1 -1
  273. package/lib/tools/style/css.js.map +1 -1
  274. package/lib/tools/style/index.js.map +1 -1
  275. package/lib/tools/style/index.less +282 -282
  276. package/lib/tools/tool-box/Measure/Area/index.js.map +1 -1
  277. package/lib/tools/tool-box/Measure/Distance/index.js.map +1 -1
  278. package/lib/tools/tool-box/Measure/Height/index.js.map +1 -1
  279. package/lib/tools/tool-box/Measure/Measure.js +35 -34
  280. package/lib/tools/tool-box/Measure/Measure.js.map +1 -1
  281. package/lib/tools/tool-box/Measure/index.js +2 -2
  282. package/lib/tools/tool-box/Measure/index.js.map +1 -1
  283. package/lib/tools/tool-box/index.js +3 -2
  284. package/lib/tools/tool-box/index.js.map +1 -1
  285. package/lib/trail-polyline-layer/TrailPolylineLayer.js +11 -9
  286. package/lib/trail-polyline-layer/TrailPolylineLayer.js.map +1 -1
  287. package/lib/trail-polyline-layer/TrailPolylineMaterial.js +2 -2
  288. package/lib/trail-polyline-layer/TrailPolylineMaterial.js.map +1 -1
  289. package/lib/trail-polyline-layer/index.js +2 -2
  290. package/lib/trail-polyline-layer/index.js.map +1 -1
  291. package/lib/trail-polyline-layer/style/css.js.map +1 -1
  292. package/lib/trail-polyline-layer/style/index.js.map +1 -1
  293. package/lib/use-props/index.js.map +1 -1
  294. package/lib/use-props/style/css.js.map +1 -1
  295. package/lib/use-props/style/index.js.map +1 -1
  296. package/lib/wall/WallGeometry.js +9 -8
  297. package/lib/wall/WallGeometry.js.map +1 -1
  298. package/lib/wall/index.js +2 -2
  299. package/lib/wall/index.js.map +1 -1
  300. package/lib/wall/style/css.js.map +1 -1
  301. package/lib/wall/style/index.js.map +1 -1
  302. package/lib/water-surface-layer/WaterSurfaceLayer.js +14 -12
  303. package/lib/water-surface-layer/WaterSurfaceLayer.js.map +1 -1
  304. package/lib/water-surface-layer/index.js +4 -4
  305. package/lib/water-surface-layer/index.js.map +1 -1
  306. package/lib/water-surface-layer/style/css.js.map +1 -1
  307. package/lib/water-surface-layer/style/index.js.map +1 -1
  308. package/lib/weather/Weather.js +32 -31
  309. package/lib/weather/Weather.js.map +1 -1
  310. package/lib/weather/index.js +2 -2
  311. package/lib/weather/index.js.map +1 -1
  312. package/lib/weather/style/css.js.map +1 -1
  313. package/lib/weather/style/index.js.map +1 -1
  314. package/package.json +124 -124
  315. package/CHANGELOG.md +0 -124
@@ -9,25 +9,27 @@ var Cesium = _interopRequireWildcard(require("cesium"));
9
9
  var _BaiduMercatorProjection = _interopRequireDefault(require("./BaiduMercatorProjection"));
10
10
  var _CoordTransform = _interopRequireDefault(require("../transform/CoordTransform"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
+ 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); }
13
+ 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; }
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
  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); } }
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
19
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ 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); }
19
+ 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); }
20
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
+ 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); }; }
20
22
  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); }
21
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
22
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
+ 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; } }
23
25
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
24
- 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); }
25
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
26
  var BaiduMercatorTilingScheme = /*#__PURE__*/function (_Cesium$WebMercatorTi) {
27
+ _inherits(BaiduMercatorTilingScheme, _Cesium$WebMercatorTi);
28
+ var _super = _createSuper(BaiduMercatorTilingScheme);
27
29
  function BaiduMercatorTilingScheme(options) {
28
30
  var _this;
29
31
  _classCallCheck(this, BaiduMercatorTilingScheme);
30
- _this = _callSuper(this, BaiduMercatorTilingScheme, [options]);
32
+ _this = _super.call(this, options);
31
33
  var projection = new _BaiduMercatorProjection["default"]();
32
34
  _this._projection.project = function (cartographic, result) {
33
35
  result = result || {};
@@ -57,16 +59,15 @@ var BaiduMercatorTilingScheme = /*#__PURE__*/function (_Cesium$WebMercatorTi) {
57
59
  return _this;
58
60
  }
59
61
 
60
- /**
61
- *
62
- * @param x
63
- * @param y
64
- * @param level
65
- * @param result
66
- * @returns {module:cesium.Rectangle|*}
62
+ /**
63
+ *
64
+ * @param x
65
+ * @param y
66
+ * @param level
67
+ * @param result
68
+ * @returns {module:cesium.Rectangle|*}
67
69
  */
68
- _inherits(BaiduMercatorTilingScheme, _Cesium$WebMercatorTi);
69
- return _createClass(BaiduMercatorTilingScheme, [{
70
+ _createClass(BaiduMercatorTilingScheme, [{
70
71
  key: "tileXYToNativeRectangle",
71
72
  value: function tileXYToNativeRectangle(x, y, level, result) {
72
73
  var tileWidth = this.resolutions[level];
@@ -84,12 +85,12 @@ var BaiduMercatorTilingScheme = /*#__PURE__*/function (_Cesium$WebMercatorTi) {
84
85
  return result;
85
86
  }
86
87
 
87
- /**
88
- *
89
- * @param position
90
- * @param level
91
- * @param result
92
- * @returns {undefined|*}
88
+ /**
89
+ *
90
+ * @param position
91
+ * @param level
92
+ * @param result
93
+ * @returns {undefined|*}
93
94
  */
94
95
  }, {
95
96
  key: "positionToTileXY",
@@ -114,6 +115,7 @@ var BaiduMercatorTilingScheme = /*#__PURE__*/function (_Cesium$WebMercatorTi) {
114
115
  return result;
115
116
  }
116
117
  }]);
118
+ return BaiduMercatorTilingScheme;
117
119
  }(Cesium.WebMercatorTilingScheme);
118
120
  var _default = exports["default"] = BaiduMercatorTilingScheme;
119
121
  //# sourceMappingURL=BaiduMercatorTilingScheme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaiduMercatorTilingScheme.js","names":["Cesium","_interopRequireWildcard","require","_BaiduMercatorProjection","_interopRequireDefault","_CoordTransform","obj","__esModule","_getRequireWildcardCache","e","WeakMap","r","t","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","length","descriptor","enumerable","configurable","writable","_toPropertyKey","key","_createClass","protoProps","staticProps","prototype","_toPrimitive","Symbol","toPrimitive","String","Number","_callSuper","o","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","self","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","BaiduMercatorTilingScheme","_Cesium$WebMercatorTi","options","_this","projection","BaiduMercatorProjection","_projection","project","cartographic","result","CoordTransform","WGS84ToGCJ02","Math","toDegrees","longitude","latitude","GCJ02ToBD09","min","max","lngLatToPoint","lng","lat","Cartesian2","x","y","unproject","cartesian","mercatorToLngLat","BD09ToGCJ02","GCJ02ToWGS84","Cartographic","toRadians","resolutions","tileXYToNativeRectangle","level","tileWidth","west","east","north","south","defined","Rectangle","positionToTileXY","position","rectangle","_rectangle","contains","undefined","webMercatorPosition","xTileCoordinate","floor","yTileCoordinate","WebMercatorTilingScheme","_default","exports"],"sources":["map/base/imagery/baidu/BaiduMercatorTilingScheme.js"],"sourcesContent":["import * as Cesium from 'cesium';\nimport BaiduMercatorProjection from './BaiduMercatorProjection';\nimport CoordTransform from '../transform/CoordTransform';\n\nclass BaiduMercatorTilingScheme extends Cesium.WebMercatorTilingScheme {\n constructor(options) {\n super(options);\n let projection = new BaiduMercatorProjection();\n this._projection.project = function(cartographic, result) {\n result = result || {};\n result = CoordTransform.WGS84ToGCJ02(\n Cesium.Math.toDegrees(cartographic.longitude),\n Cesium.Math.toDegrees(cartographic.latitude),\n );\n result = CoordTransform.GCJ02ToBD09(result[0], result[1]);\n result[0] = Math.min(result[0], 180);\n result[0] = Math.max(result[0], -180);\n result[1] = Math.min(result[1], 74.000022);\n result[1] = Math.max(result[1], -71.988531);\n result = projection.lngLatToPoint({\n lng: result[0],\n lat: result[1],\n });\n return new Cesium.Cartesian2(result.x, result.y);\n };\n this._projection.unproject = function(cartesian, result) {\n result = result || {};\n result = projection.mercatorToLngLat({\n lng: cartesian.x,\n lat: cartesian.y,\n });\n result = CoordTransform.BD09ToGCJ02(result.lng, result.lat);\n result = CoordTransform.GCJ02ToWGS84(result[0], result[1]);\n return new Cesium.Cartographic(\n Cesium.Math.toRadians(result[0]),\n Cesium.Math.toRadians(result[1]),\n );\n };\n this.resolutions = options.resolutions || [];\n }\n\n /**\n *\n * @param x\n * @param y\n * @param level\n * @param result\n * @returns {module:cesium.Rectangle|*}\n */\n tileXYToNativeRectangle(x, y, level, result) {\n const tileWidth = this.resolutions[level];\n const west = x * tileWidth;\n const east = (x + 1) * tileWidth;\n const north = ((y = -y) + 1) * tileWidth;\n const south = y * tileWidth;\n\n if (!Cesium.defined(result)) {\n return new Cesium.Rectangle(west, south, east, north);\n }\n\n result.west = west;\n result.south = south;\n result.east = east;\n result.north = north;\n return result;\n }\n\n /**\n *\n * @param position\n * @param level\n * @param result\n * @returns {undefined|*}\n */\n positionToTileXY(position, level, result) {\n const rectangle = this._rectangle;\n if (!Cesium.Rectangle.contains(rectangle, position)) {\n return undefined;\n }\n const projection = this._projection;\n const webMercatorPosition = projection.project(position);\n if (!Cesium.defined(webMercatorPosition)) {\n return undefined;\n }\n const tileWidth = this.resolutions[level];\n const xTileCoordinate = Math.floor(webMercatorPosition.x / tileWidth);\n const yTileCoordinate = -Math.floor(webMercatorPosition.y / tileWidth);\n if (!Cesium.defined(result)) {\n return new Cesium.Cartesian2(xTileCoordinate, yTileCoordinate);\n }\n result.x = xTileCoordinate;\n result.y = yTileCoordinate;\n return result;\n }\n}\n\nexport default BaiduMercatorTilingScheme;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAyD,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAA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C,GAAGY,SAAS,CAAC;MACrE,IAAMgB,eAAe,GAAG,CAACvC,IAAI,CAACsC,KAAK,CAACF,mBAAmB,CAACxB,CAAC,GAAGW,SAAS,CAAC;MACtE,IAAI,CAAC7G,MAAM,CAACkH,OAAO,CAAC/B,MAAM,CAAC,EAAE;QACzB,OAAO,IAAInF,MAAM,CAACgG,UAAU,CAAC2B,eAAe,EAAEE,eAAe,CAAC;MAClE;MACA1C,MAAM,CAACc,CAAC,GAAG0B,eAAe;MAC1BxC,MAAM,CAACe,CAAC,GAAG2B,eAAe;MAC1B,OAAO1C,MAAM;IACjB;EAAC;AAAA,EAzFmCnF,MAAM,CAAC8H,uBAAuB;AAAA,IAAAC,QAAA,GAAAC,OAAA,cA4FvDtD,yBAAyB","ignoreList":[]}
1
+ {"version":3,"file":"BaiduMercatorTilingScheme.js","names":["Cesium","_interopRequireWildcard","require","_BaiduMercatorProjection","_interopRequireDefault","_CoordTransform","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","_toPropertyKey","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","Number","_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","BaiduMercatorTilingScheme","_Cesium$WebMercatorTi","_super","options","_this","projection","BaiduMercatorProjection","_projection","project","cartographic","CoordTransform","WGS84ToGCJ02","Math","toDegrees","longitude","latitude","GCJ02ToBD09","min","max","lngLatToPoint","lng","lat","Cartesian2","x","y","unproject","cartesian","mercatorToLngLat","BD09ToGCJ02","GCJ02ToWGS84","Cartographic","toRadians","resolutions","tileXYToNativeRectangle","level","tileWidth","west","east","north","south","defined","Rectangle","positionToTileXY","position","rectangle","_rectangle","contains","webMercatorPosition","xTileCoordinate","floor","yTileCoordinate","WebMercatorTilingScheme","_default","exports"],"sources":["map/base/imagery/baidu/BaiduMercatorTilingScheme.js"],"sourcesContent":["import * as Cesium from 'cesium';\r\nimport BaiduMercatorProjection from './BaiduMercatorProjection';\r\nimport CoordTransform from '../transform/CoordTransform';\r\n\r\nclass BaiduMercatorTilingScheme extends Cesium.WebMercatorTilingScheme {\r\n constructor(options) {\r\n super(options);\r\n let projection = new BaiduMercatorProjection();\r\n this._projection.project = function(cartographic, result) {\r\n result = result || {};\r\n result = CoordTransform.WGS84ToGCJ02(\r\n Cesium.Math.toDegrees(cartographic.longitude),\r\n Cesium.Math.toDegrees(cartographic.latitude),\r\n );\r\n result = CoordTransform.GCJ02ToBD09(result[0], result[1]);\r\n result[0] = Math.min(result[0], 180);\r\n result[0] = Math.max(result[0], -180);\r\n result[1] = Math.min(result[1], 74.000022);\r\n result[1] = Math.max(result[1], -71.988531);\r\n result = projection.lngLatToPoint({\r\n lng: result[0],\r\n lat: result[1],\r\n });\r\n return new Cesium.Cartesian2(result.x, result.y);\r\n };\r\n this._projection.unproject = function(cartesian, result) {\r\n result = result || {};\r\n result = projection.mercatorToLngLat({\r\n lng: cartesian.x,\r\n lat: cartesian.y,\r\n });\r\n result = CoordTransform.BD09ToGCJ02(result.lng, result.lat);\r\n result = CoordTransform.GCJ02ToWGS84(result[0], result[1]);\r\n return new Cesium.Cartographic(\r\n Cesium.Math.toRadians(result[0]),\r\n Cesium.Math.toRadians(result[1]),\r\n );\r\n };\r\n this.resolutions = options.resolutions || [];\r\n }\r\n\r\n /**\r\n *\r\n * @param x\r\n * @param y\r\n * @param level\r\n * @param result\r\n * @returns {module:cesium.Rectangle|*}\r\n */\r\n tileXYToNativeRectangle(x, y, level, result) {\r\n const tileWidth = this.resolutions[level];\r\n const west = x * tileWidth;\r\n const east = (x + 1) * tileWidth;\r\n const north = ((y = -y) + 1) * tileWidth;\r\n const south = y * tileWidth;\r\n\r\n if (!Cesium.defined(result)) {\r\n return new Cesium.Rectangle(west, south, east, north);\r\n }\r\n\r\n result.west = west;\r\n result.south = south;\r\n result.east = east;\r\n result.north = north;\r\n return result;\r\n }\r\n\r\n /**\r\n *\r\n * @param position\r\n * @param level\r\n * @param result\r\n * @returns {undefined|*}\r\n */\r\n positionToTileXY(position, level, result) {\r\n const rectangle = this._rectangle;\r\n if (!Cesium.Rectangle.contains(rectangle, position)) {\r\n return undefined;\r\n }\r\n const projection = this._projection;\r\n const webMercatorPosition = projection.project(position);\r\n if (!Cesium.defined(webMercatorPosition)) {\r\n return undefined;\r\n }\r\n const tileWidth = this.resolutions[level];\r\n const xTileCoordinate = Math.floor(webMercatorPosition.x / tileWidth);\r\n const yTileCoordinate = -Math.floor(webMercatorPosition.y / tileWidth);\r\n if (!Cesium.defined(result)) {\r\n return new Cesium.Cartesian2(xTileCoordinate, yTileCoordinate);\r\n }\r\n result.x = xTileCoordinate;\r\n result.y = yTileCoordinate;\r\n return result;\r\n }\r\n}\r\n\r\nexport default BaiduMercatorTilingScheme;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAyD,SAAAE,uBAAAE,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,W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SAAS,GAAG,IAAI,CAACH,WAAW,CAACE,KAAK,CAAC;MACzC,IAAMc,eAAe,GAAGpC,IAAI,CAACqC,KAAK,CAACF,mBAAmB,CAACxB,CAAC,GAAGY,SAAS,CAAC;MACrE,IAAMe,eAAe,GAAG,CAACtC,IAAI,CAACqC,KAAK,CAACF,mBAAmB,CAACvB,CAAC,GAAGW,SAAS,CAAC;MACtE,IAAI,CAAC9H,MAAM,CAACmI,OAAO,CAACxD,MAAM,CAAC,EAAE;QACzB,OAAO,IAAI3E,MAAM,CAACiH,UAAU,CAAC0B,eAAe,EAAEE,eAAe,CAAC;MAClE;MACAlE,MAAM,CAACuC,CAAC,GAAGyB,eAAe;MAC1BhE,MAAM,CAACwC,CAAC,GAAG0B,eAAe;MAC1B,OAAOlE,MAAM;IACjB;EAAC;EAAA,OAAAgB,yBAAA;AAAA,EAzFmC3F,MAAM,CAAC8I,uBAAuB;AAAA,IAAAC,QAAA,GAAAC,OAAA,cA4FvDrD,yBAAyB"}
@@ -10,16 +10,16 @@ var _AmapMercatorTilingScheme = _interopRequireDefault(require("../amap/AmapMerc
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  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); } }
12
12
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ 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); }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
16
+ 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); }
17
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
+ 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); }; }
17
19
  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); }
18
20
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
19
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21
+ 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; } }
20
22
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21
- 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); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
  var URL = {
24
24
  Community: '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}',
25
25
  StreetWarm: '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer/tile/{z}/{y}/{x}',
@@ -27,6 +27,8 @@ var URL = {
27
27
  Blue: '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
28
28
  };
29
29
  var GeoQImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
30
+ _inherits(GeoQImageryProvider, _UrlTemplateImageryPr);
31
+ var _super = _createSuper(GeoQImageryProvider);
30
32
  function GeoQImageryProvider() {
31
33
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32
34
  _classCallCheck(this, GeoQImageryProvider);
@@ -38,9 +40,8 @@ var GeoQImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
38
40
  if (options.crs === 'WGS84') {
39
41
  options['tilingScheme'] = new _AmapMercatorTilingScheme["default"]();
40
42
  }
41
- return _callSuper(this, GeoQImageryProvider, [options]);
43
+ return _super.call(this, options);
42
44
  }
43
- _inherits(GeoQImageryProvider, _UrlTemplateImageryPr);
44
45
  return _createClass(GeoQImageryProvider);
45
46
  }(_cesium.UrlTemplateImageryProvider);
46
47
  var _default = exports["default"] = GeoQImageryProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"GeoQImageryProvider.js","names":["_cesium","require","_AmapMercatorTilingScheme","_interopRequireDefault","obj","__esModule","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","t","_toPrimitive","_typeof","r","e","Symbol","toPrimitive","call","TypeError","String","Number","_classCallCheck","instance","_callSuper","o","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","self","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","URL","Community","StreetWarm","ChinaOnlineStreetGray","Blue","GeoQImageryProvider","_UrlTemplateImageryPr","options","arguments","undefined","style","subdomains","maximumLevel","crs","AmapMercatorTilingScheme","UrlTemplateImageryProvider","_default","exports"],"sources":["map/base/imagery/geoq/GeoQImageryProvider.js"],"sourcesContent":["import { UrlTemplateImageryProvider } from 'cesium';\n\nimport AmapMercatorTilingScheme from '../amap/AmapMercatorTilingScheme';\n\nlet URL = {\n Community:\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}',\n StreetWarm:\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer/tile/{z}/{y}/{x}',\n ChinaOnlineStreetGray:\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}',\n Blue:\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}',\n};\n\nclass GeoQImageryProvider extends UrlTemplateImageryProvider {\n constructor(options = {}) {\n options['url'] = options['url'] || URL[options.style || 'Blue'];\n if (!options.subdomains || !options.subdomains.length) {\n options['subdomains'] = ['01', '02', '03', '04'];\n }\n\n options.maximumLevel = options.maximumLevel || 18;\n\n if (options.crs === 'WGS84') {\n options['tilingScheme'] = new AmapMercatorTilingScheme();\n }\n super(options);\n }\n}\nexport default GeoQImageryProvider;\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAwE,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,kBAAAC,MAAA,EAAAC,KAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA,UAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA,GAAAE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,WAAAD,UAAA,CAAAE,YAAA,wBAAAF,UAAA,EAAAA,UAAA,CAAAG,QAAA,SAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAU,cAAA,CAAAN,UAAA,CAAAO,GAAA,GAAAP,UAAA;AAAA,SAAAQ,aAAAC,WAAA,EAAAC,UAAA,EAAAC,WAAA,QAAAD,UAAA,EAAAf,iBAAA,CAAAc,WAAA,CAAAG,SAAA,EAAAF,UAAA,OAAAC,WAAA,EAAAhB,iBAAA,CAAAc,WAAA,EAAAE,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C,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;IAAAnC,eAAA,OAAAgC,mBAAA;IACpBE,OAAO,CAAC,KAAK,CAAC,GAAGA,OAAO,CAAC,KAAK,CAAC,IAAIP,GAAG,CAACO,OAAO,CAACG,KAAK,IAAI,MAAM,CAAC;IAC/D,IAAI,CAACH,OAAO,CAACI,UAAU,IAAI,CAACJ,OAAO,CAACI,UAAU,CAAC/D,MAAM,EAAE;MACnD2D,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;IACpD;IAEAA,OAAO,CAACK,YAAY,GAAGL,OAAO,CAACK,YAAY,IAAI,EAAE;IAEjD,IAAIL,OAAO,CAACM,GAAG,KAAK,OAAO,EAAE;MACzBN,OAAO,CAAC,cAAc,CAAC,GAAG,IAAIO,oCAAwB,CAAC,CAAC;IAC5D;IAAC,OAAAvC,UAAA,OAAA8B,mBAAA,GACKE,OAAO;EACjB;EAACd,SAAA,CAAAY,mBAAA,EAAAC,qBAAA;EAAA,OAAAjD,YAAA,CAAAgD,mBAAA;AAAA,EAb6BU,kCAA0B;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAe7CZ,mBAAmB","ignoreList":[]}
1
+ {"version":3,"file":"GeoQImageryProvider.js","names":["_cesium","require","_AmapMercatorTilingScheme","_interopRequireDefault","obj","__esModule","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","arg","_toPrimitive","_typeof","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","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","Community","StreetWarm","ChinaOnlineStreetGray","Blue","GeoQImageryProvider","_UrlTemplateImageryPr","_super","options","style","subdomains","maximumLevel","crs","AmapMercatorTilingScheme","UrlTemplateImageryProvider","_default","exports"],"sources":["map/base/imagery/geoq/GeoQImageryProvider.js"],"sourcesContent":["import { UrlTemplateImageryProvider } from 'cesium';\r\n\r\nimport AmapMercatorTilingScheme from '../amap/AmapMercatorTilingScheme';\r\n\r\nlet URL = {\r\n Community:\r\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}',\r\n StreetWarm:\r\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer/tile/{z}/{y}/{x}',\r\n ChinaOnlineStreetGray:\r\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}',\r\n Blue:\r\n '//mapnew.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}',\r\n};\r\n\r\nclass GeoQImageryProvider extends UrlTemplateImageryProvider {\r\n constructor(options = {}) {\r\n options['url'] = options['url'] || URL[options.style || 'Blue'];\r\n if (!options.subdomains || !options.subdomains.length) {\r\n options['subdomains'] = ['01', '02', '03', '04'];\r\n }\r\n\r\n options.maximumLevel = options.maximumLevel || 18;\r\n\r\n if (options.crs === 'WGS84') {\r\n options['tilingScheme'] = new AmapMercatorTilingScheme();\r\n }\r\n super(options);\r\n }\r\n}\r\nexport default GeoQImageryProvider;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAwE,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,kBAAAC,MAAA,EAAAC,K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CAAwB,CAAC,CAAC;IAC5D;IAAC,OAAAN,MAAA,CAAA/C,IAAA,OACKgD,OAAO;EACjB;EAAC,OAAAhE,YAAA,CAAA6D,mBAAA;AAAA,EAb6BS,kCAA0B;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAe7CX,mBAAmB"}
@@ -8,22 +8,24 @@ exports["default"] = void 0;
8
8
  var _cesium = require("cesium");
9
9
  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); } }
10
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
+ 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); }
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
+ 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); }
15
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
16
+ 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); }; }
15
17
  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); }
16
18
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
17
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
+ 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; } }
18
20
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
- 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); }
20
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
21
  var URL = {
22
22
  ELEC: 'http://mt{s}.google.cn/vt/lyrs=m@207000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Galile',
23
23
  IMG: 'http://mt{s}.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali',
24
24
  TER: 'http://mt{s}.google.cn/vt/lyrs=t@131,r@227000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galile'
25
25
  };
26
26
  var GoogleImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
27
+ _inherits(GoogleImageryProvider, _UrlTemplateImageryPr);
28
+ var _super = _createSuper(GoogleImageryProvider);
27
29
  function GoogleImageryProvider() {
28
30
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
29
31
  _classCallCheck(this, GoogleImageryProvider);
@@ -31,9 +33,8 @@ var GoogleImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
31
33
  if (!options.subdomains || !options.subdomains.length) {
32
34
  options['subdomains'] = ['1', '2', '3'];
33
35
  }
34
- return _callSuper(this, GoogleImageryProvider, [options]);
36
+ return _super.call(this, options);
35
37
  }
36
- _inherits(GoogleImageryProvider, _UrlTemplateImageryPr);
37
38
  return _createClass(GoogleImageryProvider);
38
39
  }(_cesium.UrlTemplateImageryProvider);
39
40
  var _default = exports["default"] = GoogleImageryProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleImageryProvider.js","names":["_cesium","require","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","t","_toPrimitive","_typeof","r","e","Symbol","toPrimitive","call","TypeError","String","Number","_classCallCheck","instance","_callSuper","o","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","self","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","URL","ELEC","IMG","TER","GoogleImageryProvider","_UrlTemplateImageryPr","options","arguments","undefined","url","style","subdomains","UrlTemplateImageryProvider","_default","exports"],"sources":["map/base/imagery/google/GoogleImageryProvider.js"],"sourcesContent":["import { UrlTemplateImageryProvider } from 'cesium';\n\nlet URL = {\n ELEC:\n 'http://mt{s}.google.cn/vt/lyrs=m@207000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Galile',\n IMG: 'http://mt{s}.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali',\n TER:\n 'http://mt{s}.google.cn/vt/lyrs=t@131,r@227000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galile',\n};\n\nclass GoogleImageryProvider extends UrlTemplateImageryProvider {\n constructor(options = {}) {\n options['url'] = options.url || URL[options.style || 'ELEC'];\n if (!options.subdomains || !options.subdomains.length) {\n options['subdomains'] = ['1', '2', '3'];\n }\n super(options);\n }\n}\n\nexport default GoogleImageryProvider;\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAoD,SAAAC,kBAAAC,MAAA,EAAAC,KAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA,UAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA,GAAAE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,WAAAD,UAAA,CAAAE,YAAA,wBAAAF,UAAA,EAAAA,UAAA,CAAAG,QAAA,SAAAC,MAA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G,GAAG;EACNC,IAAI,EACA,8FAA8F;EAClGC,GAAG,EAAE,oEAAoE;EACzEC,GAAG,EACC;AACR,CAAC;AAAC,IAEIC,qBAAqB,0BAAAC,qBAAA;EACvB,SAAAD,sBAAA,EAA0B;IAAA,IAAdE,OAAO,GAAAC,SAAA,CAAA3D,MAAA,QAAA2D,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;IAAAlC,eAAA,OAAA+B,qBAAA;IACpBE,OAAO,CAAC,KAAK,CAAC,GAAGA,OAAO,CAACG,GAAG,IAAIT,GAAG,CAACM,OAAO,CAACI,KAAK,IAAI,MAAM,CAAC;IAC5D,IAAI,CAACJ,OAAO,CAACK,UAAU,IAAI,CAACL,OAAO,CAACK,UAAU,CAAC/D,MAAM,EAAE;MACnD0D,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC3C;IAAC,OAAA/B,UAAA,OAAA6B,qBAAA,GACKE,OAAO;EACjB;EAACb,SAAA,CAAAW,qBAAA,EAAAC,qBAAA;EAAA,OAAAhD,YAAA,CAAA+C,qBAAA;AAAA,EAP+BQ,kCAA0B;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAU/CV,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"GoogleImageryProvider.js","names":["_cesium","require","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","arg","_toPrimitive","_typeof","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","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","ELEC","IMG","TER","GoogleImageryProvider","_UrlTemplateImageryPr","_super","options","url","style","subdomains","UrlTemplateImageryProvider","_default","exports"],"sources":["map/base/imagery/google/GoogleImageryProvider.js"],"sourcesContent":["import { UrlTemplateImageryProvider } from 'cesium';\r\n\r\nlet URL = {\r\n ELEC:\r\n 'http://mt{s}.google.cn/vt/lyrs=m@207000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Galile',\r\n IMG: 'http://mt{s}.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali',\r\n TER:\r\n 'http://mt{s}.google.cn/vt/lyrs=t@131,r@227000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galile',\r\n};\r\n\r\nclass GoogleImageryProvider extends UrlTemplateImageryProvider {\r\n constructor(options = {}) {\r\n options['url'] = options.url || URL[options.style || 'ELEC'];\r\n if (!options.subdomains || !options.subdomains.length) {\r\n options['subdomains'] = ['1', '2', '3'];\r\n }\r\n super(options);\r\n }\r\n}\r\n\r\nexport default GoogleImageryProvider;\r\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAoD,SAAAC,kBAAAC,MAAA,EAAAC,KAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA,UAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA,GAAAE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,WAAAD,UAAA,CAAAE,YAAA,wBAAAF,UAAA,EAAAA,UAAA,CAAAG,QAAA,SAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAU,cAAA,CAAAN,UAAA,CAAAO,GAAA,GAAAP,UAAA;AAAA,SAAAQ,aAAAC,WAAA,EAAAC,UAAA,EAAAC,WAAA,QAAAD,UAAA,EAAAf,iBAAA,CAAAc,WAAA,CAAAG,SAAA,EAAAF,UAAA,OAAAC,WAAA,EAAAh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AAC,qBAAA;EAAAxC,SAAA,CAAAuC,qBAAA,EAAAC,qBAAA;EAAA,IAAAC,MAAA,GAAA7B,YAAA,CAAA2B,qBAAA;EACvB,SAAAA,sBAAA,EAA0B;IAAA,IAAdG,OAAO,GAAAnB,SAAA,CAAArD,MAAA,QAAAqD,SAAA,QAAA9B,SAAA,GAAA8B,SAAA,MAAG,CAAC,CAAC;IAAAzB,eAAA,OAAAyC,qBAAA;IACpBG,OAAO,CAAC,KAAK,CAAC,GAAGA,OAAO,CAACC,GAAG,IAAIR,GAAG,CAACO,OAAO,CAACE,KAAK,IAAI,MAAM,CAAC;IAC5D,IAAI,CAACF,OAAO,CAACG,UAAU,IAAI,CAACH,OAAO,CAACG,UAAU,CAAC3E,MAAM,EAAE;MACnDwE,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC3C;IAAC,OAAAD,MAAA,CAAA9C,IAAA,OACK+C,OAAO;EACjB;EAAC,OAAA/D,YAAA,CAAA4D,qBAAA;AAAA,EAP+BO,kCAA0B;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAU/CT,qBAAqB"}
@@ -8,30 +8,32 @@ exports["default"] = void 0;
8
8
  var _cesium = require("cesium");
9
9
  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); } }
10
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
+ 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); }
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
+ 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); }
15
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
16
+ 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); }; }
15
17
  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); }
16
18
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
17
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
+ 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; } }
18
20
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
- 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); }
20
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
21
  var MAP_URL = 'https://{s}.tianditu.gov.cn/DataServer?T={style}_w&x={x}&y={y}&l={z}&tk={key}';
22
22
  var TdtImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
23
+ _inherits(TdtImageryProvider, _UrlTemplateImageryPr);
24
+ var _super = _createSuper(TdtImageryProvider);
23
25
  function TdtImageryProvider() {
24
26
  var _this;
25
27
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
26
28
  _classCallCheck(this, TdtImageryProvider);
27
29
  var style = options.style;
28
30
  var _style = style === undefined || style === 'vec' || style === 'dark' ? 'vec' : style;
29
- _this = _callSuper(this, TdtImageryProvider, [{
31
+ _this = _super.call(this, {
30
32
  url: MAP_URL.replace(/\{style\}/g, _style).replace(/\{key\}/g, options.key || '13b4890427f17c692f9efed46b98db81'),
31
33
  subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
32
34
  tilingScheme: new _cesium.WebMercatorTilingScheme(),
33
35
  maximumLevel: 18
34
- }]);
36
+ });
35
37
  if (style === 'dark') {
36
38
  _this.defaultAlpha = options.alpha || 0.8; // 透明度
37
39
  _this.defaultContrast = options.contrast || -1; // 对比度
@@ -41,7 +43,6 @@ var TdtImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
41
43
  }
42
44
  return _this;
43
45
  }
44
- _inherits(TdtImageryProvider, _UrlTemplateImageryPr);
45
46
  return _createClass(TdtImageryProvider);
46
47
  }(_cesium.UrlTemplateImageryProvider);
47
48
  var _default = exports["default"] = TdtImageryProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"TdtImageryProvider.js","names":["_cesium","require","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","t","_toPrimitive","_typeof","r","e","Symbol","toPrimitive","call","TypeError","String","Number","_classCallCheck","instance","_callSuper","o","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","constructor","apply","self","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","MAP_URL","TdtImageryProvider","_UrlTemplateImageryPr","_this","options","arguments","undefined","style","_style","url","replace","subdomains","tilingScheme","WebMercatorTilingScheme","maximumLevel","defaultAlpha","alpha","defaultContrast","contrast","defaultBrightness","brightness","defaultHue","hue","defaultSaturation","saturation","UrlTemplateImageryProvider","_default","exports"],"sources":["map/base/imagery/tdt/TdtImageryProvider.js"],"sourcesContent":["import { UrlTemplateImageryProvider, WebMercatorTilingScheme } from 'cesium';\n\nconst MAP_URL = 'https://{s}.tianditu.gov.cn/DataServer?T={style}_w&x={x}&y={y}&l={z}&tk={key}';\n\nclass TdtImageryProvider extends UrlTemplateImageryProvider {\n constructor(options = {}) {\n const {style} = options;\n const _style = (style === undefined || style === 'vec' || style === 'dark') ? 'vec' : style;\n super({\n url: MAP_URL.replace(/\\{style\\}/g, _style).replace(\n /\\{key\\}/g,\n options.key || '13b4890427f17c692f9efed46b98db81',\n ),\n subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],\n tilingScheme: new WebMercatorTilingScheme(),\n maximumLevel: 18,\n });\n\n if (style === 'dark') {\n this.defaultAlpha = options.alpha || 0.8; // 透明度\n this.defaultContrast = options.contrast || -1; // 对比度\n this.defaultBrightness = options.brightness || 1; // 亮度\n this.defaultHue = options.hue || 3; // 色调\n this.defaultSaturation = options.saturation || 2.5; // 饱和度\n }\n }\n}\n\nexport default TdtImageryProvider;\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAA6E,SAAAC,kBAAAC,MAAA,EAAAC,KAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA,UAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA,GAAAE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,WAAAD,UAAA,CAAAE,YAAA,wBAAAF,UAAA,EAAAA,UAAA,CAAAG,QAAA,SAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAU,cAAA,CAAAN,UAAA,CAAAO,GAAA,GAAAP,UAAA;AAAA,SAAAQ,aAAAC,WAAA,EAAAC,UAAA,EAAAC,WAAA,QAAAD,UAAA,EAAAf,iBAAA,CAAAc,WAAA,CAAAG,SAAA,EAAAF,UAAA,OAAAC,WAAA,EAAAhB,iBAAA,CAAAc,WAAA,EAAAE,WAAA,GAAAP,MAAA,CAAAC,cAAA,CAAAI,WAAA,iBAAAN,QAAA,mBAAAM,WAAA;AAAA,SAAAH,eAAAO,C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KAAK,IAAIA,KAAK,KAAK,MAAM,GAAI,KAAK,GAAGA,KAAK;IAC3FJ,KAAA,GAAA5B,UAAA,OAAA0B,kBAAA,GAAM;MACFQ,GAAG,EAAET,OAAO,CAACU,OAAO,CAAC,YAAY,EAAEF,MAAM,CAAC,CAACE,OAAO,CAC9C,UAAU,EACVN,OAAO,CAAChD,GAAG,IAAI,kCACnB,CAAC;MACDuD,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;MAC5DC,YAAY,EAAE,IAAIC,+BAAuB,CAAC,CAAC;MAC3CC,YAAY,EAAE;IAClB,CAAC;IAED,IAAIP,KAAK,KAAK,MAAM,EAAE;MAClBJ,KAAA,CAAKY,YAAY,GAAGX,OAAO,CAACY,KAAK,IAAI,GAAG,CAAC,CAAC;MAC1Cb,KAAA,CAAKc,eAAe,GAAGb,OAAO,CAACc,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC;MAC/Cf,KAAA,CAAKgB,iBAAiB,GAAGf,OAAO,CAACgB,UAAU,IAAI,CAAC,CAAC,CAAC;MAClDjB,KAAA,CAAKkB,UAAU,GAAGjB,OAAO,CAACkB,GAAG,IAAI,CAAC,CAAC,CAAC;MACpCnB,KAAA,CAAKoB,iBAAiB,GAAGnB,OAAO,CAACoB,UAAU,IAAI,GAAG,CAAC,CAAC;IACxD;IAAC,OAAArB,KAAA;EACL;EAACV,SAAA,CAAAQ,kBAAA,EAAAC,qBAAA;EAAA,OAAA7C,YAAA,CAAA4C,kBAAA;AAAA,EArB4BwB,kCAA0B;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAwB5C1B,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"TdtImageryProvider.js","names":["_cesium","require","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","Constructor","protoProps","staticProps","prototype","arg","_toPrimitive","_typeof","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","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","MAP_URL","TdtImageryProvider","_UrlTemplateImageryPr","_super","_this","options","style","_style","url","replace","subdomains","tilingScheme","WebMercatorTilingScheme","maximumLevel","defaultAlpha","alpha","defaultContrast","contrast","defaultBrightness","brightness","defaultHue","hue","defaultSaturation","saturation","UrlTemplateImageryProvider","_default","exports"],"sources":["map/base/imagery/tdt/TdtImageryProvider.js"],"sourcesContent":["import { UrlTemplateImageryProvider, WebMercatorTilingScheme } from 'cesium';\r\n\r\nconst MAP_URL = 'https://{s}.tianditu.gov.cn/DataServer?T={style}_w&x={x}&y={y}&l={z}&tk={key}';\r\n\r\nclass TdtImageryProvider extends UrlTemplateImageryProvider {\r\n constructor(options = {}) {\r\n const {style} = options;\r\n const _style = (style === undefined || style === 'vec' || style === 'dark') ? 'vec' : style;\r\n super({\r\n url: MAP_URL.replace(/\\{style\\}/g, _style).replace(\r\n /\\{key\\}/g,\r\n options.key || '13b4890427f17c692f9efed46b98db81',\r\n ),\r\n subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],\r\n tilingScheme: new WebMercatorTilingScheme(),\r\n maximumLevel: 18,\r\n });\r\n\r\n if (style === 'dark') {\r\n this.defaultAlpha = options.alpha || 0.8; // 透明度\r\n this.defaultContrast = options.contrast || -1; // 对比度\r\n this.defaultBrightness = options.brightness || 1; // 亮度\r\n this.defaultHue = options.hue || 3; // 色调\r\n this.defaultSaturation = options.saturation || 2.5; // 饱和度\r\n }\r\n }\r\n}\r\n\r\nexport default TdtImageryProvider;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I,EAAE,IAAI,CAAC;MAC5DC,YAAY,EAAE,IAAIC,+BAAuB,CAAC,CAAC;MAC3CC,YAAY,EAAE;IAClB,CAAC;IAED,IAAIP,KAAK,KAAK,MAAM,EAAE;MAClBF,KAAA,CAAKU,YAAY,GAAGT,OAAO,CAACU,KAAK,IAAI,GAAG,CAAC,CAAC;MAC1CX,KAAA,CAAKY,eAAe,GAAGX,OAAO,CAACY,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC;MAC/Cb,KAAA,CAAKc,iBAAiB,GAAGb,OAAO,CAACc,UAAU,IAAI,CAAC,CAAC,CAAC;MAClDf,KAAA,CAAKgB,UAAU,GAAGf,OAAO,CAACgB,GAAG,IAAI,CAAC,CAAC,CAAC;MACpCjB,KAAA,CAAKkB,iBAAiB,GAAGjB,OAAO,CAACkB,UAAU,IAAI,GAAG,CAAC,CAAC;IACxD;IAAC,OAAAnB,KAAA;EACL;EAAC,OAAA5D,YAAA,CAAAyD,kBAAA;AAAA,EArB4BuB,kCAA0B;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAwB5CzB,kBAAkB"}
@@ -8,22 +8,24 @@ exports["default"] = void 0;
8
8
  var _cesium = require("cesium");
9
9
  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); } }
10
10
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
+ 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); }
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
+ 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); }
15
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
16
+ 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); }; }
15
17
  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); }
16
18
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
17
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
+ 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; } }
18
20
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
- 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); }
20
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
21
  var URL = {
22
22
  IMG: 'https://p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{reverseY}.jpg',
23
23
  ELEC: 'https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid={style}&scene=0&version=347',
24
24
  dark: 'https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid={style}&scene=0&version=347'
25
25
  };
26
26
  var TencentImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
27
+ _inherits(TencentImageryProvider, _UrlTemplateImageryPr);
28
+ var _super = _createSuper(TencentImageryProvider);
27
29
  function TencentImageryProvider() {
28
30
  var _this;
29
31
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -51,7 +53,7 @@ var TencentImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
51
53
  }
52
54
  };
53
55
  }
54
- _this = _callSuper(this, TencentImageryProvider, [options]);
56
+ _this = _super.call(this, options);
55
57
  if (options.style === 'dark') {
56
58
  _this.defaultContrast = options.contrast || -1; // 对比度
57
59
  _this.defaultBrightness = options.brightness || 1; // 亮度
@@ -60,7 +62,6 @@ var TencentImageryProvider = /*#__PURE__*/function (_UrlTemplateImageryPr) {
60
62
  }
61
63
  return _this;
62
64
  }
63
- _inherits(TencentImageryProvider, _UrlTemplateImageryPr);
64
65
  return _createClass(TencentImageryProvider);
65
66
  }(_cesium.UrlTemplateImageryProvider);
66
67
  var _default = exports["default"] = TencentImageryProvider;