@supermapgis/iclient-ol 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/control/ChangeTileVersion.js +438 -0
- package/control/Logo.js +97 -0
- package/control/ScaleLine.js +164 -0
- package/control/index.js +6 -0
- package/core/MapExtend.js +49 -0
- package/core/StyleUtils.js +1253 -0
- package/core/Util.js +500 -0
- package/core/index.js +6 -0
- package/css/ChangeTileVersion.css +347 -0
- package/css/index.js +5 -0
- package/dist/iclient-openlayers-es6.js +124963 -0
- package/dist/iclient-openlayers-es6.min.js +8 -0
- package/dist/iclient-openlayers.css +668 -0
- package/dist/iclient-openlayers.js +142946 -0
- package/dist/iclient-openlayers.min.css +8 -0
- package/dist/iclient-openlayers.min.js +8 -0
- package/index.js +9 -0
- package/mapping/BaiduMap.js +121 -0
- package/mapping/ImageSuperMapRest.js +252 -0
- package/mapping/ImageTileSuperMapRest.js +99 -0
- package/mapping/InitMap.js +150 -0
- package/mapping/SuperMapCloud.js +56 -0
- package/mapping/Tianditu.js +152 -0
- package/mapping/TileSuperMapRest.js +374 -0
- package/mapping/WebMap.js +5485 -0
- package/mapping/index.js +11 -0
- package/mapping/webmap/Util.js +176 -0
- package/mapping/webmap/config/MunicipalCenter.json +1 -0
- package/mapping/webmap/config/ProvinceCenter.json +1 -0
- package/mapping/webmap/config/SampleDataInfo.json +55 -0
- package/namespace.js +150 -0
- package/overlay/DataFlow.js +114 -0
- package/overlay/FGB.js +100 -0
- package/overlay/Graph.js +439 -0
- package/overlay/GraphMap.js +140 -0
- package/overlay/Graphic.js +588 -0
- package/overlay/HeatMap.js +450 -0
- package/overlay/Label.js +966 -0
- package/overlay/Mapv.js +149 -0
- package/overlay/Range.js +129 -0
- package/overlay/RankSymbol.js +94 -0
- package/overlay/Turf.js +299 -0
- package/overlay/Unique.js +124 -0
- package/overlay/VectorTileSuperMapRest.js +501 -0
- package/overlay/graphic/CanvasRenderer.js +177 -0
- package/overlay/graphic/CloverShape.js +133 -0
- package/overlay/graphic/Graphic.js +174 -0
- package/overlay/graphic/HitCloverShape.js +64 -0
- package/overlay/graphic/WebGLRenderer.js +356 -0
- package/overlay/graphic/index.js +9 -0
- package/overlay/index.js +21 -0
- package/overlay/mapv/MapvCanvasLayer.js +104 -0
- package/overlay/mapv/MapvLayer.js +413 -0
- package/overlay/mapv/index.js +5 -0
- package/overlay/theme/GeoFeature.js +275 -0
- package/overlay/theme/Theme.js +587 -0
- package/overlay/theme/ThemeFeature.js +46 -0
- package/overlay/theme/index.js +6 -0
- package/overlay/vectortile/DeafultCanvasStyle.js +125 -0
- package/overlay/vectortile/MapboxStyles.js +377 -0
- package/overlay/vectortile/StyleMap.js +252 -0
- package/overlay/vectortile/VectorTileStyles.js +554 -0
- package/overlay/vectortile/index.js +7 -0
- package/overlay/vectortile/olExtends.js +382 -0
- package/package.json +30 -0
- package/services/AddressMatchService.js +60 -0
- package/services/ChartService.js +97 -0
- package/services/DataFlowService.js +119 -0
- package/services/DatasetService.js +104 -0
- package/services/DatasourceService.js +76 -0
- package/services/FeatureService.js +260 -0
- package/services/FieldService.js +53 -0
- package/services/GeoprocessingService.js +157 -0
- package/services/GridCellInfosService.js +53 -0
- package/services/ImageCollectionService.js +93 -0
- package/services/ImageService.js +70 -0
- package/services/KnowledgeGraphService.js +96 -0
- package/services/LayerInfoService.js +85 -0
- package/services/MapService.js +85 -0
- package/services/MeasureService.js +77 -0
- package/services/NetworkAnalyst3DService.js +93 -0
- package/services/NetworkAnalystService.js +268 -0
- package/services/ProcessingService.js +507 -0
- package/services/QueryService.js +116 -0
- package/services/ServiceBase.js +26 -0
- package/services/SpatialAnalystService.js +466 -0
- package/services/ThemeService.js +50 -0
- package/services/TrafficTransferAnalystService.js +93 -0
- package/services/WebPrintingJobService.js +112 -0
- 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
|
+
};
|