1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
| import L from 'leaflet'
|
| export const basemapLayer0 = L.tileLayer(
| '/droneAppCustomServer/vec_c/wmts?layer=vec&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}&tk=e110584a27d506da2740edca951683f4',
| {
| maxZoom: 17,
| minZoom: 1,
| tileSize: 256,
| zoomOffset: 1,
| }
| )
| export const basemapLayer1 = L.tileLayer(
| '/droneAppCustomServer/cva_c/wmts?layer=cva&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}&tk=e110584a27d506da2740edca951683f4',
| {
| maxZoom: 17,
| minZoom: 1,
| tileSize: 256,
| zoomOffset: 1,
| }
| )
| export const basemapLayer2 = L.tileLayer(
| '/droneAppCustomServer/img_c/wmts?layer=img&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}&tk=e110584a27d506da2740edca951683f4',
| {
| maxZoom: 17,
| minZoom: 1,
| tileSize: 256,
| zoomOffset: 1,
| }
| )
| export const basemapLayer3 = L.tileLayer(
| '/droneAppCustomServer/cia_c/wmts?layer=cia&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}&tk=e110584a27d506da2740edca951683f4',
| {
| maxZoom: 17,
| minZoom: 1,
| tileSize: 256,
| zoomOffset: 1,
| }
| )
|
| const basePolylineParams = {
| paused: false, // 是否暂停
| reverse: false, // 是否反向
| delay: 800, // 速度(数值越小越快)
| dashArray: [5, 30],
| weight: 3,
| opacity: 0.9,
| }
|
| export const polylineOptions0 = {
| ...basePolylineParams,
| color: '#409eff',
| pulseColor: '#ffffff',
| }
|
| export const polylineOptions1 = {
| ...basePolylineParams,
| color: '#FF7411',
| pulseColor: '#ffffff',
| }
|
| export const polylineOptions2 = {
| ...basePolylineParams,
| color: '#00FF2F',
| pulseColor: '#ffffff',
| }
|
|