@supermapgis/iclient-ol 11.1.2

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 (91) hide show
  1. package/README.md +56 -0
  2. package/control/ChangeTileVersion.js +438 -0
  3. package/control/Logo.js +99 -0
  4. package/control/ScaleLine.js +164 -0
  5. package/control/index.js +6 -0
  6. package/core/MapExtend.js +49 -0
  7. package/core/StyleUtils.js +1253 -0
  8. package/core/Util.js +478 -0
  9. package/core/index.js +6 -0
  10. package/css/ChangeTileVersion.css +347 -0
  11. package/css/index.js +5 -0
  12. package/dist/iclient-openlayers-es6.js +121806 -0
  13. package/dist/iclient-openlayers-es6.min.js +8 -0
  14. package/dist/iclient-openlayers.css +668 -0
  15. package/dist/iclient-openlayers.js +132335 -0
  16. package/dist/iclient-openlayers.min.css +8 -0
  17. package/dist/iclient-openlayers.min.js +8 -0
  18. package/index.js +9 -0
  19. package/mapping/BaiduMap.js +121 -0
  20. package/mapping/ImageSuperMapRest.js +252 -0
  21. package/mapping/ImageTileSuperMapRest.js +99 -0
  22. package/mapping/InitMap.js +125 -0
  23. package/mapping/SuperMapCloud.js +56 -0
  24. package/mapping/Tianditu.js +152 -0
  25. package/mapping/TileSuperMapRest.js +358 -0
  26. package/mapping/WebMap.js +5185 -0
  27. package/mapping/index.js +11 -0
  28. package/mapping/webmap/Util.js +176 -0
  29. package/mapping/webmap/config/MunicipalCenter.json +1 -0
  30. package/mapping/webmap/config/ProvinceCenter.json +1 -0
  31. package/mapping/webmap/config/SampleDataInfo.json +55 -0
  32. package/namespace.js +150 -0
  33. package/overlay/DataFlow.js +114 -0
  34. package/overlay/FGB.js +97 -0
  35. package/overlay/Graph.js +436 -0
  36. package/overlay/GraphMap.js +91 -0
  37. package/overlay/Graphic.js +587 -0
  38. package/overlay/HeatMap.js +444 -0
  39. package/overlay/Label.js +964 -0
  40. package/overlay/Mapv.js +146 -0
  41. package/overlay/Range.js +127 -0
  42. package/overlay/RankSymbol.js +94 -0
  43. package/overlay/Turf.js +298 -0
  44. package/overlay/Unique.js +123 -0
  45. package/overlay/VectorTileSuperMapRest.js +466 -0
  46. package/overlay/graphic/CanvasRenderer.js +177 -0
  47. package/overlay/graphic/CloverShape.js +133 -0
  48. package/overlay/graphic/Graphic.js +174 -0
  49. package/overlay/graphic/HitCloverShape.js +63 -0
  50. package/overlay/graphic/WebGLRenderer.js +356 -0
  51. package/overlay/graphic/index.js +9 -0
  52. package/overlay/index.js +21 -0
  53. package/overlay/mapv/MapvCanvasLayer.js +104 -0
  54. package/overlay/mapv/MapvLayer.js +410 -0
  55. package/overlay/mapv/index.js +5 -0
  56. package/overlay/theme/GeoFeature.js +275 -0
  57. package/overlay/theme/Theme.js +585 -0
  58. package/overlay/theme/ThemeFeature.js +46 -0
  59. package/overlay/theme/index.js +6 -0
  60. package/overlay/vectortile/DeafultCanvasStyle.js +125 -0
  61. package/overlay/vectortile/MapboxStyles.js +375 -0
  62. package/overlay/vectortile/StyleMap.js +252 -0
  63. package/overlay/vectortile/VectorTileStyles.js +554 -0
  64. package/overlay/vectortile/index.js +7 -0
  65. package/overlay/vectortile/olExtends.js +382 -0
  66. package/package.json +29 -0
  67. package/services/AddressMatchService.js +60 -0
  68. package/services/ChartService.js +74 -0
  69. package/services/DataFlowService.js +118 -0
  70. package/services/DatasetService.js +104 -0
  71. package/services/DatasourceService.js +76 -0
  72. package/services/FeatureService.js +196 -0
  73. package/services/FieldService.js +53 -0
  74. package/services/GeoprocessingService.js +156 -0
  75. package/services/GridCellInfosService.js +53 -0
  76. package/services/ImageCollectionService.js +92 -0
  77. package/services/ImageService.js +69 -0
  78. package/services/KnowledgeGraphService.js +82 -0
  79. package/services/LayerInfoService.js +85 -0
  80. package/services/MapService.js +85 -0
  81. package/services/MeasureService.js +77 -0
  82. package/services/NetworkAnalyst3DService.js +88 -0
  83. package/services/NetworkAnalystService.js +252 -0
  84. package/services/ProcessingService.js +478 -0
  85. package/services/QueryService.js +116 -0
  86. package/services/ServiceBase.js +26 -0
  87. package/services/SpatialAnalystService.js +432 -0
  88. package/services/ThemeService.js +50 -0
  89. package/services/TrafficTransferAnalystService.js +88 -0
  90. package/services/WebPrintingJobService.js +112 -0
  91. package/services/index.js +27 -0
@@ -0,0 +1,252 @@
1
+ /* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.
2
+ * This program are made available under the terms of the Apache License, Version 2.0
3
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4
+ /**
5
+ * @constant pointMap
6
+ * @description 点图。
7
+ * @private
8
+ */
9
+ export var pointMap = {
10
+ "point-file": "pointFile",
11
+ "point-fill": "fillStyle",
12
+ "point-radius": "pointRadius",
13
+ "point-halo-radius": "pointHaloRadius",
14
+ "point-halo-color": "pointHaloColor",
15
+ "point-dx": "offsetX",
16
+ "point-dy": "offsetY",
17
+ "point-opacity": "globalAlpha",
18
+ "point-comp-op": "globalCompositeOperation"
19
+ };
20
+
21
+ /**
22
+ * @constant lineMap
23
+ * @description 线图。
24
+ * @private
25
+ */
26
+ export var lineMap = {
27
+ "line-color": "strokeStyle",
28
+ "line-width": "lineWidth",
29
+ "line-cap": "lineCap",
30
+ "line-join": "lineJoin",
31
+ "line-miterlimit": "miterLimit",
32
+ "line-dash-offset": "lineDashOffset",
33
+ /*expand*/
34
+ "line-opacity": "strokeOpacity",
35
+ "line-dasharray": "lineDasharray",
36
+ "line-offset": "offset",
37
+ "line-comp-op": "globalCompositeOperation"
38
+ };
39
+
40
+ /**
41
+ * @constant polygonMap
42
+ * @description 面图。
43
+ * @private
44
+ */
45
+ export var polygonMap = {
46
+ /*包括LINE的部分,用以设置面的外围边界*/
47
+ "line-color": "strokeStyle",
48
+ "line-width": "lineWidth",
49
+ "line-cap": "lineCap",
50
+ "line-join": "lineJoin",
51
+ "line-miterlimit": "miterLimit",
52
+ "line-dash-offset": "lineDashOffset",
53
+ /*expand*/
54
+ "line-opacity": "strokeOpacity",
55
+ "line-dasharray": "lineDasharray",
56
+
57
+ /*以下为面的特性*/
58
+ "polygon-fill": "fillStyle",
59
+ "polygon-dx": "offsetX",
60
+ "polygon-dy": "offsetY",
61
+ "polygon-opacity": "fillOpacity",
62
+ "polygon-comp-op": "globalCompositeOperation"
63
+ };
64
+
65
+ /**
66
+ * @enum StyleMap {Object}
67
+ * @description 地图样式。
68
+ * @category BaseTypes Constant
69
+ * @usage
70
+ * ```
71
+ * // 浏览器
72
+ * <script type="text/javascript" src="{cdn}"></script>
73
+ * <script>
74
+ * const result = {namespace}.StyleMap.CartoStyleMap;
75
+ *
76
+ * </script>
77
+ * // ES6 Import
78
+ * import { StyleMap } from '{npm}';
79
+ *
80
+ * const result = StyleMap.CartoStyleMap;
81
+ * ```
82
+ */
83
+ export var StyleMap = {
84
+ /** CartoCSS 中的 style 属性名与 Canvas 的 style 属性名的对应表 */
85
+ CartoStyleMap: {
86
+ "TEXT": {
87
+ //前两个属性值组成font
88
+ "text-size": "fontSize",
89
+ "text-face-name": "fontFamily",
90
+
91
+ "text-align": "textAlign",
92
+ "text-vertical-alignment": "textBaseline",
93
+ "text-horizontal-alignment": "textAlign",
94
+ /*expand*/
95
+ 'text-bold': 'bold',
96
+ 'text-weight': 'fontWeight',
97
+ "text-name": "textName",
98
+ "text-halo-radius": "haloRadius",
99
+ "text-halo-color": "backColor",
100
+ "text-fill": "foreColor",
101
+ "text-opacity": "globalAlpha",
102
+ "text-dx": "offsetX",
103
+ "text-dy": "offsetY",
104
+ "text-comp-op": "globalCompositeOperation"
105
+ },
106
+ /*expand*/
107
+ "POINT": pointMap,
108
+ "MULTIPOINT": pointMap,
109
+ "LINE": lineMap,
110
+ "LINESTRING": lineMap,
111
+ "MULTILINESTRING": lineMap,
112
+ "REGION": polygonMap,
113
+ "POLYGON": polygonMap,
114
+ "MULTIPOLYGON": polygonMap
115
+ },
116
+ /** 服务端传过来的 style 属性名与 Canvas 的 style 属性名的对应表。 */
117
+ ServerStyleMap: {
118
+ fillBackOpaque: {
119
+ canvasStyle: "",
120
+ type: "bool",
121
+ defaultValue: true
122
+ },
123
+ lineWidth: {
124
+ canvasStyle: "lineWidth",
125
+ type: "number",
126
+ unit: "mm",
127
+ defaultValue: 0.1
128
+ },
129
+ fillBackColor: {
130
+ canvasStyle: "",
131
+ type: "color",
132
+ defaultValue: "rgba(0,0,0,0)"
133
+ },
134
+ markerWidth: {
135
+ canvasStyle: "",
136
+ type: "number",
137
+ unit: "mm",
138
+ defaultValue: ""
139
+ },
140
+ markerAngle: {
141
+ canvasStyle: "",
142
+ type: "number",
143
+ unit: "degree",
144
+ defaultValue: ""
145
+ },
146
+ fillForeColor: {
147
+ canvasStyle: "fillStyle",
148
+ type: "color",
149
+ defaultValue: "rgba(0,0,0,0)"
150
+ },
151
+ foreColor: {
152
+ canvasStyle: "fillStyle",
153
+ type: "color",
154
+ defaultValue: "rgba(0,0,0,0)"
155
+ },
156
+ markerSize: {
157
+ canvasStyle: "markerSize",
158
+ type: "number",
159
+ unit: "mm",
160
+ defaultValue: 2.4
161
+ },
162
+ fillGradientOffsetRatioX: {
163
+ canvasStyle: "",
164
+ type: "number",
165
+ defaultValue: 0
166
+ },
167
+ fillGradientOffsetRatioY: {
168
+ canvasStyle: "",
169
+ type: "number",
170
+ defaultValue: 0
171
+ },
172
+ lineColor: {
173
+ canvasStyle: "strokeStyle",
174
+ type: "color",
175
+ defaultValue: "rgba(0,0,0,0)"
176
+ },
177
+ fillOpaqueRate: {
178
+ canvasStyle: "",
179
+ type: "number",
180
+ defaultValue: 100
181
+ },
182
+ markerHeight: {
183
+ canvasStyle: "",
184
+ type: "number",
185
+ unit: "mm",
186
+ defaultValue: 0
187
+ },
188
+ fillGradientMode: {
189
+ canvasStyle: "",
190
+ type: "string",
191
+ defaultValue: "NONE"
192
+ },
193
+ fillSymbolID: {
194
+ canvasStyle: "",
195
+ type: "number",
196
+ defaultValue: 0
197
+ },
198
+ fillGradientAngle: {
199
+ canvasStyle: "",
200
+ type: "number",
201
+ unit: "degree",
202
+ defaultValue: 0
203
+ },
204
+ markerSymbolID: {
205
+ canvasStyle: "",
206
+ type: "number",
207
+ defaultValue: 0
208
+ },
209
+ lineSymbolID: {
210
+ canvasStyle: "",
211
+ type: "number",
212
+ defaultValue: 0
213
+ }
214
+ },
215
+ /** Canvas 中的 globalCompositeOperation 属性值与 CartoCSS 中的 CompOp 属性值对照表。 */
216
+ CartoCompOpMap: {
217
+ "clear": "",
218
+ "src": "",
219
+ "dst": "",
220
+ "src-over": "source-over",
221
+ "dst-over": "destination-over",
222
+ "src-in": "source-in",
223
+ "dst-in": "destination-in",
224
+ "src-out": "source-out",
225
+ "dst-out": "destination-out",
226
+ "src-atop": "source-atop",
227
+ "dst-atop": "destination-atop",
228
+ "xor": "xor",
229
+ "plus": "lighter",
230
+ "minus": "",
231
+ "multiply": "",
232
+ "screen": "",
233
+ "overlay": "",
234
+ "darken": "",
235
+ "lighten": "lighter",
236
+ "color-dodge": "",
237
+ "color-burn": "",
238
+ "hard-light": "",
239
+ "soft-light": "",
240
+ "difference": "",
241
+ "exclusion": "",
242
+ "contrast": "",
243
+ "invert": "",
244
+ "invert-rgb": "",
245
+ "grain-merge": "",
246
+ "grain-extract": "",
247
+ "hue": "",
248
+ "saturation": "",
249
+ "color": "",
250
+ "value": ""
251
+ }
252
+ };