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

StaticPolylineAnnotation failed to add track. The resulting static graph has no traces #1551

Open
18320832247 opened this issue Jun 21, 2023 · 1 comment

Comments

@18320832247
Copy link

I entered the correct latitude and longitude, but still get an error:{"message":"Overlay bounds are out of range."}

@18320832247
Copy link
Author

List originalPath = Arrays.asList(
Point.fromLngLat(113.9463922, 22.5711518),
Point.fromLngLat(113.9496811, 22.5716322),
Point.fromLngLat(113.9501156, 22.5716832),
Point.fromLngLat(113.9502519, 22.5723136),
Point.fromLngLat(113.9500099, 22.5749452)
);
//LineString polyline = LineString.fromLngLats(polylinePoints);
String encodedPolyline = PolylineUtils.encode(originalPath, 6);
StaticPolylineAnnotation polylineAnnotation = StaticPolylineAnnotation.builder()
.polyline(encodedPolyline)
.strokeColor("ff0000")
.strokeWidth(3.0d)
.build();
polylines.add(polylineAnnotation);

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