flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.03k stars 498 forks source link

RasterSource can not load when offline #1393

Closed cherho0 closed 7 months ago

cherho0 commented 7 months ago

I add a tile server on the device , add a RasterSourceLyaer use 127.0.0.1 to add the tile ,when I turn off the wifi , the layer will not show , when connect to wifi , it show .

cherho0 commented 7 months ago

I have fixed this bug , I modified the source code

case "setOffline":
        boolean offline = methodCall.argument("offline");
        ConnectivityReceiver.instance(context).setConnected(offline ? false : true);

Make it connected , the layer will draw . awesome