Skip to content

Commit

Permalink
Update docs from maps rnmapbox/maps@e30ffba
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 16, 2023
1 parent 7985ade commit ae70436
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/components/tileStore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
custom_edit_url: https://github.com/rnmapbox/maps/blob/main/src/modules/offline/TileStore.ts
---



```tsx
import { tileStore } from '@rnmapbox/maps';

tileStore

```
TileStore manages downloads and storage for requests to tile-related API endpoints,
enforcing a disk usage quota: tiles available on disk may be deleted to make room for a new download.
This interface can be used by an app developer to set the disk quota.



## methods
### setOption(key, domain, value)

Sets additional options for this instance that are specific to a data type.<br/>Params:<br/>key – The configuration option that should be changed. Valid keys are listed in \c TileStoreOptions. domain – The data type this setting should be applied for. value – The value for the configuration option, or null if it should be reset.

#### arguments
| Name | Type | Required | Description |
| ---- | :--: | :------: | :----------: |
| `key` | `string` | `Yes` | |
| `domain` | `TileDataDomain` | `Yes` | |
| `value` | `TileDataValue` | `Yes` | |



0 comments on commit ae70436

Please sign in to comment.