File tree 3 files changed +19
-17
lines changed
3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 46
46
"@babel/preset-typescript" : " ^7.9.0" ,
47
47
"@types/jest" : " ^25.2.1" ,
48
48
"@types/lodash" : " ^4.14.150" ,
49
- "@types/mapbox-gl" : " ^1.9.1" ,
50
49
"@types/node" : " ^13.13.5" ,
51
50
"@types/node-fetch" : " ^2.5.7" ,
52
51
"@types/semver" : " ^7.1.0" ,
Original file line number Diff line number Diff line change 20
20
import _ from 'lodash' ;
21
21
import { EMSClient , EmsTmsFormat , TMSServiceConfig } from './ems_client' ;
22
22
import { AbstractEmsService } from './ems_service' ;
23
- import { Sources , Style , VectorSource } from 'mapbox-gl' ;
24
23
25
- type EmsVectorSource = VectorSource & {
24
+ type EmsVectorSource = {
25
+ type : 'vector' ;
26
26
url : string ;
27
27
tiles : string [ ] ;
28
+ bounds ?: number [ ] ;
29
+ scheme ?: 'xyz' | 'tms' ;
30
+ minzoom ?: number ;
31
+ maxzoom ?: number ;
32
+ attribution ?: string ;
28
33
} ;
29
34
30
- type EmsVectorSources = Sources & {
35
+ type EmsVectorSources = {
31
36
[ sourceName : string ] : EmsVectorSource ;
32
37
} ;
33
38
34
- type EmsVectorStyle = Style & {
39
+ type EmsVectorStyle = {
35
40
sources : EmsVectorSources ;
36
41
sprite : string ;
37
42
glyphs : string ;
43
+ bearing ?: number ;
44
+ center ?: number [ ] ;
45
+ layers ?: unknown [ ] ;
46
+ metadata ?: unknown ;
47
+ name ?: string ;
48
+ pitch ?: number ;
49
+ light ?: unknown ;
50
+ transition ?: unknown ;
51
+ version : number ;
52
+ zoom ?: number ;
38
53
} ;
39
54
40
55
type EmsSprite = {
Original file line number Diff line number Diff line change 1221
1221
resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
1222
1222
integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==
1223
1223
1224
- " @types/geojson@* " :
1225
- version "7946.0.7"
1226
- resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad"
1227
- integrity sha512-wE2v81i4C4Ol09RtsWFAqg3BUitWbHSpSlIo+bNdsCJijO9sjme+zm+73ZMCa/qMC8UEERxzGbvmr1cffo2SiQ==
1228
-
1229
1224
" @types/graceful-fs@^4.1.2 " :
1230
1225
version "4.1.3"
1231
1226
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.3.tgz#039af35fe26bec35003e8d86d2ee9c586354348f"
1276
1271
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.150.tgz#649fe44684c3f1fcb6164d943c5a61977e8cf0bd"
1277
1272
integrity sha512-kMNLM5JBcasgYscD9x/Gvr6lTAv2NVgsKtet/hm93qMyf/D1pt+7jeEZklKJKxMVmXjxbRVQQGfqDSfipYCO6w==
1278
1273
1279
- " @types/mapbox-gl@^1.9.1 " :
1280
- version "1.9.1"
1281
- resolved "https://registry.yarnpkg.com/@types/mapbox-gl/-/mapbox-gl-1.9.1.tgz#78b62f8a1ead78bc525a4c1db84bb71fa0fcc579"
1282
- integrity sha512-5LS/fljbGjCPfjtOK5+pz8TT0PL4bBXTnN/PDbPtTQMqQdY/KWTWE4jRPuo0fL5wctd543DCptEUTydn+JK+gA==
1283
- dependencies :
1284
- " @types/geojson" " *"
1285
-
1286
1274
" @types/node-fetch@^2.5.7 " :
1287
1275
version "2.5.7"
1288
1276
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.7.tgz#20a2afffa882ab04d44ca786449a276f9f6bbf3c"
You can’t perform that action at this time.
0 commit comments