@mapgis/webclient-cesium-plugin 17.0.7 → 17.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.
@@ -64,6 +64,8 @@ import { SketchEditorCesium } from "@mapgis/webclient-leaflet-plugin"
64
64
  <th>类型</th>
65
65
 
66
66
 
67
+ <th style="min-width: 100px;">默认值</th>
68
+
67
69
 
68
70
  <th class="last">描述</th>
69
71
  </tr>
@@ -93,6 +95,10 @@ import { SketchEditorCesium } from &quot;@mapgis/webclient-leaflet-plugin&quot;
93
95
  </td>
94
96
 
95
97
 
98
+ <td class="default">
99
+
100
+ </td>
101
+
96
102
 
97
103
  <td class="description last"><p>构造参数</p></td>
98
104
  </tr>
@@ -127,6 +133,10 @@ import { SketchEditorCesium } from &quot;@mapgis/webclient-leaflet-plugin&quot;
127
133
  </td>
128
134
 
129
135
 
136
+ <td class="default">
137
+
138
+ </td>
139
+
130
140
 
131
141
  <td class="description last"><p>地图视图对象</p></td>
132
142
  </tr>
@@ -154,6 +164,10 @@ import { SketchEditorCesium } from &quot;@mapgis/webclient-leaflet-plugin&quot;
154
164
  </td>
155
165
 
156
166
 
167
+ <td class="default">
168
+
169
+ </td>
170
+
157
171
 
158
172
  <td class="description last"><p>草图图层管对象</p></td>
159
173
  </tr>
@@ -181,6 +195,10 @@ import { SketchEditorCesium } from &quot;@mapgis/webclient-leaflet-plugin&quot;
181
195
  </td>
182
196
 
183
197
 
198
+ <td class="default">
199
+
200
+ </td>
201
+
184
202
 
185
203
  <td class="description last"><p>草图符号</p></td>
186
204
  </tr>
@@ -208,8 +226,52 @@ import { SketchEditorCesium } from &quot;@mapgis/webclient-leaflet-plugin&quot;
208
226
  </td>
209
227
 
210
228
 
229
+ <td class="default">
230
+
231
+ </td>
232
+
233
+
234
+ <td class="description last"><p>草图捕获配置项</p></td>
235
+ </tr>
236
+
237
+
238
+
239
+
240
+ <tr class="deep-level-1">
241
+
242
+ <td class="name"><code>arcType</code></td>
243
+
244
+
245
+ <td class="type">
246
+
247
+
248
+ <span class="param-type">
249
+
250
+ ArcType
251
+
252
+ </span>
253
+
254
+
255
+
256
+
257
+ </td>
258
+
259
+
260
+ <td class="default">
261
+
262
+ ArcType.rhumb
263
+
264
+ </td>
265
+
211
266
 
212
- <td class="description last"><p>草图捕获配置项
267
+ <td class="description last"><p>草图图形弧线类型<br>
268
+ 可选类型为:<br>
269
+ 1、ArcType.none:不考虑弧度<br>
270
+ 2、ArcType.geodesic:大地线(或称为大圆线)<br>
271
+ 3、ArcType.rhumb:等角航线<br>
272
+ 目前绘制线、区、矩形时,该属性生效<br>
273
+ 请注意当绘制几何的高程模式设置为OnTheGround(贴地)和OnTheScene(贴场景)时,arcType支持设置为ArcType.geodesic和ArcType.rhumb,
274
+ 当设置为ArcType.none时,内部会将该属性设置为ArcType.geodesic
213
275
  *</p></td>
214
276
  </tr>
215
277
 
@@ -34,6 +34,10 @@
34
34
 
35
35
 
36
36
 
37
+ <div class="description">
38
+ <p>UrlTemplateImageryProvider对象,详细API参考Cesium的UrlTemplateImageryProvider的API文档</p>
39
+ </div>
40
+
37
41
 
38
42
 
39
43
 
@@ -165,7 +169,47 @@
165
169
  </td>
166
170
 
167
171
 
