I am using mapbox leaflet js in my application "https://api.mapbox.com/mapbox.js/v3.0.1/mapbox.js". Previously i was using google map, I am facing an issue when i draw a polyline in map which crosses the international datelines, the Line which is drawn on map using MapBOx is not wrapped in one copy of world as in Google map.
I had done lot of Reaserach and found that the coordinates which are crossing the dateline add/subtract 360 from the longitude, which will draw a contineous line on map.
But as my client is habitual with google map services so he needs the polyline to be displayed as in google map.
I had attached a Zip file which contains three Screenshots
1) Original_functionality_mapBox.png : This image shows when coordinates of polyline which crosses the international date line are not changed.
2) change_360_Degree.PNG : This image shows when coordinates of polyline which crosses the international date line are changed by subtracting 360 from longitude.
3) google.PNG: when the original coordinates are passed to google map, it automatically adjust the polyline which crosses the international date line.
Please help me urjently to do the same as in google map.