Skip to content

Commit

Permalink
feat(tiler): Bring back resolution and deprecate it
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin Petrescu committed Nov 20, 2019
1 parent d586e15 commit b9a701b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/tiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { zip } from './zip';

export async function TileServer<T>({
maxZoomLevel = 12,
resolution = 512,
cacheOptions = defaultCacheOptions,
pgPoolOptions = {},
filtersToWhere = null,
Expand Down
7 changes: 7 additions & 0 deletions types/TileServerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export interface TileServerConfig<T> {
*/
maxZoomLevel?: number;

/**
* @description The tile resolution in pixels, default is 512, but try 256 if you
* are unsure what your mapping front-end library uses
* @deprecated This is ignored and will be removed in future releases
*/
resolution?: number;

/**
* @description LRU tile cache options, each tile request is stored in this cache.
* clusterbuster tries to provide sane defaults
Expand Down

0 comments on commit b9a701b

Please sign in to comment.