@mapcatch/util 2.0.6 → 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.
- package/dist/catchUtil.min.cjs.js +2928 -0
- package/dist/catchUtil.min.esm.js +44499 -42811
- package/dist/catchUtil.min.js +248 -248
- package/package.json +11 -2
- package/src/constants/annotation_color.js +0 -7
- package/src/constants/annotation_draw_style.js +0 -228
- package/src/constants/annotation_label_style.js +0 -76
- package/src/constants/annotation_style.js +0 -118
- package/src/constants/bmap_types.js +0 -44
- package/src/constants/cameras.js +0 -5
- package/src/constants/crs.js +0 -42099
- package/src/constants/crs_types.js +0 -22
- package/src/constants/default_layers.js +0 -149
- package/src/constants/dsm_colors.js +0 -10
- package/src/constants/error_codes.js +0 -44
- package/src/constants/height_colors.js +0 -1
- package/src/constants/index.js +0 -20
- package/src/constants/layer_folders.js +0 -6
- package/src/constants/layer_groups.js +0 -34
- package/src/constants/layer_groups_multispectral.js +0 -34
- package/src/constants/layer_icons.js +0 -19
- package/src/constants/map_style.js +0 -11
- package/src/constants/measurement_fields.js +0 -208
- package/src/constants/task_params.js +0 -33
- package/src/constants/tools.js +0 -20
- package/src/event/event.js +0 -191
- package/src/event/event_bus.js +0 -5
- package/src/event/index.js +0 -2
- package/src/gl-operations/constants.js +0 -9
- package/src/gl-operations/default_options.js +0 -98
- package/src/gl-operations/index.js +0 -533
- package/src/gl-operations/reglCommands/contours.js +0 -27
- package/src/gl-operations/reglCommands/default.js +0 -46
- package/src/gl-operations/reglCommands/hillshading.js +0 -340
- package/src/gl-operations/reglCommands/index.js +0 -6
- package/src/gl-operations/reglCommands/multiLayers.js +0 -303
- package/src/gl-operations/reglCommands/transitions.js +0 -111
- package/src/gl-operations/reglCommands/util.js +0 -71
- package/src/gl-operations/renderer.js +0 -210
- package/src/gl-operations/shaders/fragment/convertDem.js +0 -26
- package/src/gl-operations/shaders/fragment/convolutionSmooth.js +0 -55
- package/src/gl-operations/shaders/fragment/diffCalc.js +0 -34
- package/src/gl-operations/shaders/fragment/drawResult.js +0 -47
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvAmbientShadows.js +0 -79
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvDirect.js +0 -60
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalBaselayer.js +0 -31
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalColorscale.js +0 -61
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvMergeAndScaleTiles.js +0 -27
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvNormals.js +0 -26
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvSmooth.js +0 -54
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvSoftShadows.js +0 -81
- package/src/gl-operations/shaders/fragment/hillshading/hsPregen.js +0 -55
- package/src/gl-operations/shaders/fragment/interpolateColor.js +0 -66
- package/src/gl-operations/shaders/fragment/interpolateColorOnly.js +0 -50
- package/src/gl-operations/shaders/fragment/interpolateValue.js +0 -137
- package/src/gl-operations/shaders/fragment/multiAnalyze1Calc.js +0 -36
- package/src/gl-operations/shaders/fragment/multiAnalyze2Calc.js +0 -46
- package/src/gl-operations/shaders/fragment/multiAnalyze3Calc.js +0 -54
- package/src/gl-operations/shaders/fragment/multiAnalyze4Calc.js +0 -62
- package/src/gl-operations/shaders/fragment/multiAnalyze5Calc.js +0 -70
- package/src/gl-operations/shaders/fragment/multiAnalyze6Calc.js +0 -78
- package/src/gl-operations/shaders/fragment/single.js +0 -93
- package/src/gl-operations/shaders/transform.js +0 -22
- package/src/gl-operations/shaders/util/computeColor.glsl +0 -85
- package/src/gl-operations/shaders/util/getTexelValue.glsl +0 -10
- package/src/gl-operations/shaders/util/isCloseEnough.glsl +0 -9
- package/src/gl-operations/shaders/util/rgbaToFloat.glsl +0 -18
- package/src/gl-operations/shaders/vertex/double.js +0 -17
- package/src/gl-operations/shaders/vertex/multi3.js +0 -20
- package/src/gl-operations/shaders/vertex/multi4.js +0 -23
- package/src/gl-operations/shaders/vertex/multi5.js +0 -26
- package/src/gl-operations/shaders/vertex/multi6.js +0 -29
- package/src/gl-operations/shaders/vertex/single.js +0 -13
- package/src/gl-operations/shaders/vertex/singleNotTransformed.js +0 -12
- package/src/gl-operations/texture_manager.js +0 -141
- package/src/gl-operations/util.js +0 -336
- package/src/index.js +0 -20
- package/src/measure/index.js +0 -209
- package/src/measure/tile_cache.js +0 -88
- package/src/mvs/index.js +0 -26
- package/src/mvs/protos/index.js +0 -12
- package/src/mvs/protos/proto_10.js +0 -155
- package/src/observation_pretict.js +0 -168
- package/src/photo-parser/exif/gps_tags.js +0 -33
- package/src/photo-parser/exif/ifd1_tags.js +0 -22
- package/src/photo-parser/exif/index.js +0 -143
- package/src/photo-parser/exif/parse_image.js +0 -290
- package/src/photo-parser/exif/string_values.js +0 -137
- package/src/photo-parser/exif/tags.js +0 -75
- package/src/photo-parser/exif/tiff_tags.js +0 -35
- package/src/photo-parser/exif/util.js +0 -103
- package/src/photo-parser/image-size/detector.js +0 -24
- package/src/photo-parser/image-size/fromFile.js +0 -55
- package/src/photo-parser/image-size/index.js +0 -2
- package/src/photo-parser/image-size/lookup.js +0 -37
- package/src/photo-parser/image-size/types/bmp.js +0 -10
- package/src/photo-parser/image-size/types/cur.js +0 -16
- package/src/photo-parser/image-size/types/dds.js +0 -10
- package/src/photo-parser/image-size/types/gif.js +0 -11
- package/src/photo-parser/image-size/types/heif.js +0 -35
- package/src/photo-parser/image-size/types/icns.js +0 -112
- package/src/photo-parser/image-size/types/ico.js +0 -74
- package/src/photo-parser/image-size/types/index.js +0 -43
- package/src/photo-parser/image-size/types/j2c.js +0 -11
- package/src/photo-parser/image-size/types/jp2.js +0 -22
- package/src/photo-parser/image-size/types/jpg.js +0 -157
- package/src/photo-parser/image-size/types/ktx.js +0 -18
- package/src/photo-parser/image-size/types/png.js +0 -36
- package/src/photo-parser/image-size/types/pnm.js +0 -74
- package/src/photo-parser/image-size/types/psd.js +0 -10
- package/src/photo-parser/image-size/types/svg.js +0 -100
- package/src/photo-parser/image-size/types/tga.js +0 -14
- package/src/photo-parser/image-size/types/tiff.js +0 -92
- package/src/photo-parser/image-size/types/utils.js +0 -83
- package/src/photo-parser/image-size/types/webp.js +0 -67
- package/src/photo-parser/index.js +0 -185
- package/src/report/annotations_report.js +0 -446
- package/src/report/index.js +0 -2
- package/src/report/map_util.js +0 -81
- package/src/report/pdf_creator.js +0 -247
- package/src/report/report.js +0 -581
- package/src/transform.js +0 -207
- 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.
|
|
4
|
-
"main": "./dist/catchUtil.min.
|
|
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",
|
|
@@ -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
|
-
]
|