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

d3Projection
#

Type GeoProjection

Inherited from Projection

d3 projection d3 projection

There is 1 inherited item currently hidden from this list.

Methods

constructor()

#

Returns Mercator

convert(

geoPoint: IGeoPoint

)

#

Returns IPoint

Inherited from Projection

Converts a geographical point (lat/long) to a screen point (x/y)

distance(

pointA: IGeoPoint,
pointB: IGeoPoint

)

#

Returns number

Inherited from Projection

intermediatePoint(

pointA: IGeoPoint,
pointB: IGeoPoint,
position: number

)

#

Returns IGeoPoint

Inherited from Projection

invert(

point: IPoint

)

#

Returns IGeoPoint

Inherited from Projection

Converts a screen point (x/y) to a geographical point (lat/long)

multiDistance(

multiGeoLine: Array < Array < IGeoPoint > >

)

#

Returns number

Inherited from Projection

positionToGeoPoint(

multiGeoLine: Array < Array < IGeoPoint > > ,
position: number

)

#

Returns IGeoPoint

Inherited from Projection

Converts relative position along the line (0-1) into pixel coordinates.

positionToPoint(

multiGeoLine: Array < Array < IGeoPoint > > ,
position: number

)

#

Returns IOrientationPoint

Inherited from Projection

Converts relative position along the line (0-1) into pixel coordinates.

project(

lambda: number,
phi: number

)

#

Returns IPoint

Inherited from Projection

Returns X/Y coordinates.

Individual projections will override this method to apply their own projection logic.

@deprecated
@todo Needs description

unproject(

x: number,
y: number

)

#

Returns IGeoPoint

Inherited from Projection

Returns geographical coordinates (lat/long).

Individual projections will override this method to apply their own projection logic.

@deprecated
@todo Needs description

There are 9 inherited items currently hidden from this list.

Events

Mercator does not have any events.

Adapters

Mercator does not have any adapters.