Default Projection Parameters

Have you ever wondered why your map was not centred to your coordinates?

The reason might be that you’re not setting scale and translate and they use the defaults.

// for example for naturalEarth
var projection = d3.geoNaturalEarth1();
// center = [0,0]

// translate = [480,250]

// scale = 175.295

The parameters are different for each projection.

Written by Mila

See Also

shorthand functions

Small tip for writing less boilerplate

Bubble Map Radius

Small tip for your bubble maps.

Promises error

Small tip when you hit a async error