mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

MGLOfflineStorage.addPack downloads too many resources #16609

Open gershengoren opened 3 years ago

gershengoren commented 3 years ago

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

Hartistic commented 2 years ago

Same here