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

Sources hosted on localhost still need network connection. #12819

Closed
kptlronyttcna opened this issue Sep 5, 2018 · 3 comments
Closed

Sources hosted on localhost still need network connection. #12819

kptlronyttcna opened this issue Sep 5, 2018 · 3 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@kptlronyttcna
Copy link

kptlronyttcna commented Sep 5, 2018

Steps to reproduce

  1. Host a vector tile according to this.
  2. Not be connected to a network

Expected behavior

See the vector tiles without network connection.

Actual behavior

No tiles is shown.

Configuration

Mapbox SDK versions: 6.5.0-alpha.1

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Sep 5, 2018
@tobrun
Copy link
Member

tobrun commented Sep 5, 2018

This was working with older versions of the SDK and thus a regression?

@kptlronyttcna
Copy link
Author

kptlronyttcna commented Sep 5, 2018

No, it did not work with older versions either (tested with 6.4.0 too)

@tobrun
Copy link
Member

tobrun commented Sep 6, 2018

You can call Mapbox#setConnected(true) to override system connectivity state changes.
This should solve your use-case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

2 participants