Interface: ScattergeoCalc
Experimental
Extends
GeoCalc
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
features? | readonly | readonly (LocatedFeature | undefined)[] | Experimental For a located trace, the feature each location names; undefined where it names none. | - |
fit? | readonly | object | Experimental The trace's part in fitbounds: the coordinates the view should hold, in degrees, and the px to keep free around them (half the largest marker). Absent when the trace has none. | GeoCalc.fit |
fit.lat | readonly | ArrayLike<number> | - | - |
fit.lon | readonly | ArrayLike<number> | - | - |
fit.pad? | public | number | - | - |
lat | readonly | Float64Array | Experimental | - |
length | readonly | number | Experimental Point count. | - |
locations? | readonly | LocationsRequest | Experimental Set by a trace given by locations: what they are and what they name (locationsOf). The layout pass loads what they are matched against and calls located. | GeoCalc.locations |
lon | readonly | Float64Array | Experimental Longitude and latitude per point, in degrees; both NaN where the point is a gap. For a trace given by locations they are the points of the features, and the arrays are replaced when the layout pass locates the trace: what is derived from them is cached by the arrays. | - |
markerSize | readonly | number | Float32Array<ArrayBufferLike> | Experimental Drawn marker diameters in px (one value, or per point), as scatter's calc gives them. | - |
ppad | readonly | number | Float64Array<ArrayBufferLike> | undefined | Experimental | - |
subplot | public | GeoSubplot | undefined | Experimental The subplot the trace is drawn on, set by geoCrossTraceLayout. | GeoCalc.subplot |
unresolved | readonly | boolean | Experimental The trace gives locations and what they are matched against is not in hand (it is loading, or could not be loaded): the trace has no positions. | - |
Methods
located()?
ts
optional located(result): void;Experimental
Called in every layout pass on a trace with locations, before the view is fitted: with the features and points of its locations, or with undefined while what they are matched against is loading or could not be loaded. The trace sets what follows from them, its fit included. An answer that did not change is the same object as in the pass before.
Parameters
| Parameter | Type |
|---|---|
result | LocationsResult | undefined |
Returns
void
Inherited from
ts
GeoCalc.located;