react-baidu-maps icon indicating copy to clipboard operation
react-baidu-maps copied to clipboard

Not creating shortest polyline between China and USA

Open cjadhav opened this issue 3 years ago • 1 comments

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) Gmap

Actual (Baidu Maps) Bmap

Please help if we can handle this situations in Baidu Maps.

Thanks

cjadhav avatar Aug 19 '21 13:08 cjadhav

The PolylineOptions class has a property called geodesic, and when set to true, will display a polyline over the Pacific Ocean.

image image

terence55 avatar Aug 02 '23 05:08 terence55