All examples By author By category About

d3noob

Constrained Zoom Map. Centered on the Pacific

This example is a minor variation on Mike Bostocks zoom constrained map, which demonstrates using the zoom event to constrain the zoom behavior’s translation. However, this version is centered on the anti-meridian (the Pacific).

The centering on a position other thann the prime medidian is accomplished by setting .rotate([-180,0]); as part of the var projection = section.