ImageBackgroundOptions
Options for an ImageBackground
| Name | Type | Description |
|---|---|---|
| img? | HTMLImageElement | For backgrounds, the image to use. Optional; you can also supply a url. |
| onBackgroundReady? | OnBackgroundReadyCallback | Optional function to call when the image has loaded (or otherwise claims to be ready) |
| type | string | Type of background to render. |
| url? | string | URL for the background. When is set to you can supply either this, or an Image. When is set to , you can supply this, or you can supply a function instead. If you supply and no , the url you supply is treated as a template for the url for any given tile, and is expected to contain , and placeholders. The form of the URL can be anything you like as long as it has the placeholders for z, x and y. For instance:etc |
| visible? | boolean | Whether or not the background should initially be visible. Defaults to true. |