Skip to content

Commit

Permalink
feat: added additional export from tilemanager to index (#382)
Browse files Browse the repository at this point in the history
* chore: added additional export from tilemanager to index

* chore: added hasTiel to index.ts exports

* chore: removed getBlobByKey from TileLayerOffline imports

* fix: lint errors
  • Loading branch information
George-Madeley authored Aug 1, 2024
1 parent 9a03c37 commit 5d3a0af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/TileLayerOffline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from 'leaflet';
import {
getTileUrl,
getBlobByKey,
TileInfo,
getTilePoints,
getTileImageSource,
Expand Down
2 changes: 1 addition & 1 deletion src/TileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
*/

import { Bounds, Browser, CRS, GridLayer, Point, Util } from 'leaflet';
import { Bounds, Browser, CRS, Point, Util } from 'leaflet';
import { openDB, deleteDB, IDBPDatabase } from 'idb';
import { FeatureCollection, Polygon } from 'geojson';

Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ export {
truncate,
downloadTile,
saveTile,
hasTile,
getBlobByKey,
getTilePoints,
getTileUrl,
getTileImageSource,
} from './TileManager';
4 changes: 2 additions & 2 deletions test/TileManagerTest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* global describe, it, assert, beforeEach */
import { point, bounds, GridLayer, gridLayer } from 'leaflet';
import { point, bounds, gridLayer } from 'leaflet';
import fetchMock from 'fetch-mock/esm/client';
import {
downloadTile,
getStorageInfo,
Expand All @@ -12,7 +13,6 @@ import {
saveTile,
truncate,
} from '../src/TileManager';
import fetchMock from 'fetch-mock/esm/client';

const testTileInfo = {
url: 'https://api.tiles.mapbox.com/v4/mapbox.streets/16/33677/21651.png?access_token=xyz',
Expand Down

0 comments on commit 5d3a0af

Please sign in to comment.