-
Notifications
You must be signed in to change notification settings - Fork 188
/
indexTest.js
87 lines (87 loc) · 2.26 KB
/
indexTest.js
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
require('./src/download')({
'type': 'FeatureCollection',
'features': [{
'type': 'Feature',
'properties': {},
'geometry': {
'type': 'Polygon',
'coordinates': [
[
[
24.936046600341797,
60.175245406790246
],
[
24.920597076416016,
60.15577400466598
],
[
24.953556060791016,
60.1570553725571
],
[
24.936046600341797,
60.175245406790246
]
],
[
[
24.93523120880127,
60.169247224327165
],
[
24.945573806762695,
60.15874243076889
],
[
24.928064346313477,
60.15825127085746
],
[
24.93523120880127,
60.169247224327165
]
]
]
}
},
{
'type': 'Feature',
'properties': {},
'geometry': {
'type': 'LineString',
'coordinates': [
[
24.920940399169922,
60.17977000114811
],
[
24.953556060791016,
60.17486121440947
]
]
}
},
{
'type': 'Feature',
'properties': {},
'geometry': {
'type': 'Point',
'coordinates': [
24.925403594970703,
60.171830205844614
]
}
}
]
}, {
file: 'my_zip_filename', // if empty, filename will be download.zip
folder: 'my_internal_shapes_folder', // leave empty to put in root
outputType: 'blob',
compression: 'DEFLATE',
types: {
point: 'points',
polygon: 'polygons',
polyline: 'lines'
}
});