168
- <td class="description last"><p>扩展参数,会将扩展参数中的费控参数拼接到请求接口上,示例:[{ key: '参数名', value: '参数值' }]</p></td>
172
+ <td class="description last"><p>扩展参数,会将扩展参数中的非空参数拼接到请求接口上,示例:[{ key: '参数名', value: '参数值' }]</p></td>
173
+ </tr>
174
+
175
+
176
+
177
+
178
+ <tr class="deep-level-1">
179
+
180
+ <td class="name"><code>isStretchImage</code></td>
181
+
182
+
183
+ <td class="type">
184
+
185
+
186
+ <span class="param-type">
187
+
188
+ Boolean
189
+
190
+ </span>
191
+ |
192
+
193
+ <span class="param-type">
194
+
195
+ undefined
196
+
197
+ </span>
198
+
199
+
200
+
201
+
202
+ </td>
203
+
204
+
205
+ <td class="default">
206
+
207
+ false
208
+
209
+ </td>
210
+
211
+
212
+ <td class="description last"><p>超过最大最小层级范围图像是否进行图像的拉伸。此值未定义或者设置为true时,如果图像level小于minimumLevel或者大于maximumLevel,图像会进行拉伸。反之,如果图像level小于minimumLevel或者大于maximumLevel,不会再请求图像以及拉伸图像</p></td>
169
213
  </tr>
170
214
 
171
215
 
@@ -360,7 +360,7 @@
360
360
  <h5>示例</h5>
361
361
 
362
362
 
363
- <pre class="prettyprint"><code>const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Map/湖北省4326/WFSServer'
364
363
  const renderer = new SimpleRenderer({
365
364
  //...
366
365
  })
367
366
  // 创建wfsLayer对象
368
367
  const wfsLayer = new WFSLayer({
369
368
  url,
370
369
  sublayerId: 'Map_湖北省4326:t70',
371
370
  })
372
371
  // 请求获取要素集
373
372
  const featureSet = await wfsLayer.queryFeatures()
374
373
  const features = featureSet.features
375
374
  // 为要素集设置renderer
376
375
  RendererUtil.updateRenderer(features, renderer)
377
376
  // 将要素集转换为原生Primitive对象
378
377
  const primitives = WFSLayerUtil.toPrimitive(features, {
379
378
  viewer
380
379
  })
381
380
  // 将Primitive对象添加到场景中
382
381
  for (let i = 0; i &lt; primitives.length; i++) {
383
382
  viewer.scene.primitives.add(primitives[i])
384
383
  }
384
+ <pre class="prettyprint"><code>const url = 'http://192.168.82.91:8089/igs/rest/services/Map/湖北省4326/WFSServer'
385
385
  const renderer = new SimpleRenderer({
386
386
  //...
387
387
  })
388
388
  // 创建wfsLayer对象
389
389
  const wfsLayer = new WFSLayer({
390
390
  url,
391
391
  sublayerId: 'Map_湖北省4326:t70',
392
392
  })
393
393
  // 请求获取要素集
394
394
  const featureSet = await wfsLayer.queryFeatures()
395
395
  const features = featureSet.features
396
396
  // 为要素集设置renderer
397
397
  RendererUtil.updateRenderer(features, renderer)
398
398
  // 将要素集转换为原生Primitive对象
399
399
  const primitives = WFSLayerUtil.toPrimitive(features, {
400
400
  viewer
401
401
  })
402
402
  // 将Primitive对象添加到场景中
403
403
  for (let i = 0; i &lt; primitives.length; i++) {
404
404
  viewer.scene.primitives.add(primitives[i])
405
405
  }
406
406
 
407
407
 
408
408
 
@@ -115,13 +115,13 @@
115
115
  <p class="code-caption"><h7>添加一个WMS服务:原生接口开发</h7></p>
116
116
 
117
117
 
118
- <pre class="prettyprint"><code>// ES5引入方式
119
118
  const provider = await WebMapServiceImageryProvider.fromUrl(url)
120
119
  viewer.imageryLayers.addImageryProvider(provider)
120
+ <pre class="prettyprint"><code>// ES5引入方式
121
121
  const provider = await WebMapServiceImageryProvider.fromUrl(url)
122
122
  viewer.imageryLayers.addImageryProvider(provider)
123
123
 
124
124
 
125
125
  <p class="code-caption"><h7>添加一个WMS服务:混合接口开发</h7></p>
126
126
 
127
127
 
128
- <pre class="prettyprint"><code>// ES5引入方式
129
128
  url: url
130
129
  // 获取provider的初始化参数
131
130
  const options = initializeOptions(layer, viewer)
132
131
  // 构造provider对象
133
132
  provider = new Cesium.WebMapServiceImageryProvider(options)
134
133
  // 添加图层到Cesium视图中
135
134
  cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
135
+ <pre class="prettyprint"><code>// ES5引入方式
136
136
  url: url
137
137
  // 获取provider的初始化参数
138
138
  const options = initializeOptions(layer, viewer)
139
139
  // 构造provider对象
140
140
  provider = new Cesium.WebMapServiceImageryProvider(options)
141
141
  // 添加图层到Cesium视图中
142
142
  cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
143
143
 
144
144
 
145
145
 
@@ -115,13 +115,13 @@
115
115
  <p class="code-caption"><h7>添加一个WMTS服务:原生接口开发</h7></p>
116
116
 
117
117
 
118
- <pre class="prettyprint"><code>// ES5引入方式
119
118
  const provider = await WebMapTileServiceImageryProvider.fromUrl(url)
120
119
  viewer.imageryLayers.addImageryProvider(provider)
120
+ <pre class="prettyprint"><code>// ES5引入方式
121
121
  const provider = await WebMapTileServiceImageryProvider.fromUrl(url)
122
122
  viewer.imageryLayers.addImageryProvider(provider)
123
123
 
124
124
 
125
125
  <p class="code-caption"><h7>添加一个WMTS服务:混合接口开发</h7></p>
126
126
 
127
127
 
128
- <pre class="prettyprint"><code>// ES5引入方式
129
128
  url: url
130
129
  // 获取provider的初始化参数
131
130
  const options = initializeOptions(layer, viewer)
132
131
  // 构造provider对象
133
132
  provider = new Cesium.WebMapTileServiceImageryProvider(options)
134
133
  // 添加图层到Cesium视图中
135
134
  cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
135
+ <pre class="prettyprint"><code>// ES5引入方式
136
136
  url: url
137
137
  // 获取provider的初始化参数
138
138
  const options = initializeOptions(layer, viewer)
139
139
  // 构造provider对象
140
140
  provider = new Cesium.WebMapTileServiceImageryProvider(options)
141
141
  // 添加图层到Cesium视图中
142
142
  cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
143
143
 
144
144
 
145
145
 
@@ -232,6 +232,8 @@
232
232
  <th>类型</th>
233
233
 
234
234
 
235
+ <th style="min-width: 100px;">默认值</th>
236
+
235
237
 
236
238
  <th class="last">描述</th>
237
239
  </tr>
@@ -261,6 +263,10 @@
261
263
  </td>
262
264
 
263
265
 
266
+ <td class="default">
267
+
268
+ </td>
269
+
264
270
 
265
271
  <td class="description last"><p>服务的基地址</p></td>
266
272
  </tr>
@@ -290,11 +296,58 @@
290
296
  </td>
291
297
 
292
298
 
299
+ <td class="default">
300
+
301
+ </td>
302
+
293
303
 
294
304
  <td class="description last"><p>实例化对象时提供的额外配置参数,若该对象中包含构造参数则会覆盖对应的构造参数</p></td>
295
305
  </tr>
296
306
 
297
307
 
308
+
309
+
310
+ <tr class="deep-level-1">
311
+
312
+ <td class="name"><code>isStretchImage</code></td>
313
+
314
+
315
+ <td class="type">
316
+
317
+
318
+ <span class="param-type">
319
+
320
+ Boolean
321
+
322
+ </span>
323
+ |
324
+
325
+ <span class="param-type">
326
+
327
+ undefined
328
+
329
+ </span>
330
+
331
+
332
+
333
+
334
+ </td>
335
+
336
+
337
+ <td class="default">
338
+
339
+ false
340
+
341
+ </td>
342
+
343
+
344
+ <td class="description last"><p>超过最大最小层级范围图像是否进行图像的拉伸。此值未定义或者设置为true时,如果图像level小于minimumLevel或者大于maximumLevel,图像会进行拉伸。反之,如果图像level小于minimumLevel或者大于maximumLevel,不会再请求图像以及拉伸图像</p></td>
345
+ </tr>
346
+
347
+
348
+
349
+
350
+
298
351
 
299
352
 
300
353
  </tbody>