-
Notifications
You must be signed in to change notification settings - Fork 69
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
MVTLayer
requires documention
#207
Comments
I am also looking into how to avoid using
However, that still results in a type error, for example
Looking at the type definitions, I am wondering if there is a mistake in https://github.com/danmarshall/deckgl-typings/blob/master/deck.gl__geo-layers/index.d.ts#L247 - shouldn't the constructor arguments read |
On further checking, this doesn't really work as then you can pass anything for the props. Perhaps |
Might be helpful if someone can provide sample code of what the desired behavior should be, then we can work backwards to see how to make the typings enable that. |
I might jump in to give @danmarshall a usage example.
and then I like to loop over my kinds and create the layers:
The value type in the Map should now be something like |
It requires template parameters, but it's unclear what should be used. I ended up using
as any
on the props, too.I think there should be more samples and documentation to make this easier to understand.
The text was updated successfully, but these errors were encountered: