Skip to content

Commit

Permalink
fix CustomLayerOptions
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Jul 11, 2024
1 parent 29c6795 commit e640a91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/core/src/layers/CustomLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/layers/LayerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit e640a91

Please sign in to comment.