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.

Notify MGLMapViewDelegate when style loading completes #6412

Closed

Description

@1ec5

As of #6371, MGLMapView.mm has a compiler warning due to the new MapChangeDidFinishLoadingStyle signal not being handled by an MGLMapViewDelegate method:

Semantic Issue Group
/Users/mxn/hub/mapbox-gl-native/platform/macos/src/MGLMapView.mm:753:13: Enumeration value 'MapChangeDidFinishLoadingStyle' not handled in switch

We’ll need to add -[MGLMapView mapView:didFinishLoadingStyle:] to both the iOS and macOS SDKs. The second parameter would be an MGLStyle, at least once #6097 lands and an instance of MGLStyle sticks around a bit longer.

Adding this method will take us a little further from the set of delegate methods exposed by MapKit (#2775), but MapKit doesn’t have the concept of remote map types anyhow (at least publicly).

/cc @friedbunny

Activity

  1. added
    iOS
    macOS
    on Sep 21, 2016
  2. added this to the ios-v3.4.0 milestone on Sep 21, 2016
  3. 1ec5 commented on Sep 22, 2016

    @1ec5
    ContributorAuthor

    A block-based style setter (#6386 (comment)) would be a fine alternative, but we need this delegate method in the meantime.

  4. self-assigned this
    on Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildiOSmacOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions