Skip to content

Map options seem to be missing from typescript types #240

Description

@Emobe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions