Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type 'WebGLTileLayer' is not generic. #15606

Open
bcherkezovtf opened this issue Mar 2, 2024 · 1 comment
Open

Type 'WebGLTileLayer' is not generic. #15606

bcherkezovtf opened this issue Mar 2, 2024 · 1 comment
Labels

Comments

@bcherkezovtf
Copy link

Describe the bug
I'm using OL with TypeScript and until v9 I was using TileLayer from ol/layer/Tile and after release of this version I tried the WebGLTile layer.
With the TileLayer you need to specified the source type (Generic type 'TileLayer<TileSourceType>' requires 1 type argument(s).ts(2314)), but with the WebGL TileLayer this throws an error.
Is there a problem the WebGL Options type to be defined as Options<SourceType extends DataTile | TileImage>?

@bcherkezovtf
Copy link
Author

If it's ok to work with generic for type of the source, I can make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant