Mercator
Type class
Mercator projection.
Sources
This information about Mercator is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
Mercator extends Projection.
Mercator is not extended by any other symbol.
Properties
1 inherited item
d3ProjectionType
GeoProjectionInherited fromProjectiond3 projection d3 projection
Methods
constructor()Returns
Mercator
9 inherited items
convert(geoPoint:IGeoPoint)Returns
IPointInherited fromProjectionConverts a geographical point (lat/long) to a screen point (x/y)
distance(pointA:IGeoPoint,
pointB:IGeoPoint)Returns
numberInherited fromProjectionintermediatePoint(pointA:IGeoPoint,
pointB:IGeoPoint,
position:number)Returns
IGeoPointInherited fromProjectioninvert(point:IPoint)Returns
IGeoPointInherited fromProjectionConverts a screen point (x/y) to a geographical point (lat/long)
multiDistance(multiGeoLine:Array<Array<IGeoPoint>>)Returns
numberInherited fromProjectionpositionToGeoPoint(multiGeoLine:Array<Array<IGeoPoint>>,
position:number)Returns
IGeoPointInherited fromProjectionConverts relative position along the line (0-1) into pixel coordinates.
positionToPoint(multiGeoLine:Array<Array<IGeoPoint>>,
position:number)Returns
IOrientationPointInherited fromProjectionConverts relative position along the line (0-1) into pixel coordinates.
project(lambda:number,
phi:number)Returns
IPointInherited fromProjectionDeprecated Deprecated
Returns X/Y coordinates.
Individual projections will override this method to apply their own projection logic.
unproject(x:number,
y:number)Returns
IGeoPointInherited fromProjectionDeprecated Deprecated
Returns geographical coordinates (lat/long).
Individual projections will override this method to apply their own projection logic.
Events
Mercator does not have any events.