diff --git a/packages/core/src/layers/CustomLayer.ts b/packages/core/src/layers/CustomLayer.ts index 19c886a1c..67580b88c 100644 --- a/packages/core/src/layers/CustomLayer.ts +++ b/packages/core/src/layers/CustomLayer.ts @@ -19,11 +19,12 @@ import {Layer} from './Layer'; import {LayerStyle} from '../styles/LayerStyle'; +import {LayerOptions} from './LayerOptions'; /** * Options to configure the CustomLayer. */ -type CustomLayerOptions = { +interface CustomLayerOptions extends LayerOptions { /** * Event Listener that will be called when the layer is added to the display. * @param ev - Event of type "layerAdd" diff --git a/packages/core/src/layers/LayerOptions.ts b/packages/core/src/layers/LayerOptions.ts index 85e43c4ed..e7f4617d1 100644 --- a/packages/core/src/layers/LayerOptions.ts +++ b/packages/core/src/layers/LayerOptions.ts @@ -44,5 +44,8 @@ export interface LayerOptions { * Indicates whether the layer should be visible (`true`) or hidden (`false`). * @defaultValue true */ - visible?: boolean + visible?: boolean; + + levelOffset?: number; + tiled?: boolean; }