Skip to content

Interface: ScattergeoCalc ​

Experimental

Extends ​

  • GeoCalc

Properties ​

PropertyModifierTypeDescriptionInherited from
features?readonlyreadonly (LocatedFeature | undefined)[]Experimental For a located trace, the feature each location names; undefined where it names none.-
fit?readonlyobjectExperimental 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.latreadonlyArrayLike<number>--
fit.lonreadonlyArrayLike<number>--
fit.pad?publicnumber--
latreadonlyFloat64ArrayExperimental-
lengthreadonlynumberExperimental Point count.-
locations?readonlyLocationsRequestExperimental 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
lonreadonlyFloat64ArrayExperimental 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.-
markerSizereadonlynumber | Float32Array<ArrayBufferLike>Experimental Drawn marker diameters in px (one value, or per point), as scatter's calc gives them.-
ppadreadonlynumber | Float64Array<ArrayBufferLike> | undefinedExperimental-
subplotpublicGeoSubplot | undefinedExperimental The subplot the trace is drawn on, set by geoCrossTraceLayout.GeoCalc.subplot
unresolvedreadonlybooleanExperimental 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 ​

ParameterType
resultLocationsResult | undefined

Returns ​

void

Inherited from ​

ts
GeoCalc.located;

Released under the MIT License.