mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

MGLOfflineStorage.addPack downloads too many resources

Open gershengoren opened this issue 4 years ago • 1 comments

Hello we are having the same issue as described in https://github.com/mapbox/mapbox-gl-native/issues/8596

Zoom levels or offline region bounds don't affect the downloaded amount.

Without providing the styleURL it works as expected.

Steps to reproduce

  1. Define a custom style in MapBox Studio
  2. Apply style url to MapView in iOS
  3. Download the offline pack

Expected behavior

The SDK downloads the offline pack for the specified bounds, around 560 tiles.

Actual behavior

The SDK downloads a lot more (about 3000000) tiles than required.

Configuration

Mapbox SDK versions: 5.9 iOS/macOS versions: All Device/simulator models: All Xcode version: 12.X

gershengoren avatar May 19 '21 08:05 gershengoren

Same here

Hartistic avatar Sep 24 '21 15:09 Hartistic