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.

Map change errors/failures should be specified and passed through to platform SDKs #8086

Closed

Description

@ericrwolfe

Currently map.cpp only returns single mbgl::MapChangeDidFailLoadingMap event for any and all map failures, making it impossible for a developer to distinguish between map failures.

For example, on iOS the same error is returned whether a map load failed due to a bad access token, a bad style, or a bad network connection.

/cc @1ec5

Activity

  1. added
    Core
    on Feb 16, 2017
  2. 1ec5 commented on Feb 16, 2017

    @1ec5
    Contributor

    The error was implemented in #3063 to use a generic code and nil message because of this issue. As such, it’s debatable whether we’ve actually fixed #2762, and certainly this blocks #2775. mbgl notifications could be structs with richer information, but at that point we might as well start throwing real C++ exceptions and catching them at the SDK level, along the lines of #3063.

  3. 1ec5 commented on Mar 16, 2017

    @1ec5
    Contributor

    This is happening in #8418.

  4. added
    MapKit parity
    on Mar 16, 2017
  5. added this to the ios-v3.6.0 milestone on Mar 16, 2017
  6. boundsj commented on Mar 22, 2017

    @boundsj
    Contributor

    #8418 landed in the master branch.

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

    CoreMapKit parity

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions