TileRegionLoadOptions
extension TileRegionLoadOptions
-
Builds a
TileRegionLoadOptions, required forTileStore.loadTileRegion(forId:loadOptions:)averageBytesPerSecondis not a strict bandwidth limit, but only limits the average download speed. tile regions may be temporarily downloaded with higher speed, then pause downloading until the rolling average has dropped below this value.Declaration
Swift
public static func build( geometry: Geometry?, descriptors: [TilesetDescriptor]?, metadata: Any? = nil, acceptExpired: Bool = false, networkRestriction: NetworkRestriction = .none, averageBytesPerSecond: Int? = nil ) -> TileRegionLoadOptions?Parameters
geometryThe tile region’s associated geometry (optional).
descriptorsThe tile region’s tileset descriptors.
metadataA custom JSON value to be associated with this tile region.
acceptExpiredAccepts expired data when loading tiles.
networkRestrictionRestrict the tile region load request to the specified network types. If none of the specified network types is available, the load request fails with an error.
averageBytesPerSecondLimits the download speed of the tile region.
Return Value
Describes the tile region load option values. If
metadatais not a valid JSON object, then this initializer returnsnil.
TileRegionLoadOptions Extension Reference