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

How to draw polylines from US to Asia across the Pacific #759

Open
MissingLinkDev opened this issue Nov 3, 2024 · 0 comments
Open

How to draw polylines from US to Asia across the Pacific #759

MissingLinkDev opened this issue Nov 3, 2024 · 0 comments

Comments

@MissingLinkDev
Copy link

Trying to draw a polyline from from the US to Asia across the Pacific Ocean, problem is when the line hits edge of the map it draws horizontally across the entire map to the opposite edge before continuing on the path.
Screenshot_20241102-175942
Screenshot_20241102-175245

Im using a polylineAnnotationManager to create multiple lines from a list of points:

breadcrumbPolylineAnnotationManager!
        .createMulti(validBreadcrumbs.map((crumb) {
      return map.PolylineAnnotationOptions(
        geometry: map.LineString.fromPoints(
          points: crumb.convertPolylineListToMapboxPoints(),
        ),
        lineColor: crumb.getPolylineColor().value,
        lineWidth: 5.0,
      );
    }).toList());

here is the points that correspond to the transition from from negative to positive longitudes
image

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

1 participant