Type Alias for permissible objects which can be used with d3-geo methods
The Albers’ equal area-conic projection. This is a U.S.-centric configuration of d3.geoConicEqualArea.
A U.S.-centric composite projection of three d3.geoConicEqualArea projections: d3.geoAlbers is used for the lower forty-eight states, and separate conic equal-area projections are used for Alaska and Hawaii. Note that the scale for Alaska is diminished: it is projected at 0.35× its true relative area.
Composite consist of several projections that are composed into a single display. The constituent projections have fixed clip, center and rotation, and thus composite projections do not support projection.center, projection.rotate, projection.clipAngle, or projection.clipExtent.
Returns the spherical area of the specified feature in steradians. (See also path.area, which computes the projected planar area.)
A geographic feature supported by d3-geo (An extension of GeoJSON feature).
Returns the spherical area of the specified feature collection in steradians. (See also path.area, which computes the projected planar area.)
A geographic feature collection supported by d3-geo (An extension of GeoJSON feature).
Returns the spherical area of the specified GeoJson Geometry Object or GeoSphere object in steradians. (See also path.area, which computes the projected planar area.)
A GeoJson Geometry Object or GeoSphere object supported by d3-geo (An extension of GeoJSON).
Returns the spherical area of the specified geographic geometry collection in steradians. (See also path.area, which computes the projected planar area.)
A geographic geometry collection supported by d3-geo (An extension of GeoJSON geometry collection).
The azimuthal equal-area projection.
The raw azimuthal equal-area projection.
The azimuthal equidistant projection.
The raw azimuthal equidistant projection.
Returns the spherical bounding box for the specified feature. The bounding box is represented by a two-dimensional array: [[left, bottom], [right, top]], where left is the minimum longitude, bottom is the minimum latitude, right is maximum longitude, and top is the maximum latitude. All coordinates are given in degrees. (Note that in projected planar coordinates, the minimum latitude is typically the maximum y-value, and the maximum latitude is typically the minimum y-value.)
A geographic feature supported by d3-geo (An extension of GeoJSON feature).
Returns the spherical bounding box for the specified feature collection. The bounding box is represented by a two-dimensional array: [[left, bottom], [right, top]], where left is the minimum longitude, bottom is the minimum latitude, right is maximum longitude, and top is the maximum latitude. All coordinates are given in degrees. (Note that in projected planar coordinates, the minimum latitude is typically the maximum y-value, and the maximum latitude is typically the minimum y-value.)
A geographic feature collection supported by d3-geo (An extension of GeoJSON feature).
Returns the spherical bounding box for the specified GeoJson Geometry Object or GeoSphere object. The bounding box is represented by a two-dimensional array: [[left, bottom], [right, top]], where left is the minimum longitude, bottom is the minimum latitude, right is maximum longitude, and top is the maximum latitude. All coordinates are given in degrees. (Note that in projected planar coordinates, the minimum latitude is typically the maximum y-value, and the maximum latitude is typically the minimum y-value.)
A GeoJson Geometry Object or GeoSphere object supported by d3-geo (An extension of GeoJSON).
Returns the spherical bounding box for the specified geometry collection. The bounding box is represented by a two-dimensional array: [[left, bottom], [right, top]], where left is the minimum longitude, bottom is the minimum latitude, right is maximum longitude, and top is the maximum latitude. All coordinates are given in degrees. (Note that in projected planar coordinates, the minimum latitude is typically the maximum y-value, and the maximum latitude is typically the minimum y-value.)
A geographic geometry collection supported by d3-geo (An extension of GeoJSON geometry collection).
Returns the spherical centroid of the specified feature in steradians. (See also path.centroid, which computes the projected planar centroid.)
A geographic feature supported by d3-geo (An extension of GeoJSON feature).
Returns the spherical centroid of the specified feature collection in steradians. (See also path.centroid, which computes the projected planar centroid.)
A geographic feature collection supported by d3-geo (An extension of GeoJSON feature).
Returns the spherical centroid of the specified GeoJson Geometry Object or GeoSphere object in steradians. (See also path.centroid, which computes the projected planar centroid.)
A GeoJson Geometry Object or GeoSphere object supported by d3-geo (An extension of GeoJSON).
Returns the spherical centroid of the specified geographic geometry collection in steradians. (See also path.centroid, which computes the projected planar centroid.)
A geographic geometry collection supported by d3-geo (An extension of GeoJSON geometry collection).
Returns a new geo circle generator
Returns a new geo circle generator
The generic corresponds to the data type of the first argument passed into the geo circle generator and its accessor functions.
Returns a new geo circle generator
The first generic corresponds to the "this" context within which the geo circle generator and its accessors will be invoked.
The second generic corresponds to the data type of the first argument passed into the geo circle generator and its accessor functions.
The conic conformal projection. The parallels default to [30°, 30°] resulting in flat top.
The raw conic conformal projection.
The Albers’ equal-area conic projection.
The raw Albers’ equal-area conic projection.
The conic equidistant projection.
The raw conic equidistant projection.
Returns the great-arc distance in radians between the two points a and b. Each point must be specified as a two-element array [longitude, latitude] in degrees.
Point specified as a two-element array [longitude, latitude] in degrees.
Point specified as a two-element array [longitude, latitude] in degrees.
The equirectangular (plate carrée) projection.
The raw equirectangular (plate carrée) projection.
The gnomonic projection.
The raw gnomonic projection.
Constructs a feature generator for creating graticules: a uniform grid of meridians and parallels for showing projection distortion. The default graticule has meridians and parallels every 10° between ±80° latitude; for the polar regions, there are meridians every 90°.
A convenience method for directly generating the default 10° global graticule as a GeoJSON MultiLineString geometry object.
Returns the identity transform which can be used to scale, translate and clip planar geometry.
Returns an interpolator function given two points a and b. Each point must be specified as a two-element array [longitude, latitude] in degrees.
Point specified as a two-element array [longitude, latitude] in degrees.
Point specified as a two-element array [longitude, latitude] in degrees.
Returns the great-arc length of the specified feature in radians.
A geographic feature supported by d3-geo (An extension of GeoJSON feature).
Returns the great-arc length of the specified feature collection in radians.
A geographic feature collection supported by d3-geo (An extension of GeoJSON feature).
Returns the great-arc length of the specified GeoJson Geometry Object or GeoSphere object in radians.
A GeoJson Geometry Object or GeoSphere object supported by d3-geo (An extension of GeoJSON).
Returns the great-arc length of the specified geographic geometry collection in radians.
A geographic geometry collection supported by d3-geo (An extension of GeoJSON geometry collection).
The spherical Mercator projection. Defines a default projection.clipExtent such that the world is projected to a square, clipped to approximately ±85° latitude.
The raw spherical Mercator projection.
The orthographic projection.
The raw orthographic projection.
Creates a new geographic path generator.
The default projection is the null projection. The null projection represents the identity transformation, i.e. the input geometry is not projected and is instead rendered directly in raw coordinates. This can be useful for fast rendering of pre-projected geometry, or for fast rendering of the equirectangular projection.
The default context is null, which implies that the path generator will return an SVG path string.
An (optional) current projection to be used. Typically this is one of D3’s built-in geographic projections; however, any object that exposes a projection.stream function can be used, enabling the use of custom projections. See D3’s transforms for more examples of arbitrary geometric transformations. Setting the projection to "null" uses the identity projection. The default value is "null", the identity projection.
An (optional) rendering context to be used. If a context is provided, it must at least implement the interface described by GeoContext, a subset of the CanvasRenderingContext2D API. Setting the context to "null" means that the path generator will return an SVG path string representing the to be rendered object. The default is "null".
Creates a new geographic path generator with the default settings.
The default projection is the null projection. The null projection represents the identity transformation: the input geometry is not projected and is instead rendered directly in raw coordinates. This can be useful for fast rendering of pre-projected geometry, or for fast rendering of the equirectangular projection.
The default context is null, which implies that the path generator will return an SVG path string.
The generic corresponds to the type of the DatumObject which will be passed into the geo path generator for rendering
An (optional) current projection to be used. Typically this is one of D3’s built-in geographic projections; however, any object that exposes a projection.stream function can be used, enabling the use of custom projections. See D3’s transforms for more examples of arbitrary geometric transformations. Setting the projection to "null" uses the identity projection. The default value is "null", the identity projection.
An (optional) rendering context to be used. If a context is provided, it must at least implement the interface described by GeoContext, a subset of the CanvasRenderingContext2D API. Setting the context to "null" means that the path generator will return an SVG path string representing the to be rendered object. The default is "null".
Creates a new geographic path generator with the default settings.
The default projection is the null projection. The null projection represents the identity transformation: the input geometry is not projected and is instead rendered directly in raw coordinates. This can be useful for fast rendering of pre-projected geometry, or for fast rendering of the equirectangular projection.
The default context is null, which implies that the path generator will return an SVG path string.
The first generic corresponds to the "this"-context within which the geo path generator will be invoked. This could be e.g. the DOMElement bound to "this" when using selection.attr("d", ...) with the path generator.
The second generic corresponds to the type of the DatumObject which will be passed into the geo path generator for rendering.
An (optional) current projection to be used. Typically this is one of D3’s built-in geographic projections; however, any object that exposes a projection.stream function can be used, enabling the use of custom projections. See D3’s transforms for more examples of arbitrary geometric transformations. Setting the projection to "null" uses the identity projection. The default value is "null", the identity projection.
An (optional) rendering context to be used. If a context is provided, it must at least implement the interface described by GeoContext, a subset of the CanvasRenderingContext2D API. Setting the context to "null" means that the path generator will return an SVG path string representing the to be rendered object. The default is "null".
Constructs a new projection from the specified raw projection, project. The project function takes the longitude and latitude of a given point in radians, often referred to as lambda (λ) and phi (φ), and returns a two-element array [x, y] representing its unit projection. The project function does not need to scale or translate the point, as these are applied automatically by projection.scale, projection.translate, and projection.center. Likewise, the project function does not need to perform any spherical rotation, as projection.rotate is applied prior to projection.
If the project function exposes an invert method, the returned projection will also expose projection.invert.
Constructs a new projection from the specified raw projection factory and returns a mutate function to call whenever the raw projection changes. The factory must return a raw projection. The returned mutate function returns the wrapped projection.
When creating a mutable projection, the mutate function is typically not exposed.
Returns a rotation function for the given angles.
A two- or three-element array of numbers [lambda, phi, gamma] specifying the rotation angles in degrees about each spherical axis. (These correspond to yaw, pitch and roll.) If the rotation angle gamma is omitted, it defaults to 0.
The stereographic projection.
The raw stereographic projection.
Streams the specified GeoJSON object to the specified projection stream. While both features and geometry objects are supported as input, the stream interface only describes the geometry, and thus additional feature properties are not visible to streams.
A projection stream.
Streams the specified GeoJSON object to the specified projection stream. While both features and geometry objects are supported as input, the stream interface only describes the geometry, and thus additional feature properties are not visible to streams.
A projection stream.
Streams the specified GeoJSON object to the specified projection stream. While both features and geometry objects are supported as input, the stream interface only describes the geometry, and thus additional feature properties are not visible to streams.
A projection stream.
Streams the specified GeoJSON object to the specified projection stream. While both features and geometry objects are supported as input, the stream interface only describes the geometry, and thus additional feature properties are not visible to streams.
A projection stream.
Defines an arbitrary transform using the methods defined on the specified methods object. Any undefined methods will use pass-through methods that propagate inputs to the output stream.
An object with custom method implementations, which are used to create a transform projection.
The transverse spherical Mercator projection. Defines a default projection.clipExtent such that the world is projected to a square, clipped to approximately ±85° latitude.
The raw transverse spherical Mercator projection.
Generated using TypeDoc
Type Alias for GeoJSON Geometry Object and GeoSphere additional geometry supported by d3-geo