Constructor
new ImageUrlSource(sourceFromTile, opts)
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sourceFromTile |
function | Function that receives a tile and returns
a |
|||||||||||||||
opts |
Object |
Properties
|
- Implements:
Methods
(static) fromString(url, opts)
Creates an ImageUrlSource from a string template.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
String | Tile URL template, which may contain the following placeholders:
|
|||||||||||||||
opts |
Object | In addition to the options already supported by the ImageUrlSource constructor. Properties
|
loadAsset(stage, tile, done) → {function}
Loads an Asset from the source.
Parameters:
Name | Type | Description |
---|---|---|
stage |
Stage | |
tile |
Tile | |
done |
function | Callback. |
- Implements:
Returns:
Function that cancels the loading when called.
- Type
- function