mapbox / mapbox/mapbox-maps-flutter

3D polylines integration

Open
#783 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
380
Forks
204
PR merge metrics
No merged PRs in 30d

Description

Hello,

I have looked at the api documentation for a long time and I have looked at the example codes of mapbox maps flutter, and I have not found any way to add 3D polylines.
I am not a professional developer and therefore I may have missed something, but I am almost certain it is not yet possible to do this.
As I am integrating flight paths in my app, I absolutely need this feature.

I have found out that Point Annotation manager has a possibility to Offset in the Z direction, and also the Polyline Annotation Manager but it Offsets all the polyline and I would need to add altitude to each point individually.
The Polyline Annotation Manager takes the Polyline Annotation Options, which has geometry that takes a Line String with coordinates that takes a list of Positions. Position has the ability to take a 3rd argument which is the altitude, but when adding the altitude, the created Polyline has only 2 items instead of 3 in each Position's point. These 2 items are the latitude and altitude.... instead of longitude and latitude, and potentially the altitude in a 3rd item but that is not working currently.

Hope there is a solution for that, or that you will be able to add this in a short time.

Thank you in advance!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the API documentation and mapbox_maps_flutter examples, then inspect the Polyline Annotation Manager, Polyline Annotation Options, LineString, and Position handling described in the issue. Confirm how altitude is represented for each point and define completion as supporting 3D flight-path polylines with longitude, latitude, and altitude preserved per coordinate.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.