Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

add support for geodesic polylines (and thus great circles) #1726

Closed

Description

@incanus

We did this before in our raster SDK here:

https://github.com/mapbox/mapbox-ios-sdk/blob/edbe9905299ddbf8b32e41d8978b7b3265eef8f8/MapView/Map/RMGreatCircleAnnotation.m

Demo: https://vimeo.com/73482728

This uses a ~100 segment polyline to approximate a curved one and looks good. But we probably want to do this at the C++ level and wrap it in client APIs?

Relatively low priority.

Activity

  1. tmcw commented on Feb 19, 2016

    @tmcw
    Contributor

    @bleege @1ec5 are there built-in great circle line constructors in MapKit or Google Maps? If not, would it be okay to implement this outside of core?

  2. self-assigned this
    on Feb 19, 2016
  3. 1ec5 commented on Feb 19, 2016

    @1ec5
    Contributor

    MapKit supports circles; we're tracking an equivalent in #2167. But no, I think support for geodesic polylines on iOS is limited to the legacy Mapbox iOS SDK and possibly some niche libraries.

    We don't have an answer for implementing anything "outside of core" at the moment. There's no plugin system, but one could be fashioned out of CocoaPods subspecs. (There's no equivalent concept for Carthage, Fabric, or manual installation.)

  4. tmcw commented on Feb 19, 2016

    @tmcw
    Contributor

    I'll implement this in Swift as a learning exercise.

  5. bleege commented on Feb 19, 2016

    @bleege
    Contributor

    @tmcw Nope on Android either. That said, I think there's some confusion about "outside of core" means here. We'd likely want to bake the math part into Core GL (aka C++ level that @incanus talked about above) and then have iOS and Android bindings in the regular SDKs and not standalone libraries that would be distributed via CocoaPods or Maven Central. Make sense?

  6. 1ec5 commented on Mar 2, 2016

    @1ec5
    Contributor

    But no, I think support for geodesic polylines on iOS is limited to the legacy Mapbox iOS SDK and possibly some niche libraries.

    Correction: MapKit supports geodesic polylines with the MKGeodesicPolyline class. There are some examples at NSHipster.

  7. removed their assignment
    on Mar 14, 2016
  8. 1ec5 commented on May 28, 2016

    @1ec5
    Contributor

    @jfirebaugh, would geometry.hpp need to support geodesic polylines as a separate geometry type, or could it be treated as a special case of a line string?

  9. added
    MapKit parity
    on Aug 22, 2016
  10. added
    Google Maps parity
    on Apr 20, 2017
  11. added
    Core
    on May 30, 2017
  12. kkaefer commented on May 30, 2017

    @kkaefer
    Member

    See #6861 / #6940 for a potential alternative.

  13. captainbarbosa commented on Nov 23, 2017

    @captainbarbosa
    Contributor

    Is this something that we would still consider implementing?

  14. mikaelhellqvist commented on Nov 23, 2017

    @mikaelhellqvist
  15. added
    archived
    on Nov 3, 2018
  16. stale commented on Dec 3, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreGoogle Maps parityMapKit parityarchivedfeaturerendering

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions