A Tile overlay that supports to zoom beyond the maximumZ
+
+
Tile servers allow from 1 to a certain zoom level typically between 16 and 21 (set in MapCacheConfig.maximumZ).
+Beyond that zoom levels tiles are not available in the server
+
+
This renderer takes the maximumZ tile and extracts the portion that would correspond to the requested level.
Given the maximum zoom level for the tileset (mapCache.config.maximumZ) it will return the tile, map rects, and additional scaling factor for upscaling tiles.
A Tile overlay that supports to zoom beyond the maximumZ
+
+
Tile servers allow from 1 to a certain zoom level typically between 16 and 21 (set in MapCacheConfig.maximumZ).
+Beyond that zoom levels tiles are not available in the server
+
+
This renderer takes the maximumZ tile and extracts the portion that would correspond to the requested level.
URL of the physical folder of the Cache in the file system
+
URL of the physical folder of the Cache in the file system.
@@ -272,7 +281,7 @@
Declaration
-
A shortcut for folderURL.path
+
A shortcut for folderURL.path.
@@ -299,10 +308,12 @@
Declaration
-
Sum of the allocated size in disk for the cache expressed in bytes.
-Note that, this size is the actual disk allocation. It is equivalent with the amount of bytes
-that would become available on the volume if the directory is deleted.
-For example a file may just contain 156 bytes of data (size listed in ls command), however its
+
Sum of the allocated size in disk for the cache expressed in bytes.
+
+
Note that, this size is the actual disk allocation. It is equivalent with the amount of bytes
+that would become available on the volume if the directory is deleted.
+
+
For example, a file may just contain 156 bytes of data (size listed in ls command), however its
disk size is 4096, 1 volume block (as listed using du -h)
This size is calculated each time
@@ -332,12 +343,12 @@
Declaration
-
This is the sum of the sizes of the files within the diskCache
+
This is the sum of the data sizes of the files within the DiskCache
Maximum allowed cache disk allocated size for this DiskCache
-Defaults to unlimited capacity (UINT64_MAX)
+
Maximum allowed cache disk allocated size for this DiskCache
+Defaults to unlimited capacity (UINT64_MAX`)
@@ -394,7 +405,7 @@
Declaration
-
Queue for making async operations
+
Queue for making async operations.
@@ -432,6 +443,37 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ withName
+
+
+
+
+
Name of the cache, will be the subfolder name too.
+
+
+
+
+
+
+ capacity
+
+
+
+
+
capacity of the cache in bytes. Defaults to virutally unlimited capacity (UINT64_MAX)
+
+
+
+
+
+
@@ -448,7 +490,7 @@
Declaration
-
Get the path for key
+
Get the path for key.
@@ -475,8 +517,8 @@
Declaration
-
Sets the data for the key asyncronously
-Use this function for writing into the cache
+
Sets the data for the key asyncronously.
+Use this function for writing into the cache.
@@ -503,7 +545,7 @@
Declaration
-
Sets the data for the key synchronously
+
Sets the data for the key synchronously.
@@ -530,7 +572,7 @@
Declaration
-
Fetches the image data from storage synchronously
+
Fetches the image data from storage synchronously.
@@ -541,6 +583,49 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forKey
+
+
+
+
+
Key within the cache
+
+
+
+
+
+
+ failure
+
+
+
+
+
closure to be run in case of error
+
+
+
+
+
+
+ success
+
+
+
+
+
closure to be run once the data is ready
+
+
+
+
+
+
@@ -557,7 +642,7 @@
Declaration
-
Removes asynchronously the data from the diskcache for the key passed as argument
+
Removes asynchronously the data from the diskcache for the key passed as argument.
@@ -568,6 +653,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ withKey
+
+
+
+
+
key to be removed
+
+
+
+
+
+
@@ -584,8 +688,8 @@
Declaration
-
Removes asynchronously all data from the cache
-Calls completition closure once the task is done
+
Removes asynchronously all data from the cache.
+Calls completition closure once the task is done.
@@ -596,6 +700,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ completition
+
+
+
+
+
closure run once all the files are deleted from the cache
+
+
+
+
+
+
@@ -669,7 +792,7 @@
Declaration
-
Calculates the size used by all the files in the cache
+
Calculates the size used by all the files in the cache.
@@ -764,7 +887,7 @@
Declaration
-
Removes a file syncrhonously
+
Removes a file syncrhonously.
@@ -791,8 +914,8 @@
Declaration
-
Substracts from the cachesize the disk size passed as parameter
-Logs an error message if the amount to be substracted is larger than the current used disk space
+
Substracts from the cachesize the disk size passed as parameter.
+Logs an error message if the amount to be substracted is larger than the current used disk space.
Cofiguration that will be used to set up the behavior of the MapCache instance
+
Cofiguration that will be used to set up the behavior of the MapCache instance
@@ -298,7 +307,7 @@
Declaration
-
Constructor. It sets the config variable and initializes the disCache with the name and capacity set in the config.
+
Constructor. It sets the config variable and initializes the diskCache with the name and capacity set in the config.
@@ -332,7 +341,7 @@
Declaration
If {s} is defined in the template, it aplies the Round Robin algorithm.
See also
- MapCacheConfig.roundRoubinSubdomain()
+
MapCacheConfig.roundRoubinSubdomain()
@@ -345,6 +354,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forTilePath
+
+
+
+
+
is the path for the tile in (x, y, z) tile coordinates.
+
+
+
+
+
+
@@ -361,7 +389,14 @@
Declaration
-
For the path passed as argument it creates a unique key to be used in diskCache.
+
For the path passed as argument it creates a unique key to be used in DiskCache.
+
+
The output is a string that has the following format {config.urlTemplate}-{x}-{y}-{z} where:
+
+
+
config.urlTemplate is the template url template and
+
x, y and z are the coords of the path
+
@@ -372,6 +407,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forPath
+
+
+
+
+
is the path of the tile you want the cache
+
+
+
+
+
+
@@ -404,6 +458,49 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ at
+
+
+
+
+
Path for the tile
+
+
+
+
+
+
+ failure
+
+
+
+
+
if the tile cannot be retrieved from the server this closure is called
+
+
+
+
+
+
+ success
+
+
+
+
+
if the image is downloaded
+
+
+
+
+
+
@@ -421,10 +518,10 @@
Declaration
Returns the tile to be displayed on the overlay.
-The strategy used to retrieve the tile (i.e. from network or from the diskCache) depends on the config.loadTileMode.
+The strategy used to retrieve the tile (i.e. from network or from the diskCache) depends on the config.loadTileMode.
Calculates the disk space allocated in dis for the cache
+
+
See also
+ DiskCache
+
+
@@ -508,7 +610,7 @@
Declaration
Clears the cache.
-Removes all files in the diskCache
+Removes all files in the diskCache
As it may take some time to remove all files it calls the completition closure upon finishing the removal.
Approximation of the average number of bytes of a tile (256x256)
+
Approximation of the average number of bytes of a tile (used with 256x256 tiles).
@@ -257,7 +266,7 @@
Declaration
-
Region that will be downloaded
+
Region that will be downloaded.
Initialized in the constructor
@@ -313,7 +322,7 @@
Declaration
-
Total number of tiles to be downloaded
+
Total number of tiles to be downloaded.
@@ -340,7 +349,7 @@
Declaration
-
Number of tiles pending to be downloaded
+
Number of tiles pending to be downloaded.
@@ -394,7 +403,7 @@
Declaration
-
Total number of downloaded data bytes
+
Total number of downloaded data bytes.
@@ -423,7 +432,7 @@
Declaration
Returns the average
-
This can be used to estimate the
+
This can be used to estimate the amount of bytes pending to be downloaded.
@@ -478,7 +487,7 @@
Declaration
-
Number of successfully downloaded tiles
+
Number of successfully downloaded tiles.
@@ -533,8 +542,8 @@
Declaration
-
Keeps the number of tiles failes to be downloaded
-Publicly accessible through failledTIleDownloads
+
Keeps the number of tiles failes to be downloaded.
+Publicly accessible through failledTIleDownloads.
@@ -589,8 +598,8 @@
Declaration
-
Percentage to notify thought delegate
-If set to >100 will only notify on finish download
+
Percentage to notify thought delegate.
+If set to >100 will only notify on finish download.
If set to a percentage smaller than downloadedPercentage, it will never notify.
@@ -618,9 +627,9 @@
Declaration
-
The downloader will notify the delegate every time this
-For example if you set this to 5, it will notify when 5%, 10%, 15%, etc…
-default value 5.
+
The downloader will notify the delegate every time this.
+For example if you set this to 5, it will notify when 5%, 10%, 15%, etc.
+Default value 5.
@@ -647,7 +656,7 @@
Declaration
-
Last percentage notified to the deletage
+
Last percentage notified to the deletage.
@@ -701,7 +710,7 @@
Declaration
-
Delegate
+
Delegate.
@@ -755,7 +764,7 @@
Declaration
-
initializes the downloader with the region and the MapCache
+
Initializes the downloader with the region and the MapCache.
@@ -766,6 +775,37 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forRegion
+
+
+
+
+
the region to be downloaded.
+
+
+
+
+
+
+ mapCache
+
+
+
+
+
the MapCache implementation used to download and store the downloaded data
Total number of tiles in this region for all zoom levels
+
Total number of tiles in this region for all zoom levels.
@@ -352,7 +361,7 @@
Declaration
The region will be the area that holds the line from any top left point (P1) to any
-bottom rightpoint 2 (P2)
+bottom rightpoint 2 (P2).
@@ -380,7 +389,7 @@
Declaration
The region will be the area that holds the line from any top left point (P1) to any
-bottom rightpoint 2 (P2)
+bottom rightpoint 2 (P2).
For example, in this map:
Default. If the tile exists in the cache, return it, otherwise, fetch it from server (and cache the result)
+
Default. If the tile exists in the cache, return it, otherwise, fetch it from server (and cache the result).
@@ -250,7 +259,7 @@
Declaration
-
Always return the tile from the server unless there is some problem with the network
+
Always return the tile from the server unless there is some problem with the network.
Cache is updated everytime the tile is received.
Basically uses the cache as internet connection fallback
@@ -279,7 +288,7 @@
Declaration
-
Only return data from cache
+
Only return data from cache.
Useful for fully offline preloaded maps.
@@ -307,8 +316,8 @@
Declaration
-
Always return the tile from the server, as well as updating the cache
-This mode may be useful for donwloading a whole map region
+
Always return the tile from the server, as well as updating the cache.
+This mode may be useful for donwloading a whole map region.
If a tile was not downloaded fron the server error is returned.
Delegate protocol of RegionDownloader.
+Implement this protocol whenever you use RegionDownloader it drovides feedback while donwloading a
+region (f.i, downloaded %) and callsback the delegate once the download finished.
Delegate protocol of RegionDownloader.
+Implement this protocol whenever you use RegionDownloader it drovides feedback while donwloading a
+region (f.i, downloaded %) and callsback the delegate once the download finished.
error to show if any on addition to the message. Uses the pattern {message} with error {error}
+
+
+
+
+
+
@@ -312,7 +364,7 @@
Declaration
Log.debug("Hello world")// prints: [MapCache][DEBUG] Hello word
-
These messages are displayed only if DEBUG is defined
+
These messages are displayed only if DEBUG is defined.
@@ -323,6 +375,37 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ message
+
+
+
+
+
message to display
+
+
+
+
+
+
+ error
+
+
+
+
+
error to display if any.
+
+
+
+
+
+
@@ -340,13 +423,11 @@
Declaration
These messages are displayed independently of the debug mode.
- Used to provide useful information on exceptional situations to library users.
- Example:
-
Log.error("Could not download tile",error)// prints: [MapCache][ERROR] Could not download tile with error No internet connection.
+Used to provide useful information on exceptional situations to library users.
+Example:
+
Log.error("Could not download tile",error)// prints: [MapCache][ERROR] Could not download tile with error No internet connection.
If the tile server supported zoom is smaller than maximumZ tiles won’t be rendered as a HTTP 404 error
-will be returned by the server for not supported zoom levels.
+
Tiles with a z zoom beyond maximumZ supported by the tile server will return a HTTP 404 error.
Values vary from server to server. For example OpenStreetMap supports 19, but OpenCycleMap supports 22
If set to true when zooming in beyond maximumZ the tiles at maximumZ will be upsampled and shown.
+This mitigates the issue of showing an empty map when zooming in beyond maximumZ.
-
Default value is 0.
+
maximumZ is vital to zoom working, make sure it is properly set.
Declaration
Swift
-
publicvarminimumZ:Int
+
publicvaroverZoomMaximumZ:Bool
@@ -448,7 +486,7 @@
Declaration
By default loads from the cache and if it fails loads from the server
Counts the number of tiles in the range (columns x rows)
+
Counts the number of tiles in the range (columns x rows).
@@ -502,8 +511,8 @@
Declaration
Sequence iterator.
-This allows TileRange to be used in for loops.
-In each iteration it returns a TileCoord.
+This allows TileRange to be used in for loops.
+In each iteration it returns a TileCoord.
It starts from the top left corner of the range and iterates row by row.
Path for the tile with maximumZ supported by the tile server set in the config.
+This is the path with the best resolution tile from wich this zoomable tile can be interpolated.
Delta from given tile z to desired tile z.
+Example: maximum zoom supported by the server is 20 and the desired tile is in zoom level 24, the delta is 4.
A Tile overlay that supports to zoom beyond the maximumZ
+
+
Tile servers allow from 1 to a certain zoom level typically between 16 and 21 (set in MapCacheConfig.maximumZ).
+Beyond that zoom levels tiles are not available in the server
+
+
This renderer takes the maximumZ tile and extracts the portion that would correspond to the requested level.
Given the maximum zoom level for the tileset (mapCache.config.maximumZ) it will return the tile, map rects, and additional scaling factor for upscaling tiles.
A Tile overlay that supports to zoom beyond the maximumZ
+
+
Tile servers allow from 1 to a certain zoom level typically between 16 and 21 (set in MapCacheConfig.maximumZ).
+Beyond that zoom levels tiles are not available in the server
+
+
This renderer takes the maximumZ tile and extracts the portion that would correspond to the requested level.
URL of the physical folder of the Cache in the file system
+
URL of the physical folder of the Cache in the file system.
@@ -272,7 +281,7 @@
Declaration
-
A shortcut for folderURL.path
+
A shortcut for folderURL.path.
@@ -299,10 +308,12 @@
Declaration
-
Sum of the allocated size in disk for the cache expressed in bytes.
-Note that, this size is the actual disk allocation. It is equivalent with the amount of bytes
-that would become available on the volume if the directory is deleted.
-For example a file may just contain 156 bytes of data (size listed in ls command), however its
+
Sum of the allocated size in disk for the cache expressed in bytes.
+
+
Note that, this size is the actual disk allocation. It is equivalent with the amount of bytes
+that would become available on the volume if the directory is deleted.
+
+
For example, a file may just contain 156 bytes of data (size listed in ls command), however its
disk size is 4096, 1 volume block (as listed using du -h)
This size is calculated each time
@@ -332,12 +343,12 @@
Declaration
-
This is the sum of the sizes of the files within the diskCache
+
This is the sum of the data sizes of the files within the DiskCache
Maximum allowed cache disk allocated size for this DiskCache
-Defaults to unlimited capacity (UINT64_MAX)
+
Maximum allowed cache disk allocated size for this DiskCache
+Defaults to unlimited capacity (UINT64_MAX`)
@@ -394,7 +405,7 @@
Declaration
-
Queue for making async operations
+
Queue for making async operations.
@@ -432,6 +443,37 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ withName
+
+
+
+
+
Name of the cache, will be the subfolder name too.
+
+
+
+
+
+
+ capacity
+
+
+
+
+
capacity of the cache in bytes. Defaults to virutally unlimited capacity (UINT64_MAX)
+
+
+
+
+
+
@@ -448,7 +490,7 @@
Declaration
-
Get the path for key
+
Get the path for key.
@@ -475,8 +517,8 @@
Declaration
-
Sets the data for the key asyncronously
-Use this function for writing into the cache
+
Sets the data for the key asyncronously.
+Use this function for writing into the cache.
@@ -503,7 +545,7 @@
Declaration
-
Sets the data for the key synchronously
+
Sets the data for the key synchronously.
@@ -530,7 +572,7 @@
Declaration
-
Fetches the image data from storage synchronously
+
Fetches the image data from storage synchronously.
@@ -541,6 +583,49 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forKey
+
+
+
+
+
Key within the cache
+
+
+
+
+
+
+ failure
+
+
+
+
+
closure to be run in case of error
+
+
+
+
+
+
+ success
+
+
+
+
+
closure to be run once the data is ready
+
+
+
+
+
+
@@ -557,7 +642,7 @@
Declaration
-
Removes asynchronously the data from the diskcache for the key passed as argument
+
Removes asynchronously the data from the diskcache for the key passed as argument.
@@ -568,6 +653,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ withKey
+
+
+
+
+
key to be removed
+
+
+
+
+
+
@@ -584,8 +688,8 @@
Declaration
-
Removes asynchronously all data from the cache
-Calls completition closure once the task is done
+
Removes asynchronously all data from the cache.
+Calls completition closure once the task is done.
@@ -596,6 +700,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ completition
+
+
+
+
+
closure run once all the files are deleted from the cache
+
+
+
+
+
+
@@ -669,7 +792,7 @@
Declaration
-
Calculates the size used by all the files in the cache
+
Calculates the size used by all the files in the cache.
@@ -764,7 +887,7 @@
Declaration
-
Removes a file syncrhonously
+
Removes a file syncrhonously.
@@ -791,8 +914,8 @@
Declaration
-
Substracts from the cachesize the disk size passed as parameter
-Logs an error message if the amount to be substracted is larger than the current used disk space
+
Substracts from the cachesize the disk size passed as parameter.
+Logs an error message if the amount to be substracted is larger than the current used disk space.
Cofiguration that will be used to set up the behavior of the MapCache instance
+
Cofiguration that will be used to set up the behavior of the MapCache instance
@@ -298,7 +307,7 @@
Declaration
-
Constructor. It sets the config variable and initializes the disCache with the name and capacity set in the config.
+
Constructor. It sets the config variable and initializes the diskCache with the name and capacity set in the config.
@@ -332,7 +341,7 @@
Declaration
If {s} is defined in the template, it aplies the Round Robin algorithm.
See also
- MapCacheConfig.roundRoubinSubdomain()
+
MapCacheConfig.roundRoubinSubdomain()
@@ -345,6 +354,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forTilePath
+
+
+
+
+
is the path for the tile in (x, y, z) tile coordinates.
+
+
+
+
+
+
@@ -361,7 +389,14 @@
Declaration
-
For the path passed as argument it creates a unique key to be used in diskCache.
+
For the path passed as argument it creates a unique key to be used in DiskCache.
+
+
The output is a string that has the following format {config.urlTemplate}-{x}-{y}-{z} where:
+
+
+
config.urlTemplate is the template url template and
+
x, y and z are the coords of the path
+
@@ -372,6 +407,25 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forPath
+
+
+
+
+
is the path of the tile you want the cache
+
+
+
+
+
+
@@ -404,6 +458,49 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ at
+
+
+
+
+
Path for the tile
+
+
+
+
+
+
+ failure
+
+
+
+
+
if the tile cannot be retrieved from the server this closure is called
+
+
+
+
+
+
+ success
+
+
+
+
+
if the image is downloaded
+
+
+
+
+
+
@@ -421,10 +518,10 @@
Declaration
Returns the tile to be displayed on the overlay.
-The strategy used to retrieve the tile (i.e. from network or from the diskCache) depends on the config.loadTileMode.
+The strategy used to retrieve the tile (i.e. from network or from the diskCache) depends on the config.loadTileMode.
Calculates the disk space allocated in dis for the cache
+
+
See also
+ DiskCache
+
+
@@ -508,7 +610,7 @@
Declaration
Clears the cache.
-Removes all files in the diskCache
+Removes all files in the diskCache
As it may take some time to remove all files it calls the completition closure upon finishing the removal.
Approximation of the average number of bytes of a tile (256x256)
+
Approximation of the average number of bytes of a tile (used with 256x256 tiles).
@@ -257,7 +266,7 @@
Declaration
-
Region that will be downloaded
+
Region that will be downloaded.
Initialized in the constructor
@@ -313,7 +322,7 @@
Declaration
-
Total number of tiles to be downloaded
+
Total number of tiles to be downloaded.
@@ -340,7 +349,7 @@
Declaration
-
Number of tiles pending to be downloaded
+
Number of tiles pending to be downloaded.
@@ -394,7 +403,7 @@
Declaration
-
Total number of downloaded data bytes
+
Total number of downloaded data bytes.
@@ -423,7 +432,7 @@
Declaration
Returns the average
-
This can be used to estimate the
+
This can be used to estimate the amount of bytes pending to be downloaded.
@@ -478,7 +487,7 @@
Declaration
-
Number of successfully downloaded tiles
+
Number of successfully downloaded tiles.
@@ -533,8 +542,8 @@
Declaration
-
Keeps the number of tiles failes to be downloaded
-Publicly accessible through failledTIleDownloads
+
Keeps the number of tiles failes to be downloaded.
+Publicly accessible through failledTIleDownloads.
@@ -589,8 +598,8 @@
Declaration
-
Percentage to notify thought delegate
-If set to >100 will only notify on finish download
+
Percentage to notify thought delegate.
+If set to >100 will only notify on finish download.
If set to a percentage smaller than downloadedPercentage, it will never notify.
@@ -618,9 +627,9 @@
Declaration
-
The downloader will notify the delegate every time this
-For example if you set this to 5, it will notify when 5%, 10%, 15%, etc…
-default value 5.
+
The downloader will notify the delegate every time this.
+For example if you set this to 5, it will notify when 5%, 10%, 15%, etc.
+Default value 5.
@@ -647,7 +656,7 @@
Declaration
-
Last percentage notified to the deletage
+
Last percentage notified to the deletage.
@@ -701,7 +710,7 @@
Declaration
-
Delegate
+
Delegate.
@@ -755,7 +764,7 @@
Declaration
-
initializes the downloader with the region and the MapCache
+
Initializes the downloader with the region and the MapCache.
@@ -766,6 +775,37 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ forRegion
+
+
+
+
+
the region to be downloaded.
+
+
+
+
+
+
+ mapCache
+
+
+
+
+
the MapCache implementation used to download and store the downloaded data
Total number of tiles in this region for all zoom levels
+
Total number of tiles in this region for all zoom levels.
@@ -352,7 +361,7 @@
Declaration
The region will be the area that holds the line from any top left point (P1) to any
-bottom rightpoint 2 (P2)
+bottom rightpoint 2 (P2).
@@ -380,7 +389,7 @@
Declaration
The region will be the area that holds the line from any top left point (P1) to any
-bottom rightpoint 2 (P2)
+bottom rightpoint 2 (P2).
For example, in this map:
Default. If the tile exists in the cache, return it, otherwise, fetch it from server (and cache the result)
+
Default. If the tile exists in the cache, return it, otherwise, fetch it from server (and cache the result).
@@ -250,7 +259,7 @@
Declaration
-
Always return the tile from the server unless there is some problem with the network
+
Always return the tile from the server unless there is some problem with the network.
Cache is updated everytime the tile is received.
Basically uses the cache as internet connection fallback
@@ -279,7 +288,7 @@
Declaration
-
Only return data from cache
+
Only return data from cache.
Useful for fully offline preloaded maps.
@@ -307,8 +316,8 @@
Declaration
-
Always return the tile from the server, as well as updating the cache
-This mode may be useful for donwloading a whole map region
+
Always return the tile from the server, as well as updating the cache.
+This mode may be useful for donwloading a whole map region.
If a tile was not downloaded fron the server error is returned.
Delegate protocol of RegionDownloader.
+Implement this protocol whenever you use RegionDownloader it drovides feedback while donwloading a
+region (f.i, downloaded %) and callsback the delegate once the download finished.
Delegate protocol of RegionDownloader.
+Implement this protocol whenever you use RegionDownloader it drovides feedback while donwloading a
+region (f.i, downloaded %) and callsback the delegate once the download finished.
error to show if any on addition to the message. Uses the pattern {message} with error {error}
+
+
+
+
+
+
@@ -312,7 +364,7 @@
Declaration
Log.debug("Hello world")// prints: [MapCache][DEBUG] Hello word
-
These messages are displayed only if DEBUG is defined
+
These messages are displayed only if DEBUG is defined.
@@ -323,6 +375,37 @@
Declaration
+
+
Parameters
+
+
+
+
+
+ message
+
+
+
+
+
message to display
+
+
+
+
+
+
+ error
+
+
+
+
+
error to display if any.
+
+
+
+
+
+
@@ -340,13 +423,11 @@
Declaration
These messages are displayed independently of the debug mode.
- Used to provide useful information on exceptional situations to library users.
- Example:
-
Log.error("Could not download tile",error)// prints: [MapCache][ERROR] Could not download tile with error No internet connection.
+Used to provide useful information on exceptional situations to library users.
+Example:
+
Log.error("Could not download tile",error)// prints: [MapCache][ERROR] Could not download tile with error No internet connection.
If the tile server supported zoom is smaller than maximumZ tiles won’t be rendered as a HTTP 404 error
-will be returned by the server for not supported zoom levels.
+
Tiles with a z zoom beyond maximumZ supported by the tile server will return a HTTP 404 error.
Values vary from server to server. For example OpenStreetMap supports 19, but OpenCycleMap supports 22
If set to true when zooming in beyond maximumZ the tiles at maximumZ will be upsampled and shown.
+This mitigates the issue of showing an empty map when zooming in beyond maximumZ.
-
Default value is 0.
+
maximumZ is vital to zoom working, make sure it is properly set.
Declaration
Swift
-
publicvarminimumZ:Int
+
publicvaroverZoomMaximumZ:Bool
@@ -448,7 +486,7 @@
Declaration
By default loads from the cache and if it fails loads from the server
Counts the number of tiles in the range (columns x rows)
+
Counts the number of tiles in the range (columns x rows).
@@ -502,8 +511,8 @@
Declaration
Sequence iterator.
-This allows TileRange to be used in for loops.
-In each iteration it returns a TileCoord.
+This allows TileRange to be used in for loops.
+In each iteration it returns a TileCoord.
It starts from the top left corner of the range and iterates row by row.
Path for the tile with maximumZ supported by the tile server set in the config.
+This is the path with the best resolution tile from wich this zoomable tile can be interpolated.
Delta from given tile z to desired tile z.
+Example: maximum zoom supported by the server is 20 and the desired tile is in zoom level 24, the delta is 4.
// Minimum zoom can also be set.// config.minimumZ = 0
+// Continues to show map tiles even beyond maximumZ
+// config.overZoomMaximumZ = true// Capacity of the cache in bytes. Once the cache is full it uses a LRU algorithm
@@ -423,7 +434,7 @@
Converts to array","parent_name":"ZoomRange"},"Structs/ZoomRange.html#/s:8MapCache9ZoomRangeV12makeIteratorAA0cdF0VyF":{"name":"makeIterator()","abstract":"
Returns the iterator for this range.","parent_name":"ZoomRange"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV5rangeAA0cD0Vvp":{"name":"range","abstract":"
initializer of the iterator.","parent_name":"TileRangeIterator"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV4nextAA0C6CoordsCSgyF":{"name":"next()","abstract":"
The function that is required by the Iterator protocol.
Name of the cache","parent_name":"MapCacheConfig"},"Structs/MapCacheConfig.html#/s:8MapCache0aB6ConfigV8capacitys6UInt64Vvp":{"name":"capacity","abstract":"
Round Robin algorithm","parent_name":"MapCacheConfig"},"Structs/Log/Level.html#/s:8MapCache3LogV5Level33_B0EB5F66C57FF526BB04701F7376DD27LLO5DebugyA2FmF":{"name":"Debug","abstract":"
[Debug] For displaying messages useful during development.
These messages are displayed independently of the debug mode.","parent_name":"Log"},"Structs/BytesSequence.html#/s:8MapCache13BytesSequenceV9chunkSizeSivp":{"name":"chunkSize","abstract":"
Call this method within the MKMapView delegate function","parent_name":"MKMapView"},"Extensions/MKMapView.html#/s:So9MKMapViewC8MapCacheE9zoomLevelSivp":{"name":"zoomLevel","abstract":"
Returns the allocated size in disk for a regular file in bytes.","parent_name":"URL"},"Extensions/URL.html#/s:10Foundation3URLV8MapCacheE15regularFileSizes6UInt64VyKF":{"name":"regularFileSize()","abstract":"
Returns the allocated file a regular file in bytes
Always return the tile from the server unless there is some problem with the network","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO9cacheOnlyyA2CmF":{"name":"cacheOnly","abstract":"
Only return data from cache","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO10serverOnlyyA2CmF":{"name":"serverOnly","abstract":"
Always return the tile from the server, as well as updating the cache","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html":{"name":"LoadTileMode","abstract":"
Defines the strategies that can be used for retrieving the tiles from the cache"},"Enums/ZoomError.html":{"name":"ZoomError","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC7topLeft11bottomRightACSgAA0cD0C_AHtcfc":{"name":"init(topLeft:bottomRight:)","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC5count7forZooms6UInt64Vs5UInt8V_tF":{"name":"count(forZoom:)","abstract":"
All the tile ranges for this particular zoom.","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC10tileRangesSayAA0C5RangeVGSgyF":{"name":"tileRanges()","abstract":"
Max value of a longitude (<180.0).","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC12minLongitudeSdvpZ":{"name":"minLongitude","abstract":"
Min value of a longitude (>=180.0)","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC7maxZooms5UInt8VvpZ":{"name":"maxZoom","abstract":"
Validates if a latitude is between min and max allowed latitudes.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4zoomys5UInt8V_tKFZ":{"name":"validate(zoom:)","abstract":"
Validate zoom is less or equal to the maxZoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4tile7forZoomys6UInt64V_s5UInt8VtKFZ":{"name":"validate(tile:forZoom:)","abstract":"
Validates if the tile is within the range for the zoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC011longitudeToC1X0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"longitudeToTileX(longitude:zoom:)","abstract":"
Returns the tile in the X axis for the longitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC010latitudeToC1Y0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"latitudeToTileY(latitude:zoom:)","abstract":"
Returns the tile in the Y axis for the latitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC16tileXToLongitude0E1X4zoomSds6UInt64V_s5UInt8VtKFZ":{"name":"tileXToLongitude(tileX:zoom:)","abstract":"
Returns the corresponding longitude in degrees for the tileX at zoom level
Set zoom level.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set5tileX0F1Yys6UInt64V_AHtKF":{"name":"set(tileX:tileY:)","abstract":"
Set tile X and Y values.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set8latitude9longitudeySd_SdtKF":{"name":"set(latitude:longitude:)","abstract":"
Sets latitude and longitude","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC5tileX0E1Y4zoomACSgs6UInt64V_AIs5UInt8Vtcfc":{"name":"init(tileX:tileY:zoom:)","abstract":"
Init a TileCoords instance using tile and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8latitude9longitude4zoomACSgSd_Sds5UInt8Vtcfc":{"name":"init(latitude:longitude:zoom:)","abstract":"
Init a TileCoords instance using latitude, longitude and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC_4zoomACSgAC_s5UInt8Vtcfc":{"name":"init(_:zoom:)","abstract":"
Creates a new Tile Coord with the same latitude and longitude","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC03maxC0s6UInt64VyF":{"name":"maxTile()","abstract":"
Returns the maximum tile number for current set zoom.
Keeps the number of tiles failes to be downloaded","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/c:@M@MapCache@objc(cs)RegionDownloader(py)failedTileDownloads":{"name":"failedTileDownloads","abstract":"
Percentage to notify thought delegate","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC33incrementInPercentageNotificationSdvp":{"name":"incrementInPercentageNotification","abstract":"
The downloader will notify the delegate every time this","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC22lastPercentageNotifiedSdvp":{"name":"lastPercentageNotified","abstract":"
Returns an estimation of the total number of bytes the whole region may occupy.","parent_name":"RegionDownloader"},"Classes/MapCache.html#/s:8MapCacheAAC6configAA0aB6ConfigVvp":{"name":"config","abstract":"
Cofiguration that will be used to set up the behavior of the MapCache instance
Fetches tile from server.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8loadTile2at6resultySo17MKTileOverlayPatha_y10Foundation4DataVSg_s5Error_pSgtctF":{"name":"loadTile(at:result:)","abstract":"
Returns the tile to be displayed on the overlay.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8diskSizes6UInt64Vvp":{"name":"diskSize","abstract":"
Clears the cache.","parent_name":"MapCache"},"Classes/MD5.html#/s:8MapCache3MD5C1s33_FDBD59F52EA1EDEB4C781BB1327F97FELLSays6UInt32VGvp":{"name":"s","abstract":"
Sum of the allocated size in disk for the cache expressed in bytes.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C8fileSizes6UInt64VSgvp":{"name":"fileSize","abstract":"
This is the sum of the sizes of the files within the diskCache
Maximum allowed cache disk allocated size for this DiskCache","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C10cacheQueueSo17OS_dispatch_queueCvp":{"name":"cacheQueue","abstract":"
Sets the data for the key asyncronously","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C11setDataSync_6forKeyy10Foundation0E0V_SStF":{"name":"setDataSync(_:forKey:)","abstract":"
Removes asynchronously all data from the cache","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C06removeB0yyF":{"name":"removeCache()","abstract":"
Removes the cache from the system.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C16updateAccessDate_3keyy10Foundation4DataVSgyXA_SStF":{"name":"updateAccessDate(_:key:)","abstract":"
Substracts from the cachesize the disk size passed as parameter","parent_name":"DiskCache"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC03mapB0AA0aB8Protocol_pvp":{"name":"mapCache","abstract":"
If true loadTile uses the implementation of the mapCache var. If false, uses the","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC04withB0AcA0aB8Protocol_p_tcfc":{"name":"init(withCache:)","abstract":"
Generates the URL for the tile to be requested.","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/c:@M@MapCache@objc(cs)CachedTileOverlay(im)loadTileAtPath:result:":{"name":"loadTile(at:result:)","abstract":"
Depending on useCachevalue, when invoked, will load the tile using the standard OS","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html":{"name":"CachedTileOverlay","abstract":"
Whenever a tile is requested by the MapView, it calls the MKTileOverlay.loadTile."},"Classes/DiskCache.html":{"name":"DiskCache","abstract":"
A specialized cache for storing data in disk."},"Classes/HashBase.html":{"name":"HashBase","abstract":"
Path for the tile with maximumZ supported by the tile server set in the config.","parent_name":"ZoomableTile"},"Structs/ZoomableTile.html#/s:8MapCache12ZoomableTileV4rectSo9MKMapRectavp":{"name":"rect","abstract":"
Delta from given tile z to desired tile z.","parent_name":"ZoomableTile"},"Structs/ZoomRangeIterator.html#/s:8MapCache17ZoomRangeIteratorV7counters5UInt8Vvp":{"name":"counter","abstract":"
Returns the iterator for this range.","parent_name":"ZoomRange"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV5rangeAA0cD0Vvp":{"name":"range","abstract":"
Initializer of the iterator.","parent_name":"TileRangeIterator"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV4nextAA0C6CoordsCSgyF":{"name":"next()","abstract":"
The function that is required by the Iterator protocol.
If set to true when zooming in beyond maximumZ the tiles at maximumZ will be upsampled and shown.","parent_name":"MapCacheConfig"},"Structs/MapCacheConfig.html#/s:8MapCache0aB6ConfigV9cacheNameSSvp":{"name":"cacheName","abstract":"
Name of the cache","parent_name":"MapCacheConfig"},"Structs/MapCacheConfig.html#/s:8MapCache0aB6ConfigV8capacitys6UInt64Vvp":{"name":"capacity","abstract":"
Round Robin algorithm","parent_name":"MapCacheConfig"},"Structs/Log/Level.html#/s:8MapCache3LogV5Level33_B0EB5F66C57FF526BB04701F7376DD27LLO5DebugyA2FmF":{"name":"Debug","abstract":"
[Debug] For displaying messages useful during development.
These messages are displayed independently of the debug mode.","parent_name":"Log"},"Structs/BytesSequence.html#/s:8MapCache13BytesSequenceV9chunkSizeSivp":{"name":"chunkSize","abstract":"
Delegate protocol of RegionDownloader."},"Functions.html#/s:8MapCache17isNoSuchFileError33_FC193A7AE40E49CC84DE49A3128B2975LLySbs0G0_pSgF":{"name":"isNoSuchFileError(_:)","abstract":"
Call this method within the MKMapView delegate function","parent_name":"MKMapView"},"Extensions/MKMapView.html#/s:So9MKMapViewC8MapCacheE9zoomLevelSivp":{"name":"zoomLevel","abstract":"
TODO: Implement this correctly.","parent_name":"MKMapView"},"Extensions/URL.html#/s:10Foundation3URLV8MapCacheE28regularFileAllocatedDiskSizes6UInt64VyKF":{"name":"regularFileAllocatedDiskSize()","abstract":"
Returns the allocated size in disk for a regular file in bytes.","parent_name":"URL"},"Extensions/URL.html#/s:10Foundation3URLV8MapCacheE15regularFileSizes6UInt64VyKF":{"name":"regularFileSize()","abstract":"
Returns the allocated file a regular file in bytes.
Always return the tile from the server unless there is some problem with the network.","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO9cacheOnlyyA2CmF":{"name":"cacheOnly","abstract":"
Only return data from cache.","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO10serverOnlyyA2CmF":{"name":"serverOnly","abstract":"
Always return the tile from the server, as well as updating the cache.","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html":{"name":"LoadTileMode","abstract":"
Defines the strategies that can be used for retrieving the tiles from the cache"},"Enums/ZoomError.html":{"name":"ZoomError","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC7topLeft11bottomRightACSgAA0cD0C_AHtcfc":{"name":"init(topLeft:bottomRight:)","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC5count7forZooms6UInt64Vs5UInt8V_tF":{"name":"count(forZoom:)","abstract":"
All the tile ranges for this particular zoom.","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC10tileRangesSayAA0C5RangeVGSgyF":{"name":"tileRanges()","abstract":"
Max value of a longitude (<180.0).","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC12minLongitudeSdvpZ":{"name":"minLongitude","abstract":"
Min value of a longitude (>=180.0)","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC7maxZooms5UInt8VvpZ":{"name":"maxZoom","abstract":"
Validates if a latitude is between min and max allowed latitudes.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4zoomys5UInt8V_tKFZ":{"name":"validate(zoom:)","abstract":"
Validate zoom is less or equal to the maxZoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4tile7forZoomys6UInt64V_s5UInt8VtKFZ":{"name":"validate(tile:forZoom:)","abstract":"
Validates if the tile is within the range for the zoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC011longitudeToC1X0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"longitudeToTileX(longitude:zoom:)","abstract":"
Returns the tile in the X axis for the longitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC010latitudeToC1Y0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"latitudeToTileY(latitude:zoom:)","abstract":"
Returns the tile in the Y axis for the latitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC16tileXToLongitude0E1X4zoomSds6UInt64V_s5UInt8VtKFZ":{"name":"tileXToLongitude(tileX:zoom:)","abstract":"
Returns the corresponding longitude in degrees for the tileX at zoom level
Set zoom level.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set5tileX0F1Yys6UInt64V_AHtKF":{"name":"set(tileX:tileY:)","abstract":"
Set tile X and Y values.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set8latitude9longitudeySd_SdtKF":{"name":"set(latitude:longitude:)","abstract":"
Sets latitude and longitude.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC5tileX0E1Y4zoomACSgs6UInt64V_AIs5UInt8Vtcfc":{"name":"init(tileX:tileY:zoom:)","abstract":"
Init a TileCoords instance using tile and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8latitude9longitude4zoomACSgSd_Sds5UInt8Vtcfc":{"name":"init(latitude:longitude:zoom:)","abstract":"
Init a TileCoords instance using latitude, longitude and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC_4zoomACSgAC_s5UInt8Vtcfc":{"name":"init(_:zoom:)","abstract":"
Creates a new Tile Coord with the same latitude and longitude","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC03maxC0s6UInt64VyF":{"name":"maxTile()","abstract":"
Returns the maximum tile number for current set zoom.
Keeps the number of tiles failes to be downloaded.","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/c:@M@MapCache@objc(cs)RegionDownloader(py)failedTileDownloads":{"name":"failedTileDownloads","abstract":"
Percentage to notify thought delegate.","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC33incrementInPercentageNotificationSdvp":{"name":"incrementInPercentageNotification","abstract":"
The downloader will notify the delegate every time this.","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC22lastPercentageNotifiedSdvp":{"name":"lastPercentageNotified","abstract":"
Returns an estimation of the total number of bytes the whole region may occupy.","parent_name":"RegionDownloader"},"Classes/MapCache.html#/s:8MapCacheAAC6configAA0aB6ConfigVvp":{"name":"config","abstract":"
Cofiguration that will be used to set up the behavior of the MapCache instance
Fetches tile from server.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8loadTile2at6resultySo17MKTileOverlayPatha_y10Foundation4DataVSg_s5Error_pSgtctF":{"name":"loadTile(at:result:)","abstract":"
Returns the tile to be displayed on the overlay.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8diskSizes6UInt64Vvp":{"name":"diskSize","abstract":"
Clears the cache.","parent_name":"MapCache"},"Classes/MD5.html#/s:8MapCache3MD5C1s33_FDBD59F52EA1EDEB4C781BB1327F97FELLSays6UInt32VGvp":{"name":"s","abstract":"
Maximum allowed cache disk allocated size for this DiskCache","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C10cacheQueueSo17OS_dispatch_queueCvp":{"name":"cacheQueue","abstract":"
Sets the data for the key asyncronously.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C11setDataSync_6forKeyy10Foundation0E0V_SStF":{"name":"setDataSync(_:forKey:)","abstract":"
Removes asynchronously all data from the cache.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C06removeB0yyF":{"name":"removeCache()","abstract":"
Removes the cache from the system.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C16updateAccessDate_3keyy10Foundation4DataVSgyXA_SStF":{"name":"updateAccessDate(_:key:)","abstract":"
Substracts from the cachesize the disk size passed as parameter.","parent_name":"DiskCache"},"Classes/CachedTileOverlayRenderer.html#/c:@M@MapCache@objc(cs)CachedTileOverlayRenderer(im)canDrawMapRect:zoomScale:":{"name":"canDraw(_:zoomScale:)","abstract":"
Indicates if the renderer is ready to draw. It´s always true
If true loadTile uses the implementation of the mapCache var. If false, uses the","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC04withB0AcA0aB8Protocol_p_tcfc":{"name":"init(withCache:)","abstract":"
Generates the URL for the tile to be requested.","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/c:@M@MapCache@objc(cs)CachedTileOverlay(im)loadTileAtPath:result:":{"name":"loadTile(at:result:)","abstract":"
When invoked it will load the tile using the standard OS implementation (if useCacheis false)","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC10shouldZoom2atSb12CoreGraphics7CGFloatV_tF":{"name":"shouldZoom(at:)","abstract":"
Tells whether or not to upsample and show a lesser detailed z level","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC07tilesInA4Rect4rect5scaleSayAA08ZoomableD0VGSo05MKMapH0a_12CoreGraphics7CGFloatVtF":{"name":"tilesInMapRect(rect:scale:)","abstract":"
Given the maximum zoom level for the tileset (mapCache.config.maximumZ) it will return the tile, map rects, and additional scaling factor for upscaling tiles.
Whenever a tile is requested by the MapView, it calls the MKTileOverlay.loadTile."},"Classes/CachedTileOverlayRenderer.html":{"name":"CachedTileOverlayRenderer","abstract":"
A Tile overlay that supports to zoom beyond the maximumZ
// Minimum zoom can also be set.// config.minimumZ = 0
+// Continues to show map tiles even beyond maximumZ
+// config.overZoomMaximumZ = true// Capacity of the cache in bytes. Once the cache is full it uses a LRU algorithm
@@ -423,7 +434,7 @@
Converts to array","parent_name":"ZoomRange"},"Structs/ZoomRange.html#/s:8MapCache9ZoomRangeV12makeIteratorAA0cdF0VyF":{"name":"makeIterator()","abstract":"
Returns the iterator for this range.","parent_name":"ZoomRange"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV5rangeAA0cD0Vvp":{"name":"range","abstract":"
initializer of the iterator.","parent_name":"TileRangeIterator"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV4nextAA0C6CoordsCSgyF":{"name":"next()","abstract":"
The function that is required by the Iterator protocol.
Name of the cache","parent_name":"MapCacheConfig"},"Structs/MapCacheConfig.html#/s:8MapCache0aB6ConfigV8capacitys6UInt64Vvp":{"name":"capacity","abstract":"
Round Robin algorithm","parent_name":"MapCacheConfig"},"Structs/Log/Level.html#/s:8MapCache3LogV5Level33_B0EB5F66C57FF526BB04701F7376DD27LLO5DebugyA2FmF":{"name":"Debug","abstract":"
[Debug] For displaying messages useful during development.
These messages are displayed independently of the debug mode.","parent_name":"Log"},"Structs/BytesSequence.html#/s:8MapCache13BytesSequenceV9chunkSizeSivp":{"name":"chunkSize","abstract":"
Call this method within the MKMapView delegate function","parent_name":"MKMapView"},"Extensions/MKMapView.html#/s:So9MKMapViewC8MapCacheE9zoomLevelSivp":{"name":"zoomLevel","abstract":"
Returns the allocated size in disk for a regular file in bytes.","parent_name":"URL"},"Extensions/URL.html#/s:10Foundation3URLV8MapCacheE15regularFileSizes6UInt64VyKF":{"name":"regularFileSize()","abstract":"
Returns the allocated file a regular file in bytes
Always return the tile from the server unless there is some problem with the network","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO9cacheOnlyyA2CmF":{"name":"cacheOnly","abstract":"
Only return data from cache","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO10serverOnlyyA2CmF":{"name":"serverOnly","abstract":"
Always return the tile from the server, as well as updating the cache","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html":{"name":"LoadTileMode","abstract":"
Defines the strategies that can be used for retrieving the tiles from the cache"},"Enums/ZoomError.html":{"name":"ZoomError","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC7topLeft11bottomRightACSgAA0cD0C_AHtcfc":{"name":"init(topLeft:bottomRight:)","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC5count7forZooms6UInt64Vs5UInt8V_tF":{"name":"count(forZoom:)","abstract":"
All the tile ranges for this particular zoom.","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC10tileRangesSayAA0C5RangeVGSgyF":{"name":"tileRanges()","abstract":"
Max value of a longitude (<180.0).","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC12minLongitudeSdvpZ":{"name":"minLongitude","abstract":"
Min value of a longitude (>=180.0)","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC7maxZooms5UInt8VvpZ":{"name":"maxZoom","abstract":"
Validates if a latitude is between min and max allowed latitudes.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4zoomys5UInt8V_tKFZ":{"name":"validate(zoom:)","abstract":"
Validate zoom is less or equal to the maxZoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4tile7forZoomys6UInt64V_s5UInt8VtKFZ":{"name":"validate(tile:forZoom:)","abstract":"
Validates if the tile is within the range for the zoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC011longitudeToC1X0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"longitudeToTileX(longitude:zoom:)","abstract":"
Returns the tile in the X axis for the longitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC010latitudeToC1Y0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"latitudeToTileY(latitude:zoom:)","abstract":"
Returns the tile in the Y axis for the latitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC16tileXToLongitude0E1X4zoomSds6UInt64V_s5UInt8VtKFZ":{"name":"tileXToLongitude(tileX:zoom:)","abstract":"
Returns the corresponding longitude in degrees for the tileX at zoom level
Set zoom level.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set5tileX0F1Yys6UInt64V_AHtKF":{"name":"set(tileX:tileY:)","abstract":"
Set tile X and Y values.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set8latitude9longitudeySd_SdtKF":{"name":"set(latitude:longitude:)","abstract":"
Sets latitude and longitude","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC5tileX0E1Y4zoomACSgs6UInt64V_AIs5UInt8Vtcfc":{"name":"init(tileX:tileY:zoom:)","abstract":"
Init a TileCoords instance using tile and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8latitude9longitude4zoomACSgSd_Sds5UInt8Vtcfc":{"name":"init(latitude:longitude:zoom:)","abstract":"
Init a TileCoords instance using latitude, longitude and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC_4zoomACSgAC_s5UInt8Vtcfc":{"name":"init(_:zoom:)","abstract":"
Creates a new Tile Coord with the same latitude and longitude","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC03maxC0s6UInt64VyF":{"name":"maxTile()","abstract":"
Returns the maximum tile number for current set zoom.
Keeps the number of tiles failes to be downloaded","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/c:@M@MapCache@objc(cs)RegionDownloader(py)failedTileDownloads":{"name":"failedTileDownloads","abstract":"
Percentage to notify thought delegate","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC33incrementInPercentageNotificationSdvp":{"name":"incrementInPercentageNotification","abstract":"
The downloader will notify the delegate every time this","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC22lastPercentageNotifiedSdvp":{"name":"lastPercentageNotified","abstract":"
Returns an estimation of the total number of bytes the whole region may occupy.","parent_name":"RegionDownloader"},"Classes/MapCache.html#/s:8MapCacheAAC6configAA0aB6ConfigVvp":{"name":"config","abstract":"
Cofiguration that will be used to set up the behavior of the MapCache instance
Fetches tile from server.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8loadTile2at6resultySo17MKTileOverlayPatha_y10Foundation4DataVSg_s5Error_pSgtctF":{"name":"loadTile(at:result:)","abstract":"
Returns the tile to be displayed on the overlay.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8diskSizes6UInt64Vvp":{"name":"diskSize","abstract":"
Clears the cache.","parent_name":"MapCache"},"Classes/MD5.html#/s:8MapCache3MD5C1s33_FDBD59F52EA1EDEB4C781BB1327F97FELLSays6UInt32VGvp":{"name":"s","abstract":"
Sum of the allocated size in disk for the cache expressed in bytes.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C8fileSizes6UInt64VSgvp":{"name":"fileSize","abstract":"
This is the sum of the sizes of the files within the diskCache
Maximum allowed cache disk allocated size for this DiskCache","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C10cacheQueueSo17OS_dispatch_queueCvp":{"name":"cacheQueue","abstract":"
Sets the data for the key asyncronously","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C11setDataSync_6forKeyy10Foundation0E0V_SStF":{"name":"setDataSync(_:forKey:)","abstract":"
Removes asynchronously all data from the cache","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C06removeB0yyF":{"name":"removeCache()","abstract":"
Removes the cache from the system.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C16updateAccessDate_3keyy10Foundation4DataVSgyXA_SStF":{"name":"updateAccessDate(_:key:)","abstract":"
Substracts from the cachesize the disk size passed as parameter","parent_name":"DiskCache"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC03mapB0AA0aB8Protocol_pvp":{"name":"mapCache","abstract":"
If true loadTile uses the implementation of the mapCache var. If false, uses the","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC04withB0AcA0aB8Protocol_p_tcfc":{"name":"init(withCache:)","abstract":"
Generates the URL for the tile to be requested.","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/c:@M@MapCache@objc(cs)CachedTileOverlay(im)loadTileAtPath:result:":{"name":"loadTile(at:result:)","abstract":"
Depending on useCachevalue, when invoked, will load the tile using the standard OS","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html":{"name":"CachedTileOverlay","abstract":"
Whenever a tile is requested by the MapView, it calls the MKTileOverlay.loadTile."},"Classes/DiskCache.html":{"name":"DiskCache","abstract":"
A specialized cache for storing data in disk."},"Classes/HashBase.html":{"name":"HashBase","abstract":"
Path for the tile with maximumZ supported by the tile server set in the config.","parent_name":"ZoomableTile"},"Structs/ZoomableTile.html#/s:8MapCache12ZoomableTileV4rectSo9MKMapRectavp":{"name":"rect","abstract":"
Delta from given tile z to desired tile z.","parent_name":"ZoomableTile"},"Structs/ZoomRangeIterator.html#/s:8MapCache17ZoomRangeIteratorV7counters5UInt8Vvp":{"name":"counter","abstract":"
Returns the iterator for this range.","parent_name":"ZoomRange"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV5rangeAA0cD0Vvp":{"name":"range","abstract":"
Initializer of the iterator.","parent_name":"TileRangeIterator"},"Structs/TileRangeIterator.html#/s:8MapCache17TileRangeIteratorV4nextAA0C6CoordsCSgyF":{"name":"next()","abstract":"
The function that is required by the Iterator protocol.
If set to true when zooming in beyond maximumZ the tiles at maximumZ will be upsampled and shown.","parent_name":"MapCacheConfig"},"Structs/MapCacheConfig.html#/s:8MapCache0aB6ConfigV9cacheNameSSvp":{"name":"cacheName","abstract":"
Name of the cache","parent_name":"MapCacheConfig"},"Structs/MapCacheConfig.html#/s:8MapCache0aB6ConfigV8capacitys6UInt64Vvp":{"name":"capacity","abstract":"
Round Robin algorithm","parent_name":"MapCacheConfig"},"Structs/Log/Level.html#/s:8MapCache3LogV5Level33_B0EB5F66C57FF526BB04701F7376DD27LLO5DebugyA2FmF":{"name":"Debug","abstract":"
[Debug] For displaying messages useful during development.
These messages are displayed independently of the debug mode.","parent_name":"Log"},"Structs/BytesSequence.html#/s:8MapCache13BytesSequenceV9chunkSizeSivp":{"name":"chunkSize","abstract":"
Delegate protocol of RegionDownloader."},"Functions.html#/s:8MapCache17isNoSuchFileError33_FC193A7AE40E49CC84DE49A3128B2975LLySbs0G0_pSgF":{"name":"isNoSuchFileError(_:)","abstract":"
Call this method within the MKMapView delegate function","parent_name":"MKMapView"},"Extensions/MKMapView.html#/s:So9MKMapViewC8MapCacheE9zoomLevelSivp":{"name":"zoomLevel","abstract":"
TODO: Implement this correctly.","parent_name":"MKMapView"},"Extensions/URL.html#/s:10Foundation3URLV8MapCacheE28regularFileAllocatedDiskSizes6UInt64VyKF":{"name":"regularFileAllocatedDiskSize()","abstract":"
Returns the allocated size in disk for a regular file in bytes.","parent_name":"URL"},"Extensions/URL.html#/s:10Foundation3URLV8MapCacheE15regularFileSizes6UInt64VyKF":{"name":"regularFileSize()","abstract":"
Returns the allocated file a regular file in bytes.
Always return the tile from the server unless there is some problem with the network.","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO9cacheOnlyyA2CmF":{"name":"cacheOnly","abstract":"
Only return data from cache.","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html#/s:8MapCache12LoadTileModeO10serverOnlyyA2CmF":{"name":"serverOnly","abstract":"
Always return the tile from the server, as well as updating the cache.","parent_name":"LoadTileMode"},"Enums/LoadTileMode.html":{"name":"LoadTileMode","abstract":"
Defines the strategies that can be used for retrieving the tiles from the cache"},"Enums/ZoomError.html":{"name":"ZoomError","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC7topLeft11bottomRightACSgAA0cD0C_AHtcfc":{"name":"init(topLeft:bottomRight:)","abstract":"
The region will be the area that holds the line from any top left point (P1) to any","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC5count7forZooms6UInt64Vs5UInt8V_tF":{"name":"count(forZoom:)","abstract":"
All the tile ranges for this particular zoom.","parent_name":"TileCoordsRegion"},"Classes/TileCoordsRegion.html#/s:8MapCache16TileCoordsRegionC10tileRangesSayAA0C5RangeVGSgyF":{"name":"tileRanges()","abstract":"
Max value of a longitude (<180.0).","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC12minLongitudeSdvpZ":{"name":"minLongitude","abstract":"
Min value of a longitude (>=180.0)","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC7maxZooms5UInt8VvpZ":{"name":"maxZoom","abstract":"
Validates if a latitude is between min and max allowed latitudes.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4zoomys5UInt8V_tKFZ":{"name":"validate(zoom:)","abstract":"
Validate zoom is less or equal to the maxZoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8validate4tile7forZoomys6UInt64V_s5UInt8VtKFZ":{"name":"validate(tile:forZoom:)","abstract":"
Validates if the tile is within the range for the zoom","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC011longitudeToC1X0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"longitudeToTileX(longitude:zoom:)","abstract":"
Returns the tile in the X axis for the longitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC010latitudeToC1Y0E04zooms6UInt64VSd_s5UInt8VtKFZ":{"name":"latitudeToTileY(latitude:zoom:)","abstract":"
Returns the tile in the Y axis for the latitude and zoom.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC16tileXToLongitude0E1X4zoomSds6UInt64V_s5UInt8VtKFZ":{"name":"tileXToLongitude(tileX:zoom:)","abstract":"
Returns the corresponding longitude in degrees for the tileX at zoom level
Set zoom level.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set5tileX0F1Yys6UInt64V_AHtKF":{"name":"set(tileX:tileY:)","abstract":"
Set tile X and Y values.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC3set8latitude9longitudeySd_SdtKF":{"name":"set(latitude:longitude:)","abstract":"
Sets latitude and longitude.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC5tileX0E1Y4zoomACSgs6UInt64V_AIs5UInt8Vtcfc":{"name":"init(tileX:tileY:zoom:)","abstract":"
Init a TileCoords instance using tile and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC8latitude9longitude4zoomACSgSd_Sds5UInt8Vtcfc":{"name":"init(latitude:longitude:zoom:)","abstract":"
Init a TileCoords instance using latitude, longitude and zoom info.","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC_4zoomACSgAC_s5UInt8Vtcfc":{"name":"init(_:zoom:)","abstract":"
Creates a new Tile Coord with the same latitude and longitude","parent_name":"TileCoords"},"Classes/TileCoords.html#/s:8MapCache10TileCoordsC03maxC0s6UInt64VyF":{"name":"maxTile()","abstract":"
Returns the maximum tile number for current set zoom.
Keeps the number of tiles failes to be downloaded.","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/c:@M@MapCache@objc(cs)RegionDownloader(py)failedTileDownloads":{"name":"failedTileDownloads","abstract":"
Percentage to notify thought delegate.","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC33incrementInPercentageNotificationSdvp":{"name":"incrementInPercentageNotification","abstract":"
The downloader will notify the delegate every time this.","parent_name":"RegionDownloader"},"Classes/RegionDownloader.html#/s:8MapCache16RegionDownloaderC22lastPercentageNotifiedSdvp":{"name":"lastPercentageNotified","abstract":"
Returns an estimation of the total number of bytes the whole region may occupy.","parent_name":"RegionDownloader"},"Classes/MapCache.html#/s:8MapCacheAAC6configAA0aB6ConfigVvp":{"name":"config","abstract":"
Cofiguration that will be used to set up the behavior of the MapCache instance
Fetches tile from server.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8loadTile2at6resultySo17MKTileOverlayPatha_y10Foundation4DataVSg_s5Error_pSgtctF":{"name":"loadTile(at:result:)","abstract":"
Returns the tile to be displayed on the overlay.","parent_name":"MapCache"},"Classes/MapCache.html#/s:8MapCacheAAC8diskSizes6UInt64Vvp":{"name":"diskSize","abstract":"
Clears the cache.","parent_name":"MapCache"},"Classes/MD5.html#/s:8MapCache3MD5C1s33_FDBD59F52EA1EDEB4C781BB1327F97FELLSays6UInt32VGvp":{"name":"s","abstract":"
Maximum allowed cache disk allocated size for this DiskCache","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C10cacheQueueSo17OS_dispatch_queueCvp":{"name":"cacheQueue","abstract":"
Sets the data for the key asyncronously.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C11setDataSync_6forKeyy10Foundation0E0V_SStF":{"name":"setDataSync(_:forKey:)","abstract":"
Removes asynchronously all data from the cache.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C06removeB0yyF":{"name":"removeCache()","abstract":"
Removes the cache from the system.","parent_name":"DiskCache"},"Classes/DiskCache.html#/s:8MapCache04DiskB0C16updateAccessDate_3keyy10Foundation4DataVSgyXA_SStF":{"name":"updateAccessDate(_:key:)","abstract":"
Substracts from the cachesize the disk size passed as parameter.","parent_name":"DiskCache"},"Classes/CachedTileOverlayRenderer.html#/c:@M@MapCache@objc(cs)CachedTileOverlayRenderer(im)canDrawMapRect:zoomScale:":{"name":"canDraw(_:zoomScale:)","abstract":"
Indicates if the renderer is ready to draw. It´s always true
If true loadTile uses the implementation of the mapCache var. If false, uses the","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC04withB0AcA0aB8Protocol_p_tcfc":{"name":"init(withCache:)","abstract":"
Generates the URL for the tile to be requested.","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/c:@M@MapCache@objc(cs)CachedTileOverlay(im)loadTileAtPath:result:":{"name":"loadTile(at:result:)","abstract":"
When invoked it will load the tile using the standard OS implementation (if useCacheis false)","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC10shouldZoom2atSb12CoreGraphics7CGFloatV_tF":{"name":"shouldZoom(at:)","abstract":"
Tells whether or not to upsample and show a lesser detailed z level","parent_name":"CachedTileOverlay"},"Classes/CachedTileOverlay.html#/s:8MapCache17CachedTileOverlayC07tilesInA4Rect4rect5scaleSayAA08ZoomableD0VGSo05MKMapH0a_12CoreGraphics7CGFloatVtF":{"name":"tilesInMapRect(rect:scale:)","abstract":"
Given the maximum zoom level for the tileset (mapCache.config.maximumZ) it will return the tile, map rects, and additional scaling factor for upscaling tiles.
Whenever a tile is requested by the MapView, it calls the MKTileOverlay.loadTile."},"Classes/CachedTileOverlayRenderer.html":{"name":"CachedTileOverlayRenderer","abstract":"
A Tile overlay that supports to zoom beyond the maximumZ