API / geotoolkit / map / sources / connectors / PreloadedImage / PreloadedImage
connectors.PreloadedImage.PreloadedImage
Source connector that sends http requests to load the data, and after that creates DOM image with the received base64 data This approach allows user to effectively abort the requests, if necessary, and the DOM image data reload occurs quickly due to browser cache
↳
PreloadedImage
Constructors
Methods
Constructors
• new PreloadedImage(options?)
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
DOMImage.constructor
Methods
▸ abort(key?): PreloadedImage
Aborts the previous queries sent
| Name | Type | Description |
|---|---|---|
Optional key | string | key of the queries to abort (all queries aborted if nothing provided) |
this
▸ Protected abortConnection(connection): PreloadedImage
Aborts the connection provided
| Name | Type | Description |
|---|---|---|
connection | Connection | connection to abort |
this
▸ Protected addConnection(key, connection): PreloadedImage
Adds connection to the list
| Name | Type | Description |
|---|---|---|
key | string | key of the connection (null if no provided) |
connection | Connection | connection to add to the list |
this
▸ clone(): AbstractConnector<Connection>
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ getClassName(): string
string
▸ Protected getConnection(key): Connection
Returns connection by the key
| Name | Type | Description |
|---|---|---|
key | string | key for the connection |
connection
▸ isLoading(): boolean
Checks if some connections are still loading
boolean
▸ Protected removeConnection(key, connection): PreloadedImage
Removes connection from the list
| Name | Type | Description |
|---|---|---|
key | string | key of the connection (null if no provided) |
connection | Connection | connection to remvoe from the list |
this
▸ send(url, options, callback): void
Sends a request using the query provided
| Name | Type | Description |
|---|---|---|
url | string | the url requested |
options | SendOptions | extra options for the request (null if no needed) |
callback | SendCallback | the result handler that's called when response is received |
void
▸ Static getClassName(): string
string