Closed sumeetrane-technosoft closed 2 years ago
Hi @sumeetrane-technosoft, The line component uses a geojson lineString under the hood, so the line you are seeing is the 'shortest' route between Mumbai and California. Unfortunately with this projection, this results in a line that looks a bit strange and does not have the desired outcome.
There are a few options for a solution here. The most useful one is probably to use the MapContext
to create a CustomLine
component that draws a simple line between point A and point B. That way, the line will always stay within the SVG viewport.
I made a codesandbox example for you, since the MapContext
is not well documented at the moment. We are working on a new documentation site that should be out very shortly.
The lines connecting from California to mumbai should flow in a straight line & not the other way around. How can i make it flow in a straight way ?