I'm attempting to restrict the number of fired requests that we make to our remote tile provider.
Currently, we're using a AGSArcGISTiledLayer, inited with the URL of the provider. This works fine and I can see all the tiles appearing in the layer. I noticed that after the initial configuration, the SDK requests tiles automatically, based on the map's view port. How should I go about restricting these tile requests for this specific layer?
Here is the code we have so far:
let map = AGSMap(basemapType: .navigationVector,
latitude: latitude,
longitude: longitude,
levelOfDetail: 18)
mapView.map = map
let tiledLayer = AGSArcGISTiledLayer(url: URL(string: urlPath)!)
tiledLayer.minScale = 8000
mapView.map?.operationalLayers.add(tiledLayer)I tried including a tileRequestHandler to maybe cancel the tile request before it begins, but it isn't called at all.
Using ArcGIS-Runtime-SDK-iOS (100.7.1).
Any ideas? Thank you!