@mapgis/webclient-leaflet-plugin 17.2.0 → 17.2.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 (36) hide show
  1. package/README.md +22 -4
  2. package/dist/es5/webclient-common.min.js +5 -5
  3. package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
  4. package/dist/webclient-leaflet-plugin-es6.min.js +6 -6
  5. package/documention/ArcGISMapImageLayer.html +820 -0
  6. package/documention/ArcGISTileLayer.html +498 -0
  7. package/documention/EchartsLayer.html +261 -0
  8. package/documention/FeatureLayer.html +212 -0
  9. package/documention/FeatureLayerUtil.html +288 -0
  10. package/documention/IGSMapImageLayer.html +948 -0
  11. package/documention/IGSTileLayer.html +562 -0
  12. package/documention/MapLayer.html +330 -0
  13. package/documention/MapVLayer.html +320 -0
  14. package/documention/MapViewLeaflet.html +7 -7
  15. package/documention/Popup.html +4 -2
  16. package/documention/Screenshot.html +5 -3
  17. package/documention/SketchEditorLeaflet.html +76 -46
  18. package/documention/TileLayer.html +279 -0
  19. package/documention/TileLayerWMS.html +222 -0
  20. package/documention/VectorTileLayer.html +529 -0
  21. package/documention/WMSLayerView.html +689 -0
  22. package/documention/WebMapServiceLayer.html +723 -0
  23. package/documention/WebMapTileServiceLayer.html +754 -0
  24. package/documention/WebTileLayer.html +663 -0
  25. package/documention/Zondy.ThemeLayer.GeoFeatureThemeLayer.html +22 -22
  26. package/documention/Zondy.ThemeLayer.GraphThemeLayer.html +30 -30
  27. package/documention/Zondy.ThemeLayer.RandomThemeLayer.html +34 -34
  28. package/documention/Zondy.ThemeLayer.ThemeLayer.html +3 -3
  29. package/documention/Zondy.ThemeLayer.rangeThemeLayer.html +34 -34
  30. package/documention/Zondy.ThemeLayer.rankSymbolThemeLayer.html +47 -47
  31. package/documention/Zondy.ThemeLayer.simpleThemeLayer.html +33 -33
  32. package/documention/Zondy.ThemeLayer.uniqueThemeLayer.html +30 -30
  33. package/documention/Zondy.Widget.html +5 -5
  34. package/documention/global.html +454 -0
  35. package/documention/index.html +3 -3
  36. package/package.json +3 -2
@@ -0,0 +1,529 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">VectorTileLayer</span>
5
+
6
+ </header>
7
+
8
+
9
+
10
+
11
+
12
+ <section>
13
+
14
+ <article>
15
+ <div class="container-overview">
16
+
17
+
18
+ <div class='vertical-section'>
19
+ <div class="members">
20
+ <div class="member">
21
+
22
+
23
+
24
+
25
+ <h4 class="name" id="VectorTileLayer">
26
+ <a class="href-link" href="#VectorTileLayer">#</a>
27
+
28
+ <span class="code-name" id="VectorTileLayer" style="font-size:30px">
29
+
30
+ new VectorTileLayer<span class="signature">(url, options)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>矢量瓦片图层(Leaflet)</p>
39
+ </div>
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+ <h4>参数</h4>
51
+
52
+ <div class="table-container">
53
+ <table class="params table">
54
+ <thead>
55
+ <tr>
56
+
57
+ <th>名称</th>
58
+
59
+
60
+ <th>类型</th>
61
+
62
+
63
+ <th style="min-width: 100px;">默认值</th>
64
+
65
+
66
+ <th class="last">描述</th>
67
+ </tr>
68
+ </thead>
69
+
70
+ <tbody>
71
+
72
+
73
+
74
+ <tr class="deep-level-0">
75
+
76
+ <td class="name"><code>url</code></td>
77
+
78
+
79
+ <td class="type">
80
+
81
+
82
+ <span class="param-type">
83
+
84
+ String
85
+
86
+ </span>
87
+
88
+
89
+
90
+
91
+ </td>
92
+
93
+
94
+ <td class="default">
95
+
96
+ </td>
97
+
98
+
99
+ <td class="description last"><p>服务基地址</p></td>
100
+ </tr>
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <tr class="deep-level-0">
108
+
109
+ <td class="name"><code>options</code></td>
110
+
111
+
112
+ <td class="type">
113
+
114
+
115
+ <span class="param-type">
116
+
117
+ Object
118
+
119
+ </span>
120
+
121
+
122
+
123
+
124
+ </td>
125
+
126
+
127
+ <td class="default">
128
+
129
+ </td>
130
+
131
+
132
+ <td class="description last"><p>额外构造参数</p></td>
133
+ </tr>
134
+
135
+
136
+
137
+
138
+ <tr class="deep-level-1">
139
+
140
+ <td class="name"><code>style</code></td>
141
+
142
+
143
+ <td class="type">
144
+
145
+
146
+ <span class="param-type">
147
+
148
+ Object
149
+
150
+ </span>
151
+
152
+
153
+
154
+
155
+ </td>
156
+
157
+
158
+ <td class="default">
159
+
160
+ </td>
161
+
162
+
163
+ <td class="description last"><p>矢量瓦片样式</p></td>
164
+ </tr>
165
+
166
+
167
+
168
+
169
+ <tr class="deep-level-1">
170
+
171
+ <td class="name"><code>tileSize</code></td>
172
+
173
+
174
+ <td class="type">
175
+
176
+
177
+ <span class="param-type">
178
+
179
+ Number
180
+
181
+ </span>
182
+
183
+
184
+
185
+
186
+ </td>
187
+
188
+
189
+ <td class="default">
190
+
191
+ 256
192
+
193
+ </td>
194
+
195
+
196
+ <td class="description last"><p>瓦片大小</p></td>
197
+ </tr>
198
+
199
+
200
+
201
+
202
+ <tr class="deep-level-1">
203
+
204
+ <td class="name"><code>clippingArea</code></td>
205
+
206
+
207
+ <td class="type">
208
+
209
+
210
+ <span class="param-type">
211
+
212
+ Object
213
+
214
+ </span>
215
+
216
+
217
+
218
+
219
+ </td>
220
+
221
+
222
+ <td class="default">
223
+
224
+ </td>
225
+
226
+
227
+ <td class="description last"><p>图层几何裁剪对象</p></td>
228
+ </tr>
229
+
230
+
231
+
232
+
233
+ <tr class="deep-level-1">
234
+
235
+ <td class="name"><code>crsOptions</code></td>
236
+
237
+
238
+ <td class="type">
239
+
240
+
241
+ <span class="param-type">
242
+
243
+ Object
244
+
245
+ </span>
246
+
247
+
248
+
249
+
250
+ </td>
251
+
252
+
253
+ <td class="default">
254
+
255
+ </td>
256
+
257
+
258
+ <td class="description last"><p>相同坐标系的图层,但裁图方案不同时,设置此参数,可让图层进行叠加</p></td>
259
+ </tr>
260
+
261
+
262
+
263
+
264
+ <tr class="deep-level-1">
265
+
266
+ <td class="name"><code>minZoom</code></td>
267
+
268
+
269
+ <td class="type">
270
+
271
+
272
+ <span class="param-type">
273
+
274
+ Number
275
+
276
+ </span>
277
+
278
+
279
+
280
+
281
+ </td>
282
+
283
+
284
+ <td class="default">
285
+
286
+ 0
287
+
288
+ </td>
289
+
290
+
291
+ <td class="description last"><p>最小显示级数</p></td>
292
+ </tr>
293
+
294
+
295
+
296
+
297
+ <tr class="deep-level-1">
298
+
299
+ <td class="name"><code>maxZoom</code></td>
300
+
301
+
302
+ <td class="type">
303
+
304
+
305
+ <span class="param-type">
306
+
307
+ Number
308
+
309
+ </span>
310
+
311
+
312
+
313
+
314
+ </td>
315
+
316
+
317
+ <td class="default">
318
+
319
+ 18
320
+
321
+ </td>
322
+
323
+
324
+ <td class="description last"><p>最大显示级数</p></td>
325
+ </tr>
326
+
327
+
328
+
329
+
330
+ <tr class="deep-level-1">
331
+
332
+ <td class="name"><code>tokenKey</code></td>
333
+
334
+
335
+ <td class="type">
336
+
337
+
338
+ <span class="param-type">
339
+
340
+ String
341
+
342
+ </span>
343
+
344
+
345
+
346
+
347
+ </td>
348
+
349
+
350
+ <td class="default">
351
+
352
+ </td>
353
+
354
+
355
+ <td class="description last"><p>token名</p></td>
356
+ </tr>
357
+
358
+
359
+
360
+
361
+ <tr class="deep-level-1">
362
+
363
+ <td class="name"><code>tokenValue</code></td>
364
+
365
+
366
+ <td class="type">
367
+
368
+
369
+ <span class="param-type">
370
+
371
+ String
372
+
373
+ </span>
374
+
375
+
376
+
377
+
378
+ </td>
379
+
380
+
381
+ <td class="default">
382
+
383
+ </td>
384
+
385
+
386
+ <td class="description last"><p>token值</p></td>
387
+ </tr>
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+ </tbody>
396
+ </table>
397
+ </div>
398
+
399
+
400
+
401
+
402
+
403
+
404
+ <dl class="details">
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+ </dl>
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+ <h5>示例</h5>
461
+
462
+ <p class="code-caption"><h7 id='addLayer'>混合开发模式</h7></p>
463
+
464
+
465
+ <pre class="prettyprint"><code>// ES5引入方式
466
+ const { IGSVectorTileLayer } = zondy.Layer
467
+ const { initializeCRS, initializeOptions } = zondy.leaflet
468
+ // ES6引入方式
469
+ import { IGSVectorTileLayer } from "@mapgis/webclient-common"
470
+ import "@mapgis/webclient-leaflet-plugin"
471
+ const { initializeCRS, initializeOptions } = zondy.leaflet
472
+
473
+ // 构造一个IGSVectorTileLayer图层对象
474
+ const layer = new IGSVectorTileLayer({
475
+ // 服务基地址
476
+ url: "http://{ip}:{port}/igs/rest/services/{服务名}/VectorTileServer"
477
+ });
478
+ // 加载图层元数据
479
+ layer.load().then(function () {
480
+ // 构造地图视图的初始化参数
481
+ const crs = initializeCRS(layer)
482
+ const mapViewOptions = {
483
+ // 地图视图参考系
484
+ crs: crs,
485
+ // 初始化中心点
486
+ center: [31.147781205532336,112.21905099757561],
487
+ // 初始化级数
488
+ zoom: 7
489
+ }
490
+ // 构造Leaflet地图视图对象
491
+ const map = L.map('地图视图容器ID', mapViewOptions)
492
+ // 构造图层的初始化参数
493
+ const layerOptions = initializeOptions(layer)
494
+ // 添加图层到地图视图中
495
+ new zondy.leaflet.VectorTileLayer(layerOptions).addTo(map)
496
+ })</code></pre>
497
+
498
+
499
+
500
+
501
+ </div>
502
+ </div>
503
+ </div>
504
+
505
+
506
+ </div>
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+ </article>
528
+
529
+ </section>