create

Creates a TileStore instance for the given storage path. Configures path to be used by default. The returned instance exists as long as it is retained by the client. If the tile store instance already exists for the given path this method will return it without creating a new instance, thus making sure that there is only one tile store instance for a path at a time. If the given path is empty, the tile store at the default location is returned. On iOS, this storage path is excluded from automatic cloud backup. On Android, please exclude the storage path in your Manifest. Please refer to the [Android Documentation](https://developer.android.com/guide/topics/data/autobackup.html#IncludingFiles) for detailed information. If TileStore location is not set already by setRootPath, it will be set to created TileStore location and used by create() method.

Return

Returns a TileStore instance.

Parameters

path

The path on disk where tiles and metadata will be stored


Creates a TileStore instance at the default location. Default location defined as following: if location was explicitly set with setRootPath it will be used. If locatuon was not set explicitly but TileStore was already initialized by the app at some path this location will be used. If TileStore was not initialized by application before and no path was explicitly configured, creates a new directory inside application data path. If TileStore location is not set already by setRootPath, it will be set to created TileStore location. If the tile store instance already exists for the default location this method will return it without creating a new instance, thus making sure that there is only one tile store instance for a path at a time.

Return

Returns a TileStore instance.