Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty black box on iOS #1

Closed
tjvantoll opened this issue Dec 14, 2015 · 3 comments
Closed

Empty black box on iOS #1

tjvantoll opened this issue Dec 14, 2015 · 3 comments

Comments

@tjvantoll
Copy link

Hey @EddyVerbruggen,

I tried out this plugin today and it works great on Android, but on iOS I’m unfortunately not seeing a map—all I see is a black box.

img_0837

I’ve tried your demo and my own custom app and I get the same. Any idea what might be up here? The logs tell me that I have permissions and mapbox.show doesn’t log any errors, so I’m not sure what’s up.

Thanks.

@tjvantoll
Copy link
Author

Oh, one completely unrelated note. This code on the docs:

mapbox.hasFineLocationPermission().then(
    function(granted) {
      // if this is 'false' you probably want to call 'requestFineLocationPermission' now
      console.log("Has Location Permission? " + result);
    }
);

result is not defined here. I’m guessing you meant to use granted in the console.log() call.

EddyVerbruggen pushed a commit that referenced this issue Dec 22, 2015
@EddyVerbruggen
Copy link
Collaborator

Hey TJ, thanks for the report. It was a bit buried by all other stuff in my mailbox, but I just stumbled on it again and took a moment to fix it.

Turned out the Mapbox guys changed the location of the resource files a bit, so the plugin could no longer load the map. That's what you get when you don't pin to a specific SDK version. The plugin now pins to a version it is known to work well with (should have done that in the first place).

The doc is also fixed, thanks for noticing that!

@tjvantoll
Copy link
Author

No worries, I can only imagine what your GitHub notification situation is like 😛

Thanks for the fix! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants