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.

'load' or 'ready' event #630

Closed
Closed

Description

@ljbade

It would be useful to have a way to know when the map has finished loading.

My first use would be as part of the automated Testmunk testing.

Inspired by mapbox/mapbox-gl-js#826

Activity

  1. incanus commented on Dec 2, 2014

    @incanus
    Contributor

    We have that started on iOS already:

    Agree — this could cover many other circumstances like map style change.

  2. ljbade commented on Jan 19, 2015

    @ljbade
    ContributorAuthor

    @jfirebaugh I suppose something similar to you JS event would work here?

  3. ljbade commented on Jan 27, 2015

    @ljbade
    ContributorAuthor

    Ah I see I just need to hook this up.

  4. added this to the milestone on Feb 13, 2015
  5. modified the milestones: , on Feb 17, 2015
  6. added
    Android
    on Aug 26, 2015
  7. bleege commented on Aug 26, 2015

    @bleege
    Contributor

    @ljbade Still feeling this is necessary?

  8. modified the milestones: , android-v0.1.0 on Aug 26, 2015
  9. ljbade commented on Aug 27, 2015

    @ljbade
    ContributorAuthor

    Yeah I think we will need this when it comes time to run automated testing.

  10. incanus commented on Aug 27, 2015

    @incanus
    Contributor

    You want

    MapChangeWillStartRenderingMap = 11,
    MapChangeDidFinishRenderingMap = 12,
    MapChangeDidFinishRenderingMapFullyRendered = 13,
    .

  11. bleege commented on Aug 27, 2015

    @bleege
    Contributor

    GTK. Let's still leave it for 0.2.0 as we need to 🚢 0.1.0 sooner rather than later.

  12. 16 remaining items

  13. ljbade commented on Oct 15, 2015

    @ljbade
    ContributorAuthor

    Fair enough

  14. ljbade commented on Oct 16, 2015

    @ljbade
    ContributorAuthor

    After discussion with @jfirebaugh the PR #2599 will only implement the start and successful load events.

    Failure event needs some work due to interaction with how setStyleUrl clears the set JSON but doesn't trigger an update().

    So going to leave this issue open until then.

    @1ec5 or @incanus: Is there any work needed on iOS side now that the start and success events are hooked up? Documentation?

  15. 1ec5 commented on Oct 16, 2015

    @1ec5
    Contributor

    The methods do need to be documented still so that they show up in the API documentation.

  16. ljbade commented on Oct 16, 2015

    @ljbade
    ContributorAuthor

    @1ec5 some tests would be good too. Does iOS/core have any tests for the existing map change events?

  17. friedbunny commented on Oct 16, 2015

    @friedbunny
    Contributor

    We have region change delegate tests for iOS, but they've been flaky and are mostly disabled at the moment. We should add new tests for map change, see what happens. 💥

  18. friedbunny commented on Oct 22, 2015

    @friedbunny
    Contributor

    It looks like willStart and didFinish landed in master via #2627 last week, and in Android v2.1.0 via 66c3fe2.

    What is left to do? failedToLoad probably deserves its own ticket and we can close here.

    iOS next steps are in #2706.

    @bleege @ljbade This belongs on the android-v2.1.0 milestone, no?

  19. ljbade commented on Oct 22, 2015

    @ljbade
    ContributorAuthor

    @friedbunny Yes, put this issue on v2.1.0 make a new ticket for failedToLoad where can be assigned a milestone at some stage.

  20. friedbunny commented on Oct 23, 2015

    @friedbunny
    Contributor

    MapChangeDidFailLoadingMap is happening in #2762.

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

    AndroidfeatureiOS

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions