0

This question already has an answer here:

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.

marked as duplicate by Ian Turton Aug 1 '18 at 12:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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 1 '18 at 12:04
  • Maybe related: gis.stackexchange.com/questions/123038/… and the questions the Linked section there. – AndreJ Aug 1 '18 at 12:06
  • 1
    Another answer more suited specifically for Leaflet is stackoverflow.com/a/40544502/4768502 – IvanSanchez Aug 1 '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 2 '18 at 19:50

Browse other questions tagged or ask your own question.