Skip to content

Commit 9af25b6

Browse files
committed
feat: TileDataSource maxOverzoomLevel
1 parent 2e7ec61 commit 9af25b6

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/ui-carto/datasources/index.android.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export abstract class DataSource<T extends com.carto.datasources.TileDataSource,
2222
}
2323
}
2424
export class TileDataSource<T extends com.carto.datasources.TileDataSource, U extends TileDataSourceOptions> extends DataSource<T, U> {
25+
@nativeProperty maxOverzoomLevel: number;
2526
createNative(options) {
2627
return null;
2728
}

src/ui-carto/datasources/index.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ export interface DataSourceOptions {
66
minZoom?: number;
77
maxZoom?: number;
88
}
9-
export interface TileDataSourceOptions extends DataSourceOptions {}
9+
export interface TileDataSourceOptions extends DataSourceOptions {
10+
maxOverzoomLevel?: number;
11+
}
1012
export abstract class DataSource<T, U extends DataSourceOptions> extends BaseNative<T, U> {
1113
getProjection(): Projection;
1214
}
1315
export class TileDataSource<T, U extends TileDataSourceOptions> extends DataSource<T, U> {
1416
minZoom?: number;
1517
maxZoom?: number;
18+
maxOverzoomLevel: number;
1619

1720
loadTile(x, y, z): any;
1821
}

src/ui-carto/datasources/index.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export abstract class DataSource<T extends NTTileDataSource, U extends DataSourc
2222
}
2323
}
2424
export class TileDataSource<T extends NTTileDataSource, U extends TileDataSourceOptions> extends DataSource<T, U> {
25+
@nativeProperty maxOverzoomLevel: number;
2526
createNative(options) {
2627
return null;
2728
}

0 commit comments

Comments
 (0)