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

Test and document willStartLoading & didFinishLoading delegate methods #2706

Merged
merged 2 commits into from
Nov 18, 2015

Conversation

friedbunny
Copy link
Contributor

With #630 and #2627, the map loading notifications should be being sent from core MBGL, which means that the mapViewWillStartLoadingMap: & mapViewDidFinishLoadingMap: delegate methods that already exist in MGLMapViewDelegate should be ready for use.

/cc @incanus @1ec5

@friedbunny friedbunny added iOS Mapbox Maps SDK for iOS documentation labels Oct 22, 2015
@friedbunny friedbunny self-assigned this Oct 22, 2015
@friedbunny friedbunny added this to the ios-v2.2.0 milestone Oct 22, 2015
@friedbunny
Copy link
Contributor Author

Going to wait for the ios-improve-tests branch to shake out before thinking about writing tests for this.

@friedbunny
Copy link
Contributor Author

This doesn't necessarily need to wait for the MapKitization proposed in #2775, but that should be on the radar here.

@1ec5
Copy link
Contributor

1ec5 commented Nov 17, 2015

What’s left? Should this still be on the 3.0.0 milestone?

@friedbunny
Copy link
Contributor Author

What’s left? Should this still be on the 3.0.0 milestone?

I see two options:

  1. Ditch this and only surface these delegate methods when they're improved and work reliably (Make iOS delegate notifications consistent with MapKit #2775).
  2. Merge but add notes about limitations to the inline docs, stating that functionality will improve/change eventually.

I'm leaning towards option two, though either way developers will be able to access these methods.

@incanus
Copy link
Contributor

incanus commented Nov 17, 2015

Just to restate, the issue is that these don't work reliably for tests, or always?

Option two sounds better to me providing these work for users, and we'll continue to up our testing game across the whole framework, though we'd need to update CHANGELOG.md to not be so bright-eyed and bushy-tailed, I think.

@friedbunny
Copy link
Contributor Author

Just to restate, the issue is that these don't work reliably for tests, or always?

Per #2775, these two callbacks (and the related load failure callbacks) don't work as a MapKit developer would expect — they reliably fire, but at the wrong times.

@incanus
Copy link
Contributor

incanus commented Nov 18, 2015

Ok, I think we can roll this PR in then for 3.0.0.

@incanus incanus force-pushed the 2706-ios-map-loading-delegate-methods branch from 767c78c to f0022e6 Compare November 18, 2015 18:26
@incanus
Copy link
Contributor

incanus commented Nov 18, 2015

Rebased & awaiting tests (even if this is just header doc changes).

@incanus incanus assigned incanus and unassigned friedbunny Nov 18, 2015
@incanus incanus merged commit f0022e6 into master Nov 18, 2015
@incanus incanus deleted the 2706-ios-map-loading-delegate-methods branch November 18, 2015 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants