-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpackage.json
362 lines (362 loc) · 17.4 KB
/
package.json
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
{
"name": "vscode-map-preview",
"displayName": "VSCode Map Preview",
"description": "VSCode extension for visually previewing geospatial file content (GeoJSON, KML, etc) on a map",
"version": "0.7.0",
"private": true,
"publisher": "jumpinjackie",
"engines": {
"vscode": "^1.38.0"
},
"repository": {
"type": "git",
"url": "https://github.com/jumpinjackie/vscode-map-preview"
},
"bugs": {
"url": "https://github.com/jumpinjackie/vscode-map-preview/issues"
},
"homepage": "https://github.com/jumpinjackie/vscode-map-preview/blob/master/README.md",
"categories": [
"Other"
],
"keywords": [
"map",
"gis",
"geospatial",
"geojson",
"kml"
],
"activationEvents": [
"onCommand:map.preview",
"onCommand:map.preview-with-proj"
],
"main": "./out/src/extension",
"contributes": {
"menus": {
"editor/title": [
{
"command": "map.preview",
"group": "navigation",
"when": "resourceExtname == .geojson || resourceExtname == .kml || resourceExtname == .csv || resourceExtname == .gpx || resourceExtname == .igc || resourceExtname == .gml"
},
{
"command": "map.preview-with-proj",
"group": "navigation",
"when": "resourceExtname == .geojson || resourceExtname == .kml || resourceExtname == .csv || resourceExtname == .gpx || resourceExtname == .igc || resourceExtname == .gml"
}
]
},
"configuration": {
"type": "object",
"title": "Map Preview Configuration",
"properties": {
"map.preview.defaultBaseLayer": {
"type": "string",
"enum": [
"stamen-toner",
"stamen-terrain",
"stamen-water",
"stadia-alidade-smooth",
"stadia-alidade-smooth-dark",
"stadia-outdoors",
"stadia-osm-bright",
"bing-aerial",
"bing-aerial-with-label",
"bing-road",
"bing-canvas-dark",
"osm"
],
"default": "osm",
"description": "The default base layer to use for map previews"
},
"map.preview.customLayers.base": {
"type": "array",
"description": "An array of custom base layers",
"items": {
"type": "object",
"title": "Layer",
"properties": {
"name": {
"type": "string",
"description": "The name of this base layer"
},
"kind": {
"type": "string",
"description": "The kind of base layer",
"enum": [
"xyz",
"wmts"
]
},
"sourceParams": {
"type": "array",
"description": "A series of key/value parameters for defining this base layer's source",
"properties": {
"name": {
"type": "string",
"description": "The name of this parameter"
},
"value": {
"type": "string",
"description": "The value of this parameter"
}
}
}
}
}
},
"map.preview.apikeys.stadiamaps": {
"type": "string",
"default": null,
"description": "API key for Stadia Maps. This is required if a stamen or stadia layer is your default base layer"
},
"map.preview.apikeys.bing": {
"type": "string",
"default": null,
"description": "API key for Bing Maps. This is required if bing layer is your default base layer"
},
"map.preview.debug.dumpContentPath": {
"type": "string",
"default": null,
"description": "A file path to dump the current preview content to. Used for debugging purposes. Disabled (null) by default"
},
"map.preview.coordinateDisplay.projection": {
"type": "string",
"default": "EPSG:4326",
"description": "The projection to use (default: EPSG:4326)"
},
"map.preview.coordinateDisplay.format": {
"type": "string",
"default": "Lat: {y}, Lng: {x}",
"description": "A format string describing how coordinates are to be formatted. The format string must contain the {x} and {y} coordinate placeholder tokens"
},
"map.preview.style.line.stroke.color": {
"type": "string",
"default": "rgba(49, 159, 211, 1)",
"description": "The default color to use for line strokes. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.line.stroke.width": {
"type": [
"string",
"number"
],
"default": 2,
"description": "The default thickness of line strokes. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.polygon.stroke.color": {
"type": "string",
"default": "rgba(49, 159, 211, 1)",
"description": "The default color to use for polygon borders. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.polygon.stroke.width": {
"type": [
"string",
"number"
],
"default": 2,
"description": "The default thickness of polygon borders. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.polygon.fill.color": {
"type": "string",
"default": "rgba(49, 159, 211, 0.1)",
"description": "The default color to use for polygon fills. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.vertex.enabled": {
"type": "boolean",
"default": false,
"description": "Controls whether to style vertices of line and polygon features"
},
"map.preview.style.vertex.radius": {
"type": "number",
"default": 3,
"description": "The default vertex radius in screen-space. Used to style vertices in lines and polygon layers. If `map.preview.style.vertex.enabled` is false, this setting has no effect. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.vertex.fill.color": {
"type": "string",
"default": "rgba(49, 159, 211, 1)",
"description": "The default vertex color. Used to style vertices in lines and polygon layers. If `map.preview.style.vertex.enabled` is false, this setting has no effect. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.point.radius": {
"type": "number",
"default": 5,
"description": "The default point radius in screen-space. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.point.stroke.color": {
"type": "string",
"default": "rgba(49, 159, 211, 1)",
"description": "The default color to use for point borders. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.point.stroke.width": {
"type": [
"string",
"number"
],
"default": 2,
"description": "The default thickness of point borders. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.style.point.fill.color": {
"type": "string",
"default": "rgba(49, 159, 211, 0.2)",
"description": "The default color to use for point fills. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.line.stroke.color": {
"type": "string",
"default": "rgba(255, 0, 0, 1)",
"description": "The default color to use for line strokes for selected features. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.line.stroke.width": {
"type": [
"string",
"number"
],
"default": 2,
"description": "The default thickness of line strokes for selected features. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.polygon.stroke.color": {
"type": "string",
"default": "rgba(255, 0, 0, 1)",
"description": "The default color to use for polygon borders for selected features. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.polygon.stroke.width": {
"type": [
"string",
"number"
],
"default": 2,
"description": "The default thickness of polygon borders for selected features. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.polygon.fill.color": {
"type": "string",
"default": "rgba(255, 0, 0, 0.1)",
"description": "The default color to use for polygon fills for selected features. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.point.stroke.color": {
"type": "string",
"default": "rgba(255, 0, 0, 1)",
"description": "The default color to use for point borders for selected features. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.point.stroke.width": {
"type": [
"string",
"number"
],
"default": 2,
"description": "The default thickness of point borders for selected features. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.selectionStyle.point.fill.color": {
"type": "string",
"default": "rgba(255, 0, 0, 0.2)",
"description": "The default color to use for point fills for selected features. This is an rgba(r, g, b, a) expression. NOTE: Doesn't affect KML if its features have been configured with inline styles"
},
"map.preview.projections": {
"type": "array",
"items": {
"type": "object",
"title": "",
"properties": {
"epsgCode": {
"type": "number",
"description": "The EPSG code"
},
"definition": {
"type": "string",
"description": "The proj4js definition for this EPSG code. Consult https://epsg.io/ for the correct proj4js definition"
}
}
},
"default": [],
"description": "A list of additional map projections to register with this extension. Such projections can be used with the `Map Preview (with projection)` command"
},
"map.preview.csvColumnAliases": {
"type": "array",
"items": {
"type": "object",
"title": "",
"properties": {
"xColumn": {
"type": "string",
"description": "The name of the column containing the X point coordinate"
},
"yColumn": {
"type": "string",
"description": "The name of the column containing the Y point coordinate"
}
}
},
"default": [
{
"xColumn": "x",
"yColumn": "y"
},
{
"xColumn": "lon",
"yColumn": "lat"
},
{
"xColumn": "long",
"yColumn": "lat"
},
{
"xColumn": "lng",
"yColumn": "lat"
},
{
"xColumn": "longitude",
"yColumn": "latitude"
},
{
"xColumn": "easting",
"yColumn": "northing"
}
],
"description": "A list of case-insensitive column name pairs to look for X/Y coordinates when attempting to preview a given CSV file"
},
"map.preview.declutterLabels": {
"type": "boolean",
"description": "Indicates whether to declutter labels of features. Useful when previewing label-heavy data like point KML files",
"default": false
}
}
},
"commands": [
{
"command": "map.preview",
"title": "Map Preview",
"icon": {
"light": "./static/icons/map-light.svg",
"dark": "./static/icons/map-dark.svg"
}
},
{
"command": "map.preview-with-proj",
"title": "Map Preview (with projection)",
"icon": {
"light": "./static/icons/map-proj-light.svg",
"dark": "./static/icons/map-proj-dark.svg"
}
}
],
"keybindings": [
{
"command": "map.preview",
"key": "alt+m"
},
{
"command": "map.preview-with-proj",
"key": "alt+m p"
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -p ./",
"watch": "tsc -w -p ./"
},
"dependencies": {},
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^13.5.0",
"@types/vscode": "^1.38.0",
"typescript": "^5.2.2"
}
}