Skip to content

Interface: MapLayout ​

Defined in: packages/plot/src/index.ts:35

One way to place a map's dots, such as "today" and "when they lived".

Properties ​

PropertyModifierTypeDescription
labelreadonlystringButton label.
position?readonly(d) => readonly [number, number] | nullWhere to draw a cell's dot, as [x, y] in the grid's units (longitude, latitude). Defaults to the cell's center. Return null to hide the dot. While a layout with a position is active, the map can't be brushed, because its dots no longer sit on the grid the filter applies to.
underlay?readonlyreadonly Markish[] | ((data) => readonly Markish[])Marks drawn under the dots, such as land outlines. A function gets the chart's data and is called on every update; the map is only redrawn when it returns a different array.

Released under the MIT License.