Type class
This is a base class for a geographical projection.
Sources
Projection can be used (imported) via one of the following packages.
/** * -------------------------------------------------------- * Import from: "maps.ts" * Use like: am4maps.Projection * -------------------------------------------------------- */ import * as am4maps from "@amcharts/amcharts4/maps";
/** * -------------------------------------------------------- * Include via: <script src="maps.js"></script> * Access items like: am4.Projection * -------------------------------------------------------- */
Inheritance
Projection does not extend any other symbol.
Projection is extended by Albers
, AlbersUsa
, AzimuthalEqualArea
, Eckert6
, EqualEarth
, Mercator
, Miller
, NaturalEarth1
, Orthographic
, Stereographic
.
Properties
d3Projection # |
Type d3 projection d3 projection |
---|
Methods
constructor() |
Returns |
---|---|
convert( geoPoint: ) |
Returns Converts a geographical point (lat/long) to a screen point (x/y) |
distance( pointA: ) |
Returns |
intermediatePoint( pointA: ) |
Returns |
invert( point: ) |
Returns Converts a screen point (x/y) to a geographical point (lat/long) |
multiDistance( multiGeoLine: ) |
Returns |
positionToGeoPoint( multiGeoLine: ) |
Returns Converts relative position along the line (0-1) into pixel coordinates. |
positionToPoint( multiGeoLine: ) |
Returns Converts relative position along the line (0-1) into pixel coordinates. |
project( lambda: ) |
Returns Returns X/Y coordinates. Individual projections will override this method to apply their own projection logic. @deprecated |
unproject( x: ) |
Returns Returns geographical coordinates (lat/long). Individual projections will override this method to apply their own projection logic. @deprecated |
Events
Projection does not have any events.
Adapters
Projection does not have any adapters.