Type Parameters

Hierarchy

Constructors

Properties

_initializations: Promise<void>[] = []
_use_scale_to_download_tiles: boolean = true
_zoom?: default<T>
aes?: AestheticSet<T>
canvas: HTMLCanvasElement
ctx: CanvasRenderingContext2D
dataset: Dataset<T>
deferred_functions: (() => void | Promise<void>)[]
height: number
holder: Selection<any, any, any, any>
hovered: string
label_key?: string
labelgroup: SVGGElement
layers: GeoJsonObject[] = []

A LabelMaker

options: LabelOptions = {}
render_props: RenderProps = ...
scatterplot: default<T>
timer?: Timer
tree: DepthTree
width: number
zoom?: default<T>

Accessors

  • get discard_share(): number
  • Returns number

  • get optimal_alpha(): number
  • Returns number

  • get point_size(): number
  • Returns number

  • get prefs(): APICall & {
        alpha: number;
        background_options: {
            color: string;
            mouseover: boolean;
            opacity: [number, number];
            size: [number, number];
        };
        duration: number;
        max_points: number;
        point_size: number;
        zoom_balance: number;
    } & {
        arrow_buffer?: Uint8Array;
        arrow_table?: Table<any>;
    }
  • Render prefs are scatterplot prefs, but for a single tile instead of for a whole table.

    Returns APICall & {
        alpha: number;
        background_options: {
            color: string;
            mouseover: boolean;
            opacity: [number, number];
            size: [number, number];
        };
        duration: number;
        max_points: number;
        point_size: number;
        zoom_balance: number;
    } & {
        arrow_buffer?: Uint8Array;
        arrow_table?: Table<any>;
    }

Methods

  • Start rendering a set of labels.

    Parameters

    • ticks: number = 1e9

      How many milliseconds until the renderer should be stopped.

    Returns void

  • Parameters

    • featureset: FeatureCollection<Geometry, {
          [name: string]: any;
      }>

      A feature collection of labels to display. Currently each feature must be a Point.

    • label_key: string

      The field in each geojson feature that includes the label for the object.

    • size_key: string

      The field in each geojson feature that includes the size

    Returns void

Generated using TypeDoc