I have just used D3.js geo-projection to create a country map. However, the projection seems to project the country and the entire earth. From the image below, we can see a clear boundary, which indicates (-180, -90) β (180, 90) (latitude and longitude).
I just wrote the simplest code for the d3.js map:
const projection = d3.geoEquirectangular();
projection.fitSize([width, height], data);
const path = d3.geoPath().projection(projection);
I am sure my .geojson file only contains the multi polygon w.r.t a single country. The points do not exceed the country, i.e., I do not have a point at (180, 90).
I donβt know why d3.js added the entire earth boundary for me. I just want the single country to fit the SVG size.
I use the same code for a province, which correctly fits the SVG without a boundary.