API / geotoolkit / scene / shapes / tiledshape / TiledShape / TiledShape
tiledshape.TiledShape.TiledShape
Namespaces
Type Aliases
Type Aliases
Ƭ CommonManagerOptions<TFormatResult>: Object
object with parameters
| Name | Type |
|---|---|
TFormatResult | extends object = ImageData |
| Name | Type | Description |
|---|---|---|
asynctimeout? | number | time to wait for loading tiles (for async rendering) |
base64? | boolean | Set to true if server provide base64 encoded string instead of raw image |
capacity? | number | Number of tiles stored in cache (0 - endless capacity) |
errimgsrc? | string | source for error image (it will be rendered if tile is not available) |
formatter? | Formatter<TFormatResult> | Instance of tile formatter |
httpservice? | AbstractHttpService | http service to make any HTTP request |
maxnumreq? | number | Maximum number of requests that can be sent at the same time |
timeout? | number | timeout of next request, if server isn't available |
tries? | number | tries of downloading image, if server isn't available |
Ƭ DelayCallback: (data: ImageData) => number
▸ (data): number
Need to delay request callback
| Name | Type |
|---|---|
data | ImageData |
number
Ƭ EventMap: EventMap & { FirstTileLoading: null ; LastTileRendered: { tilescancelling?: Record<string, number> ; tilesloading?: Record<string, number> ; tilesrendering?: Record<string, number> ; time?: number } ; TileCancelled: { modelarea: Rect ; time: number } ; TileLoaded: { modelarea: Rect ; time: number } ; TileLoading: { modelarea: Rect } ; TileRendered: { modelarea: Rect ; time: number } ; TileRendering: { modelarea: Rect } }
Ƭ Formatter<TLoaderFormat>: (data: ImageData) => TLoaderFormat | string
| Name | Type |
|---|---|
TLoaderFormat | extends object = ImageData |
▸ (data): TLoaderFormat | string
| Name | Type |
|---|---|
data | ImageData |
TLoaderFormat | string
Ƭ ImageCallback<TLoaderFormat>: (data: ImageLoadData<TLoaderFormat>, callback: ImageLoadedCallback) => Promise<any> | Cancel | void
| Name | Type |
|---|---|
TLoaderFormat | extends object = ImageData |
▸ (data, callback): Promise<any> | Cancel | void
Image loader callback
| Name | Type |
|---|---|
data | ImageLoadData<TLoaderFormat> |
callback | ImageLoadedCallback |
Promise<any> | Cancel | void
Ƭ ImageData: Object
data of image
| Name | Type | Description |
|---|---|---|
devicearea | Rect | Tile rect in device coordinates |
devicetilerect? | Rect | - |
i? | number | - |
id? | number | string | id of image |
j? | number | - |
options? | any | - |
tilerect | Rect | model area of image |
transformedmodelrect | Rect | Image rect in device coordinates |
z? | number | - |
Ƭ ImageLoadData<TLoaderFormat>: Partial<TLoaderFormat> & { cancel?: Cancel ; url?: string }
data
| Name | Type |
|---|---|
TLoaderFormat | extends object = ImageData |
Ƭ ImageLoadedCallback: (error?: ErrorCodes | { code: ErrorCodes } | Error | string | null, response?: any) => void
▸ (error?, response?): void
Callback as result of image loaded. it can have error if loading is fail
| Name | Type |
|---|---|
Optional error | ErrorCodes | { code: ErrorCodes } | Error | string | null |
Optional response | any |
void
Ƭ OSMManagerOptions<TFormatResult>: CommonManagerOptions<TFormatResult> & { extendedrenderingborders?: number ; maxlod?: number ; minlod?: number ; tileh?: number ; tilew?: number }
object with parameters
| Name | Type |
|---|---|
TFormatResult | extends object = ImageData |
Ƭ Options<TFormatResult>: Options & ReceiverOptions<TFormatResult> & TileManagerOptions<TFormatResult> | Options<TFormatResult> | OSMManagerOptions<TFormatResult> & { delaycallback?: DelayCallback ; imageloader?: ImageCallback<TFormatResult> }
object with parameters
| Name | Type |
|---|---|
TFormatResult | extends object = ImageData |
Ƭ ReceiverOptions<TFormatResult>: Object
object with parameters
| Name | Type |
|---|---|
TFormatResult | extends object = ImageData |
| Name | Type | Description |
|---|---|---|
cancellationstrategy? | AbstractCancellationStrategy | strategy for cancelling of requests |
delaycallback? | DelayCallback | delay callback |
errimgsrc? | string | source for error image (it will be rendered if tile is not available) |
formatter? | Formatter<TFormatResult> | Instance of tile formatter |
httpservice? | AbstractHttpService | http service to make any HTTP request |
imageloader? | ImageCallback<TFormatResult> | image loader callback |
loadertype? | LoaderType | type for tile loader |
maxnumreq? | number | Maximum number of requests that can be sent at the same time |
timeout? | number | timeout of next request, if server isn't available |
tries? | number | tries of downloading image, if server isn't available |
Ƭ TileManagerOptions<TFormatResult>: CommonManagerOptions<TFormatResult> & { extendedrenderingborders?: number ; freezeupdate?: boolean ; isconsttiles?: boolean ; tileh?: number ; tilew?: number }
| Name | Type |
|---|---|
TFormatResult | extends object = ImageData |