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

Bubble Map Radius

Small tip for your bubble maps.

Promises error

Small tip when you hit a async error

d3 events tips

Small tip for selecting the active element for events