@mapcatch/util 2.0.5 → 2.0.7

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 (124) hide show
  1. package/dist/catchUtil.min.cjs.js +2928 -0
  2. package/dist/catchUtil.min.esm.js +44507 -42819
  3. package/dist/catchUtil.min.js +248 -248
  4. package/package.json +16 -23
  5. package/CHANGELOG.md +0 -72
  6. package/src/constants/annotation_color.js +0 -7
  7. package/src/constants/annotation_draw_style.js +0 -228
  8. package/src/constants/annotation_label_style.js +0 -76
  9. package/src/constants/annotation_style.js +0 -118
  10. package/src/constants/bmap_types.js +0 -44
  11. package/src/constants/cameras.js +0 -5
  12. package/src/constants/crs.js +0 -42099
  13. package/src/constants/crs_types.js +0 -22
  14. package/src/constants/default_layers.js +0 -149
  15. package/src/constants/dsm_colors.js +0 -10
  16. package/src/constants/error_codes.js +0 -44
  17. package/src/constants/height_colors.js +0 -1
  18. package/src/constants/index.js +0 -20
  19. package/src/constants/layer_folders.js +0 -6
  20. package/src/constants/layer_groups.js +0 -34
  21. package/src/constants/layer_groups_multispectral.js +0 -34
  22. package/src/constants/layer_icons.js +0 -19
  23. package/src/constants/map_style.js +0 -11
  24. package/src/constants/measurement_fields.js +0 -208
  25. package/src/constants/task_params.js +0 -33
  26. package/src/constants/tools.js +0 -20
  27. package/src/event/event.js +0 -192
  28. package/src/event/event_bus.js +0 -5
  29. package/src/event/index.js +0 -2
  30. package/src/gl-operations/constants.js +0 -9
  31. package/src/gl-operations/default_options.js +0 -98
  32. package/src/gl-operations/index.js +0 -533
  33. package/src/gl-operations/reglCommands/contours.js +0 -27
  34. package/src/gl-operations/reglCommands/default.js +0 -46
  35. package/src/gl-operations/reglCommands/hillshading.js +0 -340
  36. package/src/gl-operations/reglCommands/index.js +0 -6
  37. package/src/gl-operations/reglCommands/multiLayers.js +0 -303
  38. package/src/gl-operations/reglCommands/transitions.js +0 -111
  39. package/src/gl-operations/reglCommands/util.js +0 -71
  40. package/src/gl-operations/renderer.js +0 -210
  41. package/src/gl-operations/shaders/fragment/convertDem.js +0 -26
  42. package/src/gl-operations/shaders/fragment/convolutionSmooth.js +0 -55
  43. package/src/gl-operations/shaders/fragment/diffCalc.js +0 -34
  44. package/src/gl-operations/shaders/fragment/drawResult.js +0 -47
  45. package/src/gl-operations/shaders/fragment/hillshading/hsAdvAmbientShadows.js +0 -79
  46. package/src/gl-operations/shaders/fragment/hillshading/hsAdvDirect.js +0 -60
  47. package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalBaselayer.js +0 -31
  48. package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalColorscale.js +0 -61
  49. package/src/gl-operations/shaders/fragment/hillshading/hsAdvMergeAndScaleTiles.js +0 -27
  50. package/src/gl-operations/shaders/fragment/hillshading/hsAdvNormals.js +0 -26
  51. package/src/gl-operations/shaders/fragment/hillshading/hsAdvSmooth.js +0 -54
  52. package/src/gl-operations/shaders/fragment/hillshading/hsAdvSoftShadows.js +0 -81
  53. package/src/gl-operations/shaders/fragment/hillshading/hsPregen.js +0 -55
  54. package/src/gl-operations/shaders/fragment/interpolateColor.js +0 -66
  55. package/src/gl-operations/shaders/fragment/interpolateColorOnly.js +0 -50
  56. package/src/gl-operations/shaders/fragment/interpolateValue.js +0 -137
  57. package/src/gl-operations/shaders/fragment/multiAnalyze1Calc.js +0 -36
  58. package/src/gl-operations/shaders/fragment/multiAnalyze2Calc.js +0 -46
  59. package/src/gl-operations/shaders/fragment/multiAnalyze3Calc.js +0 -54
  60. package/src/gl-operations/shaders/fragment/multiAnalyze4Calc.js +0 -62
  61. package/src/gl-operations/shaders/fragment/multiAnalyze5Calc.js +0 -70
  62. package/src/gl-operations/shaders/fragment/multiAnalyze6Calc.js +0 -78
  63. package/src/gl-operations/shaders/fragment/single.js +0 -93
  64. package/src/gl-operations/shaders/transform.js +0 -22
  65. package/src/gl-operations/shaders/util/computeColor.glsl +0 -85
  66. package/src/gl-operations/shaders/util/getTexelValue.glsl +0 -10
  67. package/src/gl-operations/shaders/util/isCloseEnough.glsl +0 -9
  68. package/src/gl-operations/shaders/util/rgbaToFloat.glsl +0 -18
  69. package/src/gl-operations/shaders/vertex/double.js +0 -17
  70. package/src/gl-operations/shaders/vertex/multi3.js +0 -20
  71. package/src/gl-operations/shaders/vertex/multi4.js +0 -23
  72. package/src/gl-operations/shaders/vertex/multi5.js +0 -26
  73. package/src/gl-operations/shaders/vertex/multi6.js +0 -29
  74. package/src/gl-operations/shaders/vertex/single.js +0 -13
  75. package/src/gl-operations/shaders/vertex/singleNotTransformed.js +0 -12
  76. package/src/gl-operations/texture_manager.js +0 -141
  77. package/src/gl-operations/util.js +0 -336
  78. package/src/index.js +0 -20
  79. package/src/measure/index.js +0 -209
  80. package/src/measure/tile_cache.js +0 -88
  81. package/src/mvs/index.js +0 -26
  82. package/src/mvs/protos/index.js +0 -12
  83. package/src/mvs/protos/proto_10.js +0 -155
  84. package/src/observation_pretict.js +0 -168
  85. package/src/photo-parser/exif/gps_tags.js +0 -33
  86. package/src/photo-parser/exif/ifd1_tags.js +0 -22
  87. package/src/photo-parser/exif/index.js +0 -143
  88. package/src/photo-parser/exif/parse_image.js +0 -290
  89. package/src/photo-parser/exif/string_values.js +0 -137
  90. package/src/photo-parser/exif/tags.js +0 -75
  91. package/src/photo-parser/exif/tiff_tags.js +0 -35
  92. package/src/photo-parser/exif/util.js +0 -103
  93. package/src/photo-parser/image-size/detector.js +0 -24
  94. package/src/photo-parser/image-size/fromFile.js +0 -55
  95. package/src/photo-parser/image-size/index.js +0 -2
  96. package/src/photo-parser/image-size/lookup.js +0 -37
  97. package/src/photo-parser/image-size/types/bmp.js +0 -10
  98. package/src/photo-parser/image-size/types/cur.js +0 -16
  99. package/src/photo-parser/image-size/types/dds.js +0 -10
  100. package/src/photo-parser/image-size/types/gif.js +0 -11
  101. package/src/photo-parser/image-size/types/heif.js +0 -35
  102. package/src/photo-parser/image-size/types/icns.js +0 -112
  103. package/src/photo-parser/image-size/types/ico.js +0 -74
  104. package/src/photo-parser/image-size/types/index.js +0 -43
  105. package/src/photo-parser/image-size/types/j2c.js +0 -11
  106. package/src/photo-parser/image-size/types/jp2.js +0 -22
  107. package/src/photo-parser/image-size/types/jpg.js +0 -157
  108. package/src/photo-parser/image-size/types/ktx.js +0 -18
  109. package/src/photo-parser/image-size/types/png.js +0 -36
  110. package/src/photo-parser/image-size/types/pnm.js +0 -74
  111. package/src/photo-parser/image-size/types/psd.js +0 -10
  112. package/src/photo-parser/image-size/types/svg.js +0 -100
  113. package/src/photo-parser/image-size/types/tga.js +0 -14
  114. package/src/photo-parser/image-size/types/tiff.js +0 -92
  115. package/src/photo-parser/image-size/types/utils.js +0 -83
  116. package/src/photo-parser/image-size/types/webp.js +0 -67
  117. package/src/photo-parser/index.js +0 -185
  118. package/src/report/annotations_report.js +0 -446
  119. package/src/report/index.js +0 -2
  120. package/src/report/map_util.js +0 -81
  121. package/src/report/pdf_creator.js +0 -247
  122. package/src/report/report.js +0 -581
  123. package/src/transform.js +0 -207
  124. package/src/util.js +0 -671
package/package.json CHANGED
@@ -1,7 +1,16 @@
1
1
  {
2
2
  "name": "@mapcatch/util",
3
- "version": "2.0.5",
4
- "main": "./dist/catchUtil.min.esm.js",
3
+ "version": "2.0.7",
4
+ "main": "./dist/catchUtil.min.cjs.js",
5
+ "module": "./dist/catchUtil.min.esm.js",
6
+ "browser": "./dist/catchUtil.min.js",
7
+ "exports": {
8
+ ".": {
9
+ "require": "./dist/catchUtil.min.cjs.js",
10
+ "import": "./dist/catchUtil.min.esm.js",
11
+ "browser": "./dist/catchUtil.min.js"
12
+ }
13
+ },
5
14
  "repository": "",
6
15
  "author": "wanyanyan",
7
16
  "license": "MIT",
@@ -17,26 +26,6 @@
17
26
  "src/**/*.js": "yarn lint"
18
27
  },
19
28
  "dependencies": {
20
- "@turf/turf": "^7.1.0",
21
- "@xmldom/xmldom": "^0.9.2",
22
- "cdt2d": "^1.0.0",
23
- "eslint": "8.22.0",
24
- "gl-matrix": "^3.4.3",
25
- "glsl-float-to-rgba": "^1.0.0",
26
- "glsl-rgba-to-float": "^1.0.0",
27
- "lodash": "^4.17.21",
28
- "mapbox-gl": "^3.6.0",
29
- "mathjs": "12.3.0",
30
- "moment": "^2.29.4",
31
- "pbf": "3.2.1",
32
- "proj4": "^2.12.1",
33
- "protocol-buffers-schema": "^3.6.0",
34
- "regl": "^2.1.0",
35
- "satellite-geo-calc": "^0.0.7",
36
- "spark-md5": "^3.0.2",
37
- "svg-path-commander": "2.0.9",
38
- "upng-js": "^2.1.0",
39
- "uuid": "^9.0.0"
40
29
  },
41
30
  "devDependencies": {
42
31
  "@babel/core": "^7.25.2",
@@ -45,5 +34,9 @@
45
34
  "lint-staged": "^15.2.10",
46
35
  "vite": "^3.0.9",
47
36
  "vite-plugin-glslify": "^2.0.2"
48
- }
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "src"
41
+ ]
49
42
  }
package/CHANGELOG.md DELETED
@@ -1,72 +0,0 @@
1
- ## v1.0.2
2
-
3
- - [fix] 修复图片解析报错的问题。
4
-
5
- ## v1.0.3
6
-
7
- - [fix] 修复`util.formatDate(date)`日期一直是当前日期的bug
8
- - [add] 增加`util.getTaskTreeList()`工具函数
9
- - [add] 增加`layerGroups`、`bmapTypes`、`colors`、`defaultLayers`、`layerFolders`、`layerIcons`、`mapViewModes`、`taskParams`、`tools`常量
10
-
11
- ## v1.0.4
12
-
13
- - [add] 常量`layerGroups`增加覆盖物分组
14
- - [add] 常量`layerIcons`增加overlay/geojson/raster/object类型图标
15
-
16
- ## v1.0.5
17
-
18
- - [fix] 地图底图的服务地址修改为https协议
19
- - [fix] 工具函数`diffLayers`增加覆盖物图层更新的比较
20
-
21
- ## v1.0.6
22
-
23
- - [improve] `util.getPhotoInfo`函数返回值增加图像的width和height
24
-
25
- ## v1.0.7
26
-
27
- - [fix] 修复获取exif中可能存在宽高错误的问题
28
- - [improve] 获取照片属性时没有GPS也会返回其他的属性信息
29
-
30
- ## v1.0.8
31
-
32
- - [improve] 支持tiff等其他格式图片获取宽高
33
-
34
- ## v1.0.9
35
-
36
- - [fix] 修复华为相机的照片解析失败的问题
37
-
38
- ## v1.0.10
39
-
40
- - [add] 增加`util.hasNaN()`和`util.getRotationMatrix()`接口
41
- - [add] 增加常量`crsTypes` `measurementFields`
42
- - [improve] 更新常量`defaultLayers`和`layerFolders`
43
- - [delete] 删除`getPhotoTags`接口
44
-
45
- ## v1.0.11
46
-
47
- - [add] 增加`util.getWKTString(epsg_code)`接口
48
- - [add] 增加常量`crsList`
49
-
50
- ## v1.0.12
51
-
52
- - [improve] 点标注的显示字段增加经度(lng)和纬度(lat)
53
-
54
- ## v1.0.13
55
-
56
- - [improve] diffLayers检查所有图层的metadata,有变化则提交更新
57
-
58
- ## v1.0.14
59
-
60
- - [improve] addIcons2Map支持sdf符号
61
-
62
- ## v2.0.3
63
-
64
- - [add] 增加坐标转换函数库
65
- - [add] 增加量测工具集
66
- - [add] 增加空三解析工具集
67
- - [add] 增加报告生成函数
68
- - [improve] 坐标系列表增加“常用坐标系”分组
69
-
70
- ## v2.0.4
71
- - [add] 增加多光谱图层信息
72
- - [improve] glOperation渲染增加颜色配置
@@ -1,7 +0,0 @@
1
- export default {
2
- point: '#F02DB8',
3
- line: '#F0B32D',
4
- polygon: '#2DF0D7',
5
- vertex: '#2d8cf0',
6
- midPoint: '#2d8cf0'
7
- }
@@ -1,228 +0,0 @@
1
- import annotationColor from './annotation_color'
2
-
3
- export default [
4
- {
5
- 'id': 'gl-draw-polygon-fill-inactive',
6
- 'type': 'fill',
7
- 'filter': ['all',
8
- ['==', 'active', 'false'],
9
- ['==', '$type', 'Polygon'],
10
- ['!=', 'mode', 'static']
11
- ],
12
- 'paint': {
13
- 'fill-color': '#3bb2d0',
14
- 'fill-outline-color': '#3bb2d0',
15
- 'fill-opacity': 0.1
16
- }
17
- },
18
- {
19
- 'id': 'gl-draw-polygon-fill-active',
20
- 'type': 'fill',
21
- 'filter': ['all', ['==', 'active', 'true'], ['==', '$type', 'Polygon']],
22
- 'paint': {
23
- 'fill-color': ['string', ['get', 'user_color'], '#2d8cf0'],
24
- 'fill-outline-color': ['string', ['get', 'user_color'], '#2d8cf0'],
25
- 'fill-opacity': 0.1
26
- }
27
- },
28
- {
29
- 'id': 'gl-draw-polygon-stroke-inactive',
30
- 'type': 'line',
31
- 'filter': ['all',
32
- ['==', 'active', 'false'],
33
- ['==', '$type', 'Polygon'],
34
- ['!=', 'mode', 'static']
35
- ],
36
- 'layout': {
37
- 'line-cap': 'round',
38
- 'line-join': 'round'
39
- },
40
- 'paint': {
41
- 'line-color': '#3bb2d0',
42
- 'line-width': 2
43
- }
44
- },
45
- {
46
- 'id': 'gl-draw-polygon-stroke-active_stroke',
47
- 'type': 'line',
48
- 'filter': ['all', ['==', 'active', 'true'], ['==', '$type', 'Polygon']],
49
- 'layout': {
50
- 'line-cap': 'round',
51
- 'line-join': 'round'
52
- },
53
- 'paint': {
54
- 'line-color': '#ffffff',
55
- 'line-width': 4
56
- }
57
- },
58
- {
59
- 'id': 'gl-draw-polygon-stroke-active',
60
- 'type': 'line',
61
- 'filter': ['all', ['==', 'active', 'true'], ['==', '$type', 'Polygon']],
62
- 'layout': {
63
- 'line-cap': 'round',
64
- 'line-join': 'round'
65
- },
66
- 'paint': {
67
- 'line-color': ['string', ['get', 'user_color'], '#2d8cf0'],
68
- 'line-width': 2
69
- }
70
- },
71
- {
72
- 'id': 'gl-draw-line-inactive',
73
- 'type': 'line',
74
- 'filter': ['all',
75
- ['==', 'active', 'false'],
76
- ['==', '$type', 'LineString'],
77
- ['!=', 'mode', 'static']
78
- ],
79
- 'layout': {
80
- 'line-cap': 'round',
81
- 'line-join': 'round'
82
- },
83
- 'paint': {
84
- 'line-color': '#3bb2d0',
85
- 'line-width': 2
86
- }
87
- },
88
- {
89
- 'id': 'gl-draw-line-active_stroke',
90
- 'type': 'line',
91
- 'filter': ['all',
92
- ['==', '$type', 'LineString'],
93
- ['==', 'active', 'true']
94
- ],
95
- 'layout': {
96
- 'line-cap': 'round',
97
- 'line-join': 'round'
98
- },
99
- 'paint': {
100
- 'line-color': '#ffffff',
101
- 'line-width': 4
102
- }
103
- },
104
- {
105
- 'id': 'gl-draw-line-active',
106
- 'type': 'line',
107
- 'filter': ['all',
108
- ['==', '$type', 'LineString'],
109
- ['==', 'active', 'true']
110
- ],
111
- 'layout': {
112
- 'line-cap': 'round',
113
- 'line-join': 'round'
114
- },
115
- 'paint': {
116
- 'line-color': ['string', ['get', 'user_color'], '#2d8cf0'],
117
- 'line-width': 2
118
- }
119
- },
120
- {
121
- 'id': 'gl-draw-polygon-and-line-vertex-stroke-inactive',
122
- 'type': 'circle',
123
- 'filter': ['all',
124
- ['==', 'meta', 'vertex'],
125
- ['==', '$type', 'Point'],
126
- ['!=', 'mode', 'static']
127
- ],
128
- 'paint': {
129
- 'circle-radius': 7,
130
- 'circle-color': '#fff'
131
- }
132
- },
133
- {
134
- 'id': 'gl-draw-polygon-and-line-vertex-inactive',
135
- 'type': 'circle',
136
- 'filter': ['all',
137
- ['==', 'meta', 'vertex'],
138
- ['==', '$type', 'Point'],
139
- ['!=', 'mode', 'static']
140
- ],
141
- 'paint': {
142
- 'circle-radius': 5,
143
- 'circle-color': annotationColor.vertex
144
- }
145
- },
146
- {
147
- 'id': 'gl-draw-point-inactive',
148
- 'type': 'circle',
149
- 'filter': ['all',
150
- ['==', 'active', 'false'],
151
- ['==', '$type', 'Point'],
152
- ['==', 'meta', 'feature'],
153
- ['!=', 'mode', 'static']
154
- ],
155
- 'paint': {
156
- 'circle-radius': 5,
157
- 'circle-color': '#ffffff'
158
- }
159
- },
160
- {
161
- 'id': 'gl-draw-point-active',
162
- 'type': 'circle',
163
- 'filter': ['all',
164
- ['==', '$type', 'Point'],
165
- ['!=', 'meta', 'midpoint'],
166
- ['==', 'active', 'true']],
167
- 'paint': {
168
- 'circle-radius': 5,
169
- 'circle-color': '#2d8cf0'
170
- }
171
- },
172
- {
173
- 'id': 'gl-draw-polygon-midpoint',
174
- 'type': 'symbol',
175
- 'filter': ['all',
176
- ['==', '$type', 'Point'],
177
- ['==', 'meta', 'midpoint']],
178
- 'layout': {
179
- 'icon-image': 'add',
180
- 'icon-size': 0.6
181
- }
182
- },
183
- {
184
- 'id': 'gl-draw-polygon-fill-static',
185
- 'type': 'fill',
186
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'Polygon']],
187
- 'paint': {
188
- 'fill-color': '#3bb2d0',
189
- 'fill-outline-color': '#3bb2d0',
190
- 'fill-opacity': 0.1
191
- }
192
- },
193
- {
194
- 'id': 'gl-draw-polygon-stroke-static',
195
- 'type': 'line',
196
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'Polygon']],
197
- 'layout': {
198
- 'line-cap': 'round',
199
- 'line-join': 'round'
200
- },
201
- 'paint': {
202
- 'line-color': '#3bb2d0',
203
- 'line-width': 2
204
- }
205
- },
206
- {
207
- 'id': 'gl-draw-line-static',
208
- 'type': 'line',
209
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'LineString']],
210
- 'layout': {
211
- 'line-cap': 'round',
212
- 'line-join': 'round'
213
- },
214
- 'paint': {
215
- 'line-color': '#3bb2d0',
216
- 'line-width': 2
217
- }
218
- },
219
- {
220
- 'id': 'gl-draw-point-static',
221
- 'type': 'circle',
222
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'Point']],
223
- 'paint': {
224
- 'circle-radius': 7,
225
- 'circle-color': '#3bb2d0'
226
- }
227
- }
228
- ]
@@ -1,76 +0,0 @@
1
- export default [
2
- {
3
- 'id': 'annotation_name_label',
4
- 'type': 'symbol',
5
- source: 'annotations_label',
6
- metadata: {
7
- layerType: 'label'
8
- },
9
- paint: {
10
- 'text-color': '#000000',
11
- 'text-halo-color': '#ffffff',
12
- 'text-halo-width': 1.5,
13
- 'text-opacity': [
14
- 'case',
15
- ['boolean', ['feature-state', 'hovered'], false], 1,
16
- 0
17
- ]
18
- },
19
- layout: {
20
- 'text-field': ['get', 'name'],
21
- 'text-size': 12,
22
- 'text-anchor': 'bottom',
23
- 'text-rotate': ['get', 'angle'],
24
- 'text-allow-overlap': true,
25
- 'text-line-height': 2,
26
- 'text-offset': [
27
- 'case',
28
- ['boolean', ['==', ['get', 'type'], 'point'], false], [0, -1.8],
29
- [0, 0]
30
- ]
31
- }
32
- },
33
- {
34
- 'id': 'annotation_line_label',
35
- 'type': 'symbol',
36
- source: 'annotations_label',
37
- metadata: {
38
- layerType: 'label'
39
- },
40
- filter: ['==', 'type', 'line'],
41
- paint: {
42
- 'text-color': '#000000',
43
- 'text-halo-color': '#ffffff',
44
- 'text-halo-width': 1.5
45
- },
46
- layout: {
47
- 'text-field': ['concat', ['number-format', ['get', 'distance2d'], { 'min-fraction-digits': 2, 'max-fraction-digits': 2 }], ' m'],
48
- 'text-size': 12,
49
- 'text-anchor': 'top',
50
- 'text-rotate': ['get', 'angle'],
51
- 'text-allow-overlap': true,
52
- 'text-line-height': 1.5
53
- }
54
- },
55
- {
56
- 'id': 'annotation_polygon_label',
57
- 'type': 'symbol',
58
- source: 'annotations_label',
59
- metadata: {
60
- layerType: 'label'
61
- },
62
- filter: ['==', 'type', 'polygon'],
63
- paint: {
64
- 'text-color': '#000000',
65
- 'text-halo-color': '#ffffff',
66
- 'text-halo-width': 1.5
67
- },
68
- layout: {
69
- 'text-field': ['concat', ['number-format', ['get', 'area2d'], { 'min-fraction-digits': 2, 'max-fraction-digits': 2 }], ' ㎡'],
70
- 'text-size': 12,
71
- 'text-anchor': 'top',
72
- 'text-allow-overlap': true,
73
- 'text-line-height': 1.5
74
- }
75
- }
76
- ]
@@ -1,118 +0,0 @@
1
- export default [
2
- {
3
- 'id': 'annotation_polygon',
4
- 'type': 'fill',
5
- source: 'annotations',
6
- metadata: {
7
- layerType: 'annotation'
8
- },
9
- filter: ['all', ['==', '$type', 'Polygon'], ['==', 'visible', true]],
10
- paint: {
11
- 'fill-color': ['get', 'color'],
12
- 'fill-opacity': [
13
- 'case',
14
- ['boolean', ['feature-state', 'selected'], false], 0,
15
- 0.2
16
- ]
17
- }
18
- },
19
- // {
20
- // 'id': 'annotation_circle',
21
- // 'type': 'circle',
22
- // source: 'annotations',
23
- // metadata: {
24
- // layerType: 'annotation'
25
- // },
26
- // filter: ['all', ['==', '$type', 'Point'], ['==', 'visible', true]],
27
- // paint: {
28
- // 'circle-color': ['get', 'color'],
29
- // 'circle-radius': 5,
30
- // 'circle-opacity': [
31
- // 'case',
32
- // ['boolean', ['feature-state', 'selected'], false], 0,
33
- // 1
34
- // ],
35
- // 'circle-stroke-color': '#ffffff',
36
- // 'circle-stroke-opacity': [
37
- // 'case',
38
- // ['boolean', ['feature-state', 'selected'], false], 0,
39
- // 1
40
- // ],
41
- // 'circle-stroke-width': 1
42
- // }
43
- // },
44
- {
45
- 'id': 'annotation_marker',
46
- 'type': 'symbol',
47
- source: 'annotations',
48
- metadata: {
49
- layerType: 'annotation'
50
- },
51
- filter: ['all', ['==', '$type', 'Point'], ['==', 'visible', true]],
52
- 'layout': {
53
- 'icon-image': 'locate',
54
- 'icon-size': 1,
55
- 'icon-allow-overlap': true,
56
- 'icon-offset': [0, -15]
57
- },
58
- 'paint': {
59
- 'icon-color': ['get', 'color'],
60
- 'icon-halo-width': [
61
- 'case',
62
- ['boolean', ['feature-state', 'hovered'], false], 4,
63
- ['boolean', ['feature-state', 'selected'], false], 4,
64
- 0
65
- ],
66
- 'icon-halo-color': '#ffffff',
67
- 'icon-halo-blur': 0
68
- }
69
- },
70
- {
71
- 'id': 'annotation_line_stroke',
72
- 'type': 'line',
73
- source: 'annotations',
74
- metadata: {
75
- layerType: 'annotation'
76
- },
77
- filter: ['all', ['any', ['==', '$type', 'Polygon'], ['==', '$type', 'LineString']], ['==', 'visible', true]],
78
- 'layout': {
79
- 'line-cap': 'round',
80
- 'line-join': 'round'
81
- },
82
- paint: {
83
- 'line-color': '#ffffff',
84
- 'line-opacity': [
85
- 'case',
86
- ['boolean', ['feature-state', 'selected'], false], 0,
87
- 1
88
- ],
89
- 'line-width': [
90
- 'case',
91
- ['boolean', ['feature-state', 'hovered'], false], 4,
92
- 0
93
- ]
94
- }
95
- },
96
- {
97
- 'id': 'annotation_line',
98
- 'type': 'line',
99
- source: 'annotations',
100
- metadata: {
101
- layerType: 'annotation'
102
- },
103
- filter: ['all', ['any', ['==', '$type', 'Polygon'], ['==', '$type', 'LineString']], ['==', 'visible', true]],
104
- 'layout': {
105
- 'line-cap': 'round',
106
- 'line-join': 'round'
107
- },
108
- paint: {
109
- 'line-color': ['get', 'color'],
110
- 'line-opacity': [
111
- 'case',
112
- ['boolean', ['feature-state', 'selected'], false], 0,
113
- 1
114
- ],
115
- 'line-width': 2
116
- }
117
- }
118
- ]
@@ -1,44 +0,0 @@
1
- export default [
2
- {
3
- type: 'image',
4
- img: 'satellite',
5
- name: '影像地图',
6
- items: [
7
- { // 影像地图
8
- type: 'raster',
9
- tileSize: 256,
10
- tiles: ['http://ecn.t3.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=1'],
11
- maxzoom: 19,
12
- layerType:'bmap'
13
- },
14
- { // 影像标注
15
- type: 'raster',
16
- tileSize: 256,
17
- tiles: ['https://t0.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=bfc12ce6bd94a4449ad626b8a0b709d0'],
18
- maxzoom: 18,
19
- layerType:'bmap'
20
- }
21
- ]
22
- },
23
- {
24
- type: 'vector_standard',
25
- img: 'vector_standard',
26
- name: '矢量地图',
27
- items: [
28
- { // 矢量淡雅
29
- type: 'raster',
30
- tileSize: 256,
31
- tiles: ['https://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=bfc12ce6bd94a4449ad626b8a0b709d0'],
32
- maxzoom: 18,
33
- layerType:'bmap'
34
- },
35
- {
36
- type: 'raster',
37
- tileSize: 256,
38
- tiles: ['https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=bfc12ce6bd94a4449ad626b8a0b709d0'],
39
- maxzoom: 18,
40
- layerType:'bmap'
41
- }
42
- ]
43
- }
44
- ]
@@ -1,5 +0,0 @@
1
- export default {
2
- normal: ['FC6310R', 'FC6310', 'M3E'],
3
- infrared: ['M3T'],
4
- multispectral: ['FC6360']
5
- }