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();
projection.center()
// center = [0,0]
projections.translate()
// translate = [480,250]
projections.scale()
// 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