Skip to content

@mk7s/holochart-traces-geo ​

Classes ​

ClassDescription
GeoSubplotA geo subplot laid out (see the module comment).
GeoViewOne geo subplot's projection and view. Build it with createGeoView.

Interfaces ​

InterfaceDescription
BasemapLayersThe basemap of one resolution and scope, decoded to GeoJSON in degrees (ADR-024). Polygons are wound the way d3-geo expects (clockwise outer rings on the sphere), so they stream without a rewind. A layer that failed to load, or was not asked for, is absent.
BasemapOptionsOptions of loadBasemap and peekBasemap.
ChoroplethCalc-
ChoroplethTraceMarkerOutline and opacity of the regions.
ChoroplethTraceMarkerLineThe outlines of the regions.
ChoroplethTraceSelectedHow the selected regions are drawn while a selection is active.
ChoroplethTraceSelectedMarkerStyle of the selected regions.
ChoroplethTraceUnselectedHow the unselected regions are drawn while a selection is active.
ChoroplethTraceUnselectedMarkerStyle of the unselected regions.
CountryPropertiesProperties of a country feature of the basemap.
FullGeoAxislayout.geo.lonaxis / lataxis after defaults.
FullGeoLayoutOne layout.geo container after defaults (fullLayout.geo, fullLayout.geo2, …).
FullGeoProjectionlayout.geo.projection after defaults.
GeoViewStateWhat an interaction changes about a view.
LocatedFeatureA feature that locations name. One object per feature and source, shared by its locations.
LocationsRequestThe location attributes of a trace (see locationsOf).
LocationsResultThe answer of locate; treat it as frozen, traces with the same locations share it.
ScattergeoCalc-
ScattergeoTraceLineLine style (mode lines). Each segment follows the great circle between its points.
ScattergeoTraceMarkerMarker style (mode markers).
SubunitPropertiesProperties of a subunit feature (a US state and the like).

Type Aliases ​

Type AliasDescription
ChoroplethTraceA choropleth map: the regions that locations name (countries, US states, or the features of a geojson) filled with the colors of their z values, on a map-projection subplot (layout.geo).
GeoResolutionlayout.geo.resolution: the Natural Earth scale denominator in millions.
GeoScopePlotly's layout.geo.scope values.
LocationModePlotly's locationmode values.
ScattergeoTraceMarkers, great-circle lines, text and filled areas at longitudes and latitudes on a map-projection subplot (layout.geo).
TracesGeoAny trace of @mk7s/holochart-traces-geo, discriminated on type. Type a partial bundle's figures with it: FigureInput<TracesGeo>.

Variables ​

VariableDescription
choropleth-
choroplethAttributes-
geoAttributesThe geo subplot container family (geo, geo2, …).
geoComponentThe geo component: draws the base layers of geo subplots and runs their pan, zoom and rotation (see the module comment). Register it with the geo traces.
GLOBE_PROJECTIONThe 3D globe (backlog GEO8, ADR-028): the one projection.type that is Holochart's own and not one of Plotly's, which is why it is in neither table above. Its view is the orthographic one (geoOrthographic, the same spans, clip angle, fit and interaction); what differs is how the subplot is drawn, as a sphere in a 3D viewport.
scattergeo-
scattergeoAttributes-
tracesGeoEvery geo module, for register(...tracesGeo).

Functions ​

FunctionDescription
loadBasemapThe basemap layers of one resolution and scope, decoded to GeoJSON.

Released under the MIT License.