Skip to content

Commit

Permalink
replace self package import with relative path
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Jan 24, 2025
1 parent 6eb0fb1 commit b51e60b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/layers/MVTLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class MVTLayer extends TileLayer {

if (!Array.isArray(providers)) {
providers = [];
// levelOffset = Math.round(Math.log(tileSize) / Math.log(2) - 8);
// levelOffset = Math.round(Math.log(tileSize) / Math.LN2 - 8);
levelOffset = 0;
// 128tiles (512px) -> about 512MB mem!, 256tiles(256px), 64tiles(10240px)...
let cache1: LRU<Tile> = new LRU(256 / Math.pow(2, levelOffset));
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/providers/TileProvider/TileProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {TileStorage} from '../../storage/TileStorage';
import Level2TileStorage from '../../storage/Level2Storage';
import {Listener} from '@here/xyz-maps-common';
import {TileProviderOptions} from './TileProviderOptions';
import {GeoJSONBBox} from '@here/xyz-maps-core';
import {GeoJSONBBox} from '../../features/GeoJSON';

const TILESIZE = 256;
const DEFAULT_EXPIRE_SECONDS = Infinity;
Expand Down

0 comments on commit b51e60b

Please sign in to comment.