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

Map options seem to be missing from typescript types #240

Open
Emobe opened this issue Mar 27, 2023 · 0 comments
Open

Map options seem to be missing from typescript types #240

Emobe opened this issue Mar 27, 2023 · 0 comments

Comments

@Emobe
Copy link

Emobe commented Mar 27, 2023

When adding a map to a grid, it is inferred as a TableElement and I get the error -

Property 'addMarker' does not exist on type 'TableElement'.

When I then explicitly say it's a MapElement like this

const map: contrib.Widgets.MapElement = grid.set(0, 0, 1, 1, contrib.map, { label: 'Markets' });

I then get Property 'addMarker' does not exist on type 'MapElement'.

It seems to want to accept setData but that's not an internal function for the Map widget

From looking at the types, there is nothing for the map options. At least that's my assumption.

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

No branches or pull requests

1 participant