Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Map googledesic does not work as expected. #765

Closed
shamsher31 opened this issue Nov 2, 2016 · 3 comments
Closed

Google Map googledesic does not work as expected. #765

shamsher31 opened this issue Nov 2, 2016 · 3 comments

Comments

@shamsher31
Copy link
Contributor

According to the source code for GoogleMapsPolylineOptions, there is a option called googledesic which allow us to draw polyline according to geodesics.

I have following code.

let polyLine: GoogleMapsPolylineOptions = {
      points: [
        sourceLocation,
        destLocation
      ],
      googledesic: true,
      color: '#e74c3c',
      width: 2
    };
    
    map.addPolyline(polyLine);

I have set googledesic to true but still getting straight line. See screen shot.

screenshot_2016-11-02-19-14-33

@shamsher31
Copy link
Contributor Author

@ihadeed @mlynch Did you get a chance to look at it.

@ihadeed
Copy link
Collaborator

ihadeed commented Nov 23, 2016

Sorry for the late response. That was a typo. It should be geodesic not googledesic. Just fixed it.

@shamsher31
Copy link
Contributor Author

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants