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.

MapChange loading notifications are never sent #2263

Closed

Description

@friedbunny

These MapChange notifications are never sent and exist only in the enum definition:

MapChangeWillStartLoadingMap = 5,
MapChangeDidFinishLoadingMap = 6,
MapChangeDidFailLoadingMap = 7,

They need to be hooked up at the MBGL level. The delegate methods already exist on iOS and Android.

/cc @kkaefer @brunoabinader @tmpsantos @jfirebaugh

Activity

  1. added this to the android-v2.2.0 milestone on Oct 13, 2015
  2. ljbade commented on Oct 13, 2015

    @ljbade
    Contributor

    The obvious place to implement this is here:

    if (res.status == Response::Successful) {
    loadStyleJSON(res.data, base);
    } else {
    Log::Error(Event::Setup, "loading style failed: %s", res.message.c_str());
    }

    @jfirebaugh For MapChangeDidFinishLoadingMap, should it be delayed until after the next successful asyncUpdate? I assume this is when we actually know things such as the marker top offset pixels value? (Needed in #2599)

  3. ljbade commented on Oct 13, 2015

    @ljbade
    Contributor

    @jfirebaugh in the commit ^ I tried triggering MapChangeDidFinishLoadingMap after the update(), but this is still too early. I need to wait for at least the sprite sheets to finish loading. Should we also wait for fonts to finish loading too?

    I'm not familiar enough with the code to know how to wait for sprites/fonts to finish loading.

  4. jfirebaugh commented on Oct 13, 2015

    @jfirebaugh
    Contributor

    Closing as a duplicate of #630; will comment there with implementation notes.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions