Hi @Anonymous User.
You should dig into the AGSMap's basemap and set the noDataTileBehavior maxScale on any image tile layers it contains. Try something like this:
func removeTiledBasemapMaxScale(for map: AGSMap) {
map.load { error in
if let error = error {
// Do whatever error handling you might do in your app here.
print("Error loading map: \(error)")
return
}
map.basemap.baseLayers.forEach {
($0 as? AGSLayer)?.maxScale = 0
}
// Probably also good to set the reference layers.
map.basemap.referenceLayers.forEach {
($0 as? AGSLayer)?.maxScale = 0
}
}
}
You'll want to do this each time you open the map - this won't get persisted to the downloaded map.