D3.js geo worldmap - the merger of Russia (the shift of a small part on the left next to America on the right)

I created a simple world map with d3, as you can see here: http://bl.ocks.org/wiesson/ef18dba71256d526eb42

move a small part to the right

Is there a simple way to move a small part of Russia (as shown in the figure) to the right, without creating a new topojion? If not, any other idea?

+6
source share
1 answer

Well, the answer was simple. As explained in api docs, the rotate method can turn a map. So rotate([-11, 0]) "rotated" the map in the place that I was looking for.

 var projection = d3.geo.mercator().scale(width / 2 / Math.PI) .rotate([-11, 0]) .translate([(width) / 2, height * 1.35 / 2]) .precision(.1); 
+9
source

All Articles