react-baidu-maps
react-baidu-maps copied to clipboard
Not creating shortest polyline between China and USA
Hi I guess this is NOT issue with the module, but definately a issue with Baidu Maps.
Ploting polyline from a city from west coast of USA (e.g. Los Angeles, USA) to East Coast of China (e.g Shanghai, China). It should show the polyline over Pacific Ocean but it shows in wrong direction. (shows over India, Africa and then USA.)
Expected (Google Map)
Actual (Baidu Maps)
Please help if we can handle this situations in Baidu Maps.
Thanks
The PolylineOptions
class has a property called geodesic
, and when set to true, will display a polyline over the Pacific Ocean.