@@ -55,7 +55,7 @@ class OfflineMapExampleState extends State<OfflineMapExample> {
5555 // Note this will not remove the downloaded style pack, instead, it will
5656 // just mark the resources as not a part of the existing style pack. The
5757 // resources still exists in the disk cache.
58- await _offlineManager? .removeStylePack (MapboxStyles .SATELLITE_STREETS );
58+ await _offlineManager? .removeStylePack (MapboxStyles .STANDARD_SATELLITE );
5959 }
6060
6161 _downloadStylePack () async {
@@ -65,7 +65,7 @@ class OfflineMapExampleState extends State<OfflineMapExample> {
6565 metadata: {"tag" : "test" },
6666 acceptExpired: false );
6767 _offlineManager? .loadStylePack (
68- MapboxStyles .SATELLITE_STREETS , stylePackLoadOptions, (progress) {
68+ MapboxStyles .STANDARD_SATELLITE , stylePackLoadOptions, (progress) {
6969 final percentage =
7070 progress.completedResourceCount / progress.requiredResourceCount;
7171 if (! _stylePackProgress.isClosed) {
@@ -84,7 +84,7 @@ class OfflineMapExampleState extends State<OfflineMapExample> {
8484 // If you are using a raster tileset you may need to set a different pixelRatio.
8585 // The default is UIScreen.main.scale on iOS and displayMetrics's density on Android.
8686 TilesetDescriptorOptions (
87- styleURI: MapboxStyles .SATELLITE_STREETS , minZoom: 0 , maxZoom: 16 )
87+ styleURI: MapboxStyles .STANDARD_SATELLITE , minZoom: 0 , maxZoom: 16 )
8888 ],
8989 acceptExpired: true ,
9090 networkRestriction: NetworkRestriction .NONE );
@@ -129,7 +129,7 @@ class OfflineMapExampleState extends State<OfflineMapExample> {
129129 if (snapshot.hasData) {
130130 return MapWidget (
131131 key: ValueKey ("mapWidget" ),
132- styleUri: MapboxStyles .SATELLITE_STREETS ,
132+ styleUri: MapboxStyles .STANDARD_SATELLITE ,
133133 cameraOptions:
134134 CameraOptions (center: City .helsinki, zoom: 12.0 ),
135135 );
0 commit comments