File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
x-pack/plugins/maps/public/layers/sources Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ export interface ISource {
3131 isTimeAware ( ) : Promise < boolean > ;
3232 getImmutableProperties ( ) : Promise < ImmutableSourceProperty [ ] > ;
3333 getAttributions ( ) : Promise < Attribution [ ] > ;
34+ getMinZoom ( ) : number ;
35+ getMaxZoom ( ) : number ;
3436}
3537
3638export class AbstractSource implements ISource {
@@ -49,4 +51,6 @@ export class AbstractSource implements ISource {
4951 isTimeAware ( ) : Promise < boolean > ;
5052 getImmutableProperties ( ) : Promise < ImmutableSourceProperty [ ] > ;
5153 getAttributions ( ) : Promise < Attribution [ ] > ;
54+ getMinZoom ( ) : number ;
55+ getMaxZoom ( ) : number ;
5256}
Original file line number Diff line number Diff line change 66
77// eslint-disable-next-line @kbn/eslint/no-restricted-paths
88import { copyPersistentState } from '../../reducers/util' ;
9+ import { MIN_ZOOM , MAX_ZOOM } from '../../../common/constants' ;
910
1011export class AbstractSource {
1112 static isIndexingSource = false ;
@@ -148,4 +149,12 @@ export class AbstractSource {
148149 async getValueSuggestions ( /* field, query */ ) {
149150 return [ ] ;
150151 }
152+
153+ getMinZoom ( ) {
154+ return MIN_ZOOM ;
155+ }
156+
157+ getMaxZoom ( ) {
158+ return MAX_ZOOM ;
159+ }
151160}
You can’t perform that action at this time.
0 commit comments