0

I'm using Leaflet JS with a modified GeoJSON file of world contries to display a choropleth, like this:

World map

Is there any way to display the far-eastern part of Russia as a contiguous entity? Rather than it being split to due to its coordinates.

  • I guess it's not about Leaflet but GeoJSON. In your GeoJSON file, far-eastern part of Russia may/must be seperate polygon. – Kadir Şahbaz Aug 01 '18 at 12:04
  • Maybe related: https://gis.stackexchange.com/questions/123038/mapping-russia-intl-dateline-splitting-polygon and the questions the Linked section there. – AndreJ Aug 01 '18 at 12:06
  • 1
    Another answer more suited specifically for Leaflet is https://stackoverflow.com/a/40544502/4768502 – IvanSanchez Aug 01 '18 at 12:39
  • Ivan's answer above did the trick. I just added 360 to the x axis of the relevant geoJSON and used turf.js's union function, which can very quickly be used to merge polygons. – Kohjah Breese Aug 02 '18 at 19:50

0 Answers0