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.
When adding a map to a grid, it is inferred as a
TableElementand I get the error -Property 'addMarker' does not exist on type 'TableElement'.When I then explicitly say it's a
MapElementlike thisconst 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
setDatabut that's not an internal function for theMapwidgetFrom looking at the types, there is nothing for the map options. At least that's my assumption.