@elastic/ems-client 7.15.0 → 8.1.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
5
5
 
6
+ ## [8.1.0] - 2021-11-09
7
+
8
+ ### Changed
9
+ - Default EMS version is 8.1
10
+ - Export EmsSprite and EmsSpritesheet types
11
+ - Inherit types from maplibre-gl
12
+
13
+ ## [8.0.0] - 2021-10-20
14
+
15
+ ### Changed
16
+ - Default EMS version is 8.0
17
+ - Remove unused API descriptors
18
+
19
+ ## [7.16.0] - 2021-10-13
20
+
21
+ ### Changed
22
+ - Default EMS version is 7.16
23
+ - Update dependencies using `yarn upgrade`
24
+ - Better error handling for HTTP responses
25
+
26
+ ## [7.15.1] - 2021-09-01
27
+
28
+ ### Changed
29
+ - Unpinned `semver` dependency [#77](https://github.com/elastic/ems-client/pull/77)
30
+
6
31
  ## [7.15.0] - 2021-08-12
7
32
 
8
33
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/ems-client",
3
- "version": "7.15.0",
3
+ "version": "8.1.0",
4
4
  "description": "JavaScript client library for the Elastic Maps Service",
5
5
  "main": "target/node/index.js",
6
6
  "browser": "target/web/index.js",
@@ -41,7 +41,7 @@
41
41
  "@types/topojson-specification": "^1.0.1",
42
42
  "lodash": "^4.17.15",
43
43
  "lru-cache": "^6.0.0",
44
- "semver": "7.3.2",
44
+ "semver": "^7.3.2",
45
45
  "topojson-client": "^3.1.0"
46
46
  },
47
47
  "devDependencies": {
@@ -63,6 +63,7 @@
63
63
  "eslint-plugin-prettier": "^3.1.3",
64
64
  "husky": "^4.2.5",
65
65
  "jest": "^26.4.0",
66
+ "maplibre-gl": "^1.15.2",
66
67
  "node-fetch": "^2.6.1",
67
68
  "prettier": "^2.0.5",
68
69
  "ts-jest": "^26.2.0",
package/src/ems_client.ts CHANGED
@@ -9,13 +9,14 @@ import _ from 'lodash';
9
9
  import { TMSService } from './tms_service';
10
10
  import { EMSFormatType, FileLayer } from './file_layer';
11
11
  import { FeatureCollection } from 'geojson';
12
+ import { Response } from 'node-fetch';
12
13
  import semver from 'semver';
13
14
  import { format as formatUrl, parse as parseUrl, UrlObject } from 'url';
14
15
  import { toAbsoluteUrl } from './utils';
15
16
  import { ParsedUrlQueryInput } from 'querystring';
16
17
  import LRUCache from 'lru-cache';
17
18
 
18
- const DEFAULT_EMS_VERSION = '7.15';
19
+ const DEFAULT_EMS_VERSION = '8.1';
19
20
 
20
21
  type URLMeaningfulParts = {
21
22
  auth?: string | null;
@@ -278,16 +279,17 @@ export class EMSClient {
278
279
  async getManifest<T>(endpointUrl: string): Promise<T> {
279
280
  try {
280
281
  const url = extendUrl(endpointUrl, { query: this._queryParams });
281
- const result = await this._fetchWithTimeout(url);
282
- return result ? await result.json() : null;
283
- } catch (e) {
284
- if (!e) {
285
- e = new Error('Unknown error');
282
+ const response = await this._fetchWithTimeout(url);
283
+ if (!response.ok) {
284
+ throw new Error(response.statusText);
286
285
  }
287
- if (!(e instanceof Error)) {
288
- e = new Error(e.data || `status ${e.statusText || e.status}`);
286
+ return response ? await response.json() : null;
287
+ } catch (e) {
288
+ if (e instanceof Error) {
289
+ throw e;
290
+ } else {
291
+ throw new Error('Unknown error');
289
292
  }
290
- throw new Error(`Unable to retrieve data from ${endpointUrl}: ${e.message}`);
291
293
  }
292
294
  }
293
295
 
@@ -390,14 +392,14 @@ export class EMSClient {
390
392
  }
391
393
  }
392
394
 
393
- private _fetchWithTimeout(url: string): Promise<Body> {
394
- return new Promise<Body>((resolve, reject) => {
395
+ private _fetchWithTimeout(url: string): Promise<Response> {
396
+ return new Promise<Response>((resolve, reject) => {
395
397
  const timer = setTimeout(
396
398
  () => reject(new Error(`Request to ${url} timed out`)),
397
399
  this.EMS_LOAD_TIMEOUT
398
400
  );
399
401
  this._fetchFunction(url).then(
400
- (response: Body) => {
402
+ (response: Response) => {
401
403
  clearTimeout(timer);
402
404
  resolve(response);
403
405
  },
package/src/file_layer.ts CHANGED
@@ -41,7 +41,6 @@ export class FileLayer extends AbstractEmsService {
41
41
 
42
42
  const format = this.getDefaultFormatType();
43
43
  const fetchUrl = this.getDefaultFormatUrl();
44
- // let fetchedJson;
45
44
  let geojson;
46
45
  const fetchedJson = await this._emsClient.getManifest(fetchUrl);
47
46
  if (fetchedJson) {
package/src/index.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  export { EMSClient, FileLayerField } from './ems_client';
9
9
  export { ORIGIN } from './origin';
10
10
  export { FileLayer } from './file_layer';
11
- export { TMSService } from './tms_service';
11
+ export { TMSService, EmsSprite, EmsSpriteSheet } from './tms_service';
@@ -6,52 +6,31 @@
6
6
  */
7
7
 
8
8
  import _ from 'lodash';
9
+ import { Style as MapLibreStyle, VectorSource as MapLibreVectorSource } from 'maplibre-gl';
9
10
  import { EMSClient, EmsTmsFormat, TMSServiceConfig } from './ems_client';
10
11
  import { AbstractEmsService } from './ems_service';
11
12
 
12
- type EmsVectorSource = {
13
- type: 'vector';
14
- url: string;
15
- tiles: string[];
16
- bounds?: number[];
17
- scheme?: 'xyz' | 'tms';
18
- minzoom?: number;
19
- maxzoom?: number;
20
- attribution?: string;
21
- };
22
-
23
- type EmsVectorSources = {
24
- [sourceName: string]: EmsVectorSource;
25
- };
26
-
27
- type EmsVectorStyle = {
28
- sources: EmsVectorSources;
29
- sprite: string;
30
- glyphs: string;
31
- bearing?: number;
32
- center?: number[];
33
- layers?: unknown[];
34
- metadata?: unknown;
35
- name?: string;
36
- pitch?: number;
37
- light?: unknown;
38
- transition?: unknown;
39
- version: number;
40
- zoom?: number;
41
- };
42
-
43
- type EmsSprite = {
13
+ export type EmsSprite = {
44
14
  height: number;
45
15
  pixelRatio: number;
46
16
  width: number;
47
17
  x: number;
48
18
  y: number;
19
+ sdf?: boolean;
49
20
  };
50
21
 
51
- type EmsSpriteSheet = {
22
+ export type EmsSpriteSheet = {
52
23
  [spriteName: string]: EmsSprite;
53
24
  };
54
25
 
26
+ type EmsVectorSources = {
27
+ [sourceName: string]: MapLibreVectorSource;
28
+ };
29
+
30
+ type EmsVectorStyle = MapLibreStyle & {
31
+ sources: EmsVectorSources;
32
+ };
33
+
55
34
  type EmsRasterStyle = {
56
35
  tilejson: string;
57
36
  name: string;
@@ -98,19 +77,20 @@ export class TMSService extends AbstractEmsService {
98
77
  const { sources } = vectorJson;
99
78
  for (const sourceName of Object.getOwnPropertyNames(sources)) {
100
79
  const { url } = sources[sourceName];
101
- const sourceUrl = this._proxyPath + this._getAbsoluteUrl(url);
102
- const extendedUrl = this._emsClient.extendUrlWithParams(sourceUrl);
103
- const sourceJson = await this._emsClient.getManifest<EmsVectorSource>(extendedUrl);
104
-
105
- const extendedTileUrls = sourceJson.tiles.map((tileUrl: string) => {
106
- const url = this._proxyPath + this._getAbsoluteUrl(tileUrl);
107
- return this._emsClient.extendUrlWithParams(url);
108
- });
109
- inlinedSources[sourceName] = {
110
- ...sourceJson,
111
- type: 'vector',
112
- tiles: extendedTileUrls,
113
- };
80
+ if (url) {
81
+ const sourceUrl = this._proxyPath + this._getAbsoluteUrl(url);
82
+ const extendedUrl = this._emsClient.extendUrlWithParams(sourceUrl);
83
+ const sourceJson = await this._emsClient.getManifest<MapLibreVectorSource>(extendedUrl);
84
+ const tiles = sourceJson?.tiles?.map((tileUrl) => {
85
+ const directUrl = this._proxyPath + this._getAbsoluteUrl(tileUrl);
86
+ return this._emsClient.extendUrlWithParams(directUrl);
87
+ });
88
+ inlinedSources[sourceName] = {
89
+ ...sourceJson,
90
+ type: 'vector',
91
+ tiles,
92
+ };
93
+ }
114
94
  }
115
95
  return {
116
96
  ...vectorJson,
@@ -155,11 +135,9 @@ export class TMSService extends AbstractEmsService {
155
135
 
156
136
  async getUrlTemplateForVector(sourceId: string): Promise<string> {
157
137
  const tileJson = await this._getVectorStyleJsonInlined();
158
- if (!tileJson) {
159
- return '';
160
- }
161
- if (tileJson.sources[sourceId] && tileJson.sources[sourceId].tiles) {
162
- const directUrl = this._proxyPath + this._getAbsoluteUrl(tileJson.sources[sourceId].tiles[0]);
138
+ const url = tileJson?.sources[sourceId]?.tiles?.pop();
139
+ if (url) {
140
+ const directUrl = this._proxyPath + this._getAbsoluteUrl(url);
163
141
  return this._emsClient.extendUrlWithParams(directUrl);
164
142
  } else {
165
143
  return '';
@@ -271,7 +249,7 @@ export class TMSService extends AbstractEmsService {
271
249
 
272
250
  private async _getSpriteSheetRootPath(): Promise<string> {
273
251
  const vectorStyleJson = await this._getVectorStyleJsonRaw();
274
- if (vectorStyleJson) {
252
+ if (vectorStyleJson?.sprite) {
275
253
  return this._proxyPath + this._getAbsoluteUrl(vectorStyleJson.sprite);
276
254
  } else {
277
255
  return '';
@@ -280,7 +258,7 @@ export class TMSService extends AbstractEmsService {
280
258
 
281
259
  private async _getUrlTemplateForGlyphs(): Promise<string> {
282
260
  const vectorStyleJson = await this._getVectorStyleJsonRaw();
283
- if (vectorStyleJson) {
261
+ if (vectorStyleJson?.glyphs) {
284
262
  return this._proxyPath + this._getAbsoluteUrl(vectorStyleJson.glyphs);
285
263
  } else {
286
264
  return '';
package/target/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { EMSClient, FileLayerField } from './ems_client';
2
2
  export { ORIGIN } from './origin';
3
3
  export { FileLayer } from './file_layer';
4
- export { TMSService } from './tms_service';
4
+ export { TMSService, EmsSprite, EmsSpriteSheet } from './tms_service';
@@ -23,7 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
23
23
 
24
24
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
25
 
26
- const DEFAULT_EMS_VERSION = '7.15';
26
+ const DEFAULT_EMS_VERSION = '8.1';
27
27
 
28
28
  /**
29
29
  * plugins cannot have upstream dependencies on core/*-kibana.
@@ -176,18 +176,19 @@ class EMSClient {
176
176
  const url = extendUrl(endpointUrl, {
177
177
  query: this._queryParams
178
178
  });
179
- const result = await this._fetchWithTimeout(url);
180
- return result ? await result.json() : null;
181
- } catch (e) {
182
- if (!e) {
183
- e = new Error('Unknown error');
184
- }
179
+ const response = await this._fetchWithTimeout(url);
185
180
 
186
- if (!(e instanceof Error)) {
187
- e = new Error(e.data || `status ${e.statusText || e.status}`);
181
+ if (!response.ok) {
182
+ throw new Error(response.statusText);
188
183
  }
189
184
 
190
- throw new Error(`Unable to retrieve data from ${endpointUrl}: ${e.message}`);
185
+ return response ? await response.json() : null;
186
+ } catch (e) {
187
+ if (e instanceof Error) {
188
+ throw e;
189
+ } else {
190
+ throw new Error('Unknown error');
191
+ }
191
192
  }
192
193
  }
193
194
  /**
@@ -44,8 +44,7 @@ class FileLayer extends _ems_service.AbstractEmsService {
44
44
  }
45
45
 
46
46
  const format = this.getDefaultFormatType();
47
- const fetchUrl = this.getDefaultFormatUrl(); // let fetchedJson;
48
-
47
+ const fetchUrl = this.getDefaultFormatUrl();
49
48
  let geojson;
50
49
  const fetchedJson = await this._emsClient.getManifest(fetchUrl);
51
50
 
@@ -9,16 +9,16 @@ Object.defineProperty(exports, "EMSClient", {
9
9
  return _ems_client.EMSClient;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "FileLayerField", {
12
+ Object.defineProperty(exports, "EmsSprite", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _ems_client.FileLayerField;
15
+ return _tms_service.EmsSprite;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "ORIGIN", {
18
+ Object.defineProperty(exports, "EmsSpriteSheet", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _origin.ORIGIN;
21
+ return _tms_service.EmsSpriteSheet;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "FileLayer", {
@@ -27,6 +27,18 @@ Object.defineProperty(exports, "FileLayer", {
27
27
  return _file_layer.FileLayer;
28
28
  }
29
29
  });
30
+ Object.defineProperty(exports, "FileLayerField", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _ems_client.FileLayerField;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "ORIGIN", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _origin.ORIGIN;
40
+ }
41
+ });
30
42
  Object.defineProperty(exports, "TMSService", {
31
43
  enumerable: true,
32
44
  get: function () {
@@ -59,20 +59,24 @@ class TMSService extends _ems_service.AbstractEmsService {
59
59
  url
60
60
  } = sources[sourceName];
61
61
 
62
- const sourceUrl = this._proxyPath + this._getAbsoluteUrl(url);
62
+ if (url) {
63
+ var _sourceJson$tiles;
63
64
 
64
- const extendedUrl = this._emsClient.extendUrlWithParams(sourceUrl);
65
+ const sourceUrl = this._proxyPath + this._getAbsoluteUrl(url);
65
66
 
66
- const sourceJson = await this._emsClient.getManifest(extendedUrl);
67
- const extendedTileUrls = sourceJson.tiles.map(tileUrl => {
68
- const url = this._proxyPath + this._getAbsoluteUrl(tileUrl);
67
+ const extendedUrl = this._emsClient.extendUrlWithParams(sourceUrl);
69
68
 
70
- return this._emsClient.extendUrlWithParams(url);
71
- });
72
- inlinedSources[sourceName] = { ...sourceJson,
73
- type: 'vector',
74
- tiles: extendedTileUrls
75
- };
69
+ const sourceJson = await this._emsClient.getManifest(extendedUrl);
70
+ const tiles = sourceJson === null || sourceJson === void 0 ? void 0 : (_sourceJson$tiles = sourceJson.tiles) === null || _sourceJson$tiles === void 0 ? void 0 : _sourceJson$tiles.map(tileUrl => {
71
+ const directUrl = this._proxyPath + this._getAbsoluteUrl(tileUrl);
72
+
73
+ return this._emsClient.extendUrlWithParams(directUrl);
74
+ });
75
+ inlinedSources[sourceName] = { ...sourceJson,
76
+ type: 'vector',
77
+ tiles
78
+ };
79
+ }
76
80
  }
77
81
 
78
82
  return { ...vectorJson,
@@ -116,14 +120,13 @@ class TMSService extends _ems_service.AbstractEmsService {
116
120
  }
117
121
 
118
122
  async getUrlTemplateForVector(sourceId) {
119
- const tileJson = await this._getVectorStyleJsonInlined();
123
+ var _tileJson$sources$sou, _tileJson$sources$sou2;
120
124
 
121
- if (!tileJson) {
122
- return '';
123
- }
125
+ const tileJson = await this._getVectorStyleJsonInlined();
126
+ const url = tileJson === null || tileJson === void 0 ? void 0 : (_tileJson$sources$sou = tileJson.sources[sourceId]) === null || _tileJson$sources$sou === void 0 ? void 0 : (_tileJson$sources$sou2 = _tileJson$sources$sou.tiles) === null || _tileJson$sources$sou2 === void 0 ? void 0 : _tileJson$sources$sou2.pop();
124
127
 
125
- if (tileJson.sources[sourceId] && tileJson.sources[sourceId].tiles) {
126
- const directUrl = this._proxyPath + this._getAbsoluteUrl(tileJson.sources[sourceId].tiles[0]);
128
+ if (url) {
129
+ const directUrl = this._proxyPath + this._getAbsoluteUrl(url);
127
130
 
128
131
  return this._emsClient.extendUrlWithParams(directUrl);
129
132
  } else {
@@ -241,7 +244,7 @@ class TMSService extends _ems_service.AbstractEmsService {
241
244
  async _getSpriteSheetRootPath() {
242
245
  const vectorStyleJson = await this._getVectorStyleJsonRaw();
243
246
 
244
- if (vectorStyleJson) {
247
+ if (vectorStyleJson !== null && vectorStyleJson !== void 0 && vectorStyleJson.sprite) {
245
248
  return this._proxyPath + this._getAbsoluteUrl(vectorStyleJson.sprite);
246
249
  } else {
247
250
  return '';
@@ -251,7 +254,7 @@ class TMSService extends _ems_service.AbstractEmsService {
251
254
  async _getUrlTemplateForGlyphs() {
252
255
  const vectorStyleJson = await this._getVectorStyleJsonRaw();
253
256
 
254
- if (vectorStyleJson) {
257
+ if (vectorStyleJson !== null && vectorStyleJson !== void 0 && vectorStyleJson.glyphs) {
255
258
  return this._proxyPath + this._getAbsoluteUrl(vectorStyleJson.glyphs);
256
259
  } else {
257
260
  return '';
@@ -1,43 +1,23 @@
1
+ import { Style as MapLibreStyle, VectorSource as MapLibreVectorSource } from 'maplibre-gl';
1
2
  import { EMSClient, TMSServiceConfig } from './ems_client';
2
3
  import { AbstractEmsService } from './ems_service';
3
- declare type EmsVectorSource = {
4
- type: 'vector';
5
- url: string;
6
- tiles: string[];
7
- bounds?: number[];
8
- scheme?: 'xyz' | 'tms';
9
- minzoom?: number;
10
- maxzoom?: number;
11
- attribution?: string;
12
- };
13
- declare type EmsVectorSources = {
14
- [sourceName: string]: EmsVectorSource;
15
- };
16
- declare type EmsVectorStyle = {
17
- sources: EmsVectorSources;
18
- sprite: string;
19
- glyphs: string;
20
- bearing?: number;
21
- center?: number[];
22
- layers?: unknown[];
23
- metadata?: unknown;
24
- name?: string;
25
- pitch?: number;
26
- light?: unknown;
27
- transition?: unknown;
28
- version: number;
29
- zoom?: number;
30
- };
31
- declare type EmsSprite = {
4
+ export declare type EmsSprite = {
32
5
  height: number;
33
6
  pixelRatio: number;
34
7
  width: number;
35
8
  x: number;
36
9
  y: number;
10
+ sdf?: boolean;
37
11
  };
38
- declare type EmsSpriteSheet = {
12
+ export declare type EmsSpriteSheet = {
39
13
  [spriteName: string]: EmsSprite;
40
14
  };
15
+ declare type EmsVectorSources = {
16
+ [sourceName: string]: MapLibreVectorSource;
17
+ };
18
+ declare type EmsVectorStyle = MapLibreStyle & {
19
+ sources: EmsVectorSources;
20
+ };
41
21
  declare type EmsRasterStyle = {
42
22
  tilejson: string;
43
23
  name: string;
@@ -23,7 +23,7 @@ import semver from 'semver';
23
23
  import { format as formatUrl, parse as parseUrl } from 'url';
24
24
  import { toAbsoluteUrl } from './utils';
25
25
  import LRUCache from 'lru-cache';
26
- var DEFAULT_EMS_VERSION = '7.15';
26
+ var DEFAULT_EMS_VERSION = '8.1';
27
27
 
28
28
  /**
29
29
  * plugins cannot have upstream dependencies on core/*-kibana.
@@ -187,7 +187,7 @@ export var EMSClient = /*#__PURE__*/function () {
187
187
  key: "getManifest",
188
188
  value: function () {
189
189
  var _getManifest = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(endpointUrl) {
190
- var url, result;
190
+ var url, response;
191
191
  return regeneratorRuntime.wrap(function _callee$(_context) {
192
192
  while (1) {
193
193
  switch (_context.prev = _context.next) {
@@ -200,47 +200,55 @@ export var EMSClient = /*#__PURE__*/function () {
200
200
  return this._fetchWithTimeout(url);
201
201
 
202
202
  case 4:
203
- result = _context.sent;
203
+ response = _context.sent;
204
204
 
205
- if (!result) {
206
- _context.next = 11;
205
+ if (response.ok) {
206
+ _context.next = 7;
207
207
  break;
208
208
  }
209
209
 
210
- _context.next = 8;
211
- return result.json();
210
+ throw new Error(response.statusText);
212
211
 
213
- case 8:
212
+ case 7:
213
+ if (!response) {
214
+ _context.next = 13;
215
+ break;
216
+ }
217
+
218
+ _context.next = 10;
219
+ return response.json();
220
+
221
+ case 10:
214
222
  _context.t0 = _context.sent;
215
- _context.next = 12;
223
+ _context.next = 14;
216
224
  break;
217
225
 
218
- case 11:
226
+ case 13:
219
227
  _context.t0 = null;
220
228
 
221
- case 12:
229
+ case 14:
222
230
  return _context.abrupt("return", _context.t0);
223
231
 
224
- case 15:
225
- _context.prev = 15;
232
+ case 17:
233
+ _context.prev = 17;
226
234
  _context.t1 = _context["catch"](0);
227
235
 
228
- if (!_context.t1) {
229
- _context.t1 = new Error('Unknown error');
230
- }
231
-
232
236
  if (!(_context.t1 instanceof Error)) {
233
- _context.t1 = new Error(_context.t1.data || "status ".concat(_context.t1.statusText || _context.t1.status));
237
+ _context.next = 23;
238
+ break;
234
239
  }
235
240
 
236
- throw new Error("Unable to retrieve data from ".concat(endpointUrl, ": ").concat(_context.t1.message));
241
+ throw _context.t1;
242
+
243
+ case 23:
244
+ throw new Error('Unknown error');
237
245
 
238
- case 20:
246
+ case 24:
239
247
  case "end":
240
248
  return _context.stop();
241
249
  }
242
250
  }
243
- }, _callee, this, [[0, 15]]);
251
+ }, _callee, this, [[0, 17]]);
244
252
  }));
245
253
 
246
254
  function getManifest(_x) {
@@ -85,8 +85,7 @@ export var FileLayer = /*#__PURE__*/function (_AbstractEmsService) {
85
85
 
86
86
  case 3:
87
87
  format = this.getDefaultFormatType();
88
- fetchUrl = this.getDefaultFormatUrl(); // let fetchedJson;
89
-
88
+ fetchUrl = this.getDefaultFormatUrl();
90
89
  _context.next = 7;
91
90
  return this._emsClient.getManifest(fetchUrl);
92
91
 
@@ -7,4 +7,4 @@
7
7
  export { EMSClient, FileLayerField } from './ems_client';
8
8
  export { ORIGIN } from './origin';
9
9
  export { FileLayer } from './file_layer';
10
- export { TMSService } from './tms_service';
10
+ export { TMSService, EmsSprite, EmsSpriteSheet } from './tms_service';