You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
The function getMapAsync() doesn't work on Fragment and SupportFragment when turn off network.
On activity, it seem to work fine.
Please, have a look at this problem.
Thank you for reaching out and reporting your problem.
I'm also noticing this without turning off network.
I already created an issue related to adding a MapView programatically.
Going to use #4439 in favour of this.
@tobrun I add SupportFragment progammatically, and it work fine with the network. I get the source from github and add log at getMapAsync() on example of FragmentActivity and SupportFragmentActivity. When network is on, it work OK. Turning network off, it can not show log.
@vfaSonnt thank you clarifying that for me. Besides #4393 there is already a #4393 ticket open that should cover your use-case. You are using the offline functionality and downloaded a region locally?
I produced this clip with the SupportMapFragmentActivity when I have no internet, IMHO this is working as designed. If there is no internet connection we are not able to load content. If I turn on my WiFi and I have a new connection it downloads the content and calls the onMapReady callback.
Please elaborate what you expect it should do, I'm open to suggestions.
@tobrun
Thank you for your support.
Sorry ,my bad. I didn't tell you about android OS.
I test on Galaxy S4, OS 4.4.2, this bug will always appear. 100% appear.
So I think it only happen on Android OS <5.0.
Activity
tobrun commentedon Mar 23, 2016
Thank you for reaching out and reporting your problem.
I'm also noticing this without turning off network.
I already created an issue related to adding a MapView programatically.
Going to use #4439 in favour of this.
vfaSonnt commentedon Mar 24, 2016
@tobrun I add SupportFragment progammatically, and it work fine with the network. I get the source from github and add log at getMapAsync() on example of FragmentActivity and SupportFragmentActivity. When network is on, it work OK. Turning network off, it can not show log.
tobrun commentedon Mar 24, 2016
@vfaSonnt thank you clarifying that for me. Besides #4393 there is already a #4393 ticket open that should cover your use-case. You are using the
offlinefunctionality and downloaded a region locally?vfaSonnt commentedon Mar 24, 2016
@tobrun No, I test on Mapbox Examples source code with SupportMapFragmentActivity. Network on, it animate Camera, without network , it stay still.
tobrun commentedon Mar 24, 2016
@vfaSonnt
I produced this clip with the
SupportMapFragmentActivitywhen I have no internet, IMHO this is working as designed. If there is no internet connection we are not able to load content. If I turn on my WiFi and I have a new connection it downloads the content and calls the onMapReady callback.Please elaborate what you expect it should do, I'm open to suggestions.
https://www.dropbox.com/s/o39dw9s6vhmwehh/device-2016-03-24-102121.mp4?dl=0
vfaSonnt commentedon Mar 24, 2016
@tobrun
Thank you for your support.
Sorry ,my bad. I didn't tell you about android OS.
I test on Galaxy S4, OS 4.4.2, this bug will always appear. 100% appear.
So I think it only happen on Android OS <5.0.
I test on Nexus5, OS 5.0. It work fine.
vfaSonnt commentedon Mar 24, 2016
Sometime, it happen on OS5.0 too.
https://drive.google.com/file/d/0B6QuWvSOy6oYVDVpMlpodC1Hazg/view?usp=sharing