[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [map](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map) / [sources](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#sources) / [Projection](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#projection) / Projection

# Class: Projection

[sources](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#sources).[Projection](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#projection).Projection

Projection source for transforming rectangular nodes to the map projection.

## Hierarchy

- [`Image`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image)
↳ **`Projection`**
↳↳ [`GeoTile`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.geotile.geotile)


## Table of contents

Constructors
- [new Projection(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.sources.projection.projection.md#new projection(options))


Methods
| [clear](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#clear) | [dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#dispose) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getclassname) |
|  --- | --- | --- |
| [getContentNode](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getcontentnode) | [getCopyright](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getcopyright) | [getDataLoader](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getdataloader) |
| [getInflateRatio](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getinflateratio) | [getInitialCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getinitialcoordinatesystem) | [getLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getlayers) |
| [getMapCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getmapcoordinatesystem) | [getModelLimits](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getmodellimits) | [getProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getproperties) |
| [getResourceManager](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getresourcemanager) | [getServerData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getserverdata) | [getServerURL](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getserverurl) |
| [getSourceTimeout](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getsourcetimeout) | [getTransformerFromMap](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#gettransformerfrommap) | [getTransformerToMap](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#gettransformertomap) |
| [getVisibleLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getvisiblelayers) | [hasEventListener](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#haseventlistener) | [hideLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#hidelayers) |
| [initLoader](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#initloader) | [isDataLoaded](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#isdataloaded) | [isDataReady](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#isdataready) |
| [isDisposed](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#isdisposed) | [isLoading](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#isloading) | [isSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#issilent) |
| [loadServerData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#loadserverdata) | [loadSourceData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#loadsourcedata) | [notify](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#notify) |
| [off](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#off) | [on](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#on) | [resetLastQueryParams](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#resetlastqueryparams) |
| [setContentNode](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setcontentnode) | [setDataReady](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setdataready) | [setInflateRatio](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setinflateratio) |
| [setInitialCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setinitialcoordinatesystem) | [setMapCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setmapcoordinatesystem) | [setProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setproperties) |
| [setQueryParameter](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setqueryparameter) | [setServerURL](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setserverurl) | [setSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setsilent) |
| [setSourceTimeout](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#setsourcetimeout) | [showLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#showlayers) | [update](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#update) |
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection#getclassname-1) |


Css Properties
| Name  | Type  | Description |
|  --- | --- | --- |
| `system` | `string` | Initial data coordinate system |
| `url` | `string` | Data server url |


## Contents

Constructors
#### new Projection(options)

• **new Projection**(`options?`)

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `options` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#projection#options-1) | options |


#### Overrides

Image.constructor

Methods
#### clear

▸ **clear**(): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Notifies source to remove all data added.

#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[clear](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#clear)

#### dispose

▸ **dispose**(): `void`

Disposes this source, once disposed it should not be used anymore.<br>

#### Returns

`void`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#dispose)

#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getclassname)

#### getContentNode

▸ **getContentNode**(): [`Node`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.node.node)

Returns current projected content node

#### Returns

[`Node`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.node.node)

#### getCopyright

▸ **getCopyright**(): `string`

Returns copyright information.

#### Returns

`string`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getCopyright](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getcopyright)

#### getDataLoader

▸ `Protected` **getDataLoader**(): [`AbstractLoader`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.loaders.abstractloader.abstractloader)

Returns server data loader (if exists)

#### Returns

[`AbstractLoader`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.loaders.abstractloader.abstractloader)

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getDataLoader](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getdataloader)

#### getInflateRatio

▸ **getInflateRatio**(): `number`

Returns current inflate ratio

#### Returns

`number`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getInflateRatio](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getinflateratio)

#### getInitialCoordinateSystem

▸ **getInitialCoordinateSystem**(): [`AbstractSystem`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.abstractsystem.abstractsystem)

Gets current data initial coordinate system.

#### Returns

[`AbstractSystem`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.abstractsystem.abstractsystem)

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getInitialCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getinitialcoordinatesystem)

#### getLayers

▸ **getLayers**(): [`LayerServerData`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map.layers.layerserverdata#layerserverdata)[]

Returns layers JSON data loaded from the server
Should be used asynchronically after loadServerData() method is called

#### Returns

[`LayerServerData`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map.layers.layerserverdata#layerserverdata)[]

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getlayers)

#### getMapCoordinateSystem

▸ **getMapCoordinateSystem**(): [`AbstractSystem`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.abstractsystem.abstractsystem)

Gets current map coordinate system.

#### Returns

[`AbstractSystem`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.abstractsystem.abstractsystem)

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getMapCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getmapcoordinatesystem)

#### getModelLimits

▸ **getModelLimits**(): [`Rect`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.rect.rect)

Returns the current data model limits (presumably loaded from the server if it's settled)

#### Returns

[`Rect`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.rect.rect)

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getModelLimits](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getmodellimits)

#### getProperties

▸ **getProperties**(): [`OptionsOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#abstractsource#optionsout)

Returns properties

#### Returns

[`OptionsOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#abstractsource#optionsout)

properties

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getproperties)

#### getResourceManager

▸ **getResourceManager**(): [`TileResourceManager`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.tileresourcemanager.tileresourcemanager)

Returns resource manager used to create projection intermediate results

#### Returns

[`TileResourceManager`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.scene.tileresourcemanager.tileresourcemanager)

#### getServerData

▸ **getServerData**(): [`JSONObject`](/solutions/geotoolkit/geotoolkit_js/apis/interfaces/geotoolkit.map.sources.connectors.abstractconnector.abstractconnector.jsonobject) | `XMLDocument`

Returns server data loaded from the server
Should be used asynchronically after loadServerData() method is called

#### Returns

[`JSONObject`](/solutions/geotoolkit/geotoolkit_js/apis/interfaces/geotoolkit.map.sources.connectors.abstractconnector.abstractconnector.jsonobject) | `XMLDocument`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getServerData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getserverdata)

#### getServerURL

▸ **getServerURL**(): `string` | `string`[]

Gets the server url that is currently used for requests

#### Returns

`string` | `string`[]

server url

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getServerURL](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getserverurl)

#### getSourceTimeout

▸ **getSourceTimeout**(): `number`

Returns timeout

#### Returns

`number`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getSourceTimeout](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getsourcetimeout)

#### getTransformerFromMap

▸ **getTransformerFromMap**(): [`Transformer`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.transformer.transformer)

Gets transformer to transform data from map coordinate system

#### Returns

[`Transformer`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.transformer.transformer)

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getTransformerFromMap](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#gettransformerfrommap)

#### getTransformerToMap

▸ **getTransformerToMap**(): [`Transformer`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.transformer.transformer)

Gets transformer to transform data to map coordinate system

#### Returns

[`Transformer`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.transformer.transformer)

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getTransformerToMap](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#gettransformertomap)

#### getVisibleLayers

▸ **getVisibleLayers**(): (`string` | `number`)[]

Returns the server layer ids that are requested.

#### Returns

(`string` | `number`)[]

layers

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getVisibleLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getvisiblelayers)

#### hasEventListener

▸ **hasEventListener**(`type`, `callback?`): `boolean`

Check if a list of event listeners for this type contains this listener

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `string` | type of event or property |
| `Optional` `callback` | `Function` | to be called, if null, check if any callback is registered |


#### Returns

`boolean`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[hasEventListener](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#haseventlistener)

#### hideLayers

▸ **hideLayers**(`id?`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Adds the passed in ID's to the list of layers to hide

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `id` | `string` | `number` | (`string` | `number`)[] | ID(s) for the layers to show |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[hideLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#hidelayers)

#### initLoader

▸ `Protected` **initLoader**(`loader?`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Initializes the loader provided

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `loader` | [`AbstractLoader`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.loaders.abstractloader.abstractloader) | loader to use |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[initLoader](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#initloader)

#### isDataLoaded

▸ **isDataLoaded**(): `boolean`

Returns true if server data is already loaded (or no loader provided)

#### Returns

`boolean`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[isDataLoaded](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#isdataloaded)

#### isDataReady

▸ **isDataReady**(): `boolean`

Checks if source (current visible) data is loaded and ready to be rendered

#### Returns

`boolean`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[isDataReady](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#isdataready)

#### isDisposed

▸ **isDisposed**(): `boolean`

Returns whether this object has been disposed

#### Returns

`boolean`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[isDisposed](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#isdisposed)

#### isLoading

▸ **isLoading**(): `boolean`

Checks if some of the requests haven't been finished yet. Returns true if some data is loading, false otherwise.

#### Returns

`boolean`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[isLoading](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#isloading)

#### isSilent

▸ **isSilent**(): `boolean`

Return true if the event dispatcher doesn't notify any events

#### Returns

`boolean`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[isSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#issilent)

#### loadServerData

▸ **loadServerData**(): `Promise`<[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)&gt;

Returns promise that is loaded when server settings are ready to process

#### Returns

`Promise`<[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)&gt;

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[loadServerData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#loadserverdata)

#### loadSourceData

▸ **loadSourceData**(): `Promise`<[`AbstractSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.abstractsource.abstractsource)&gt;

Returns promise that is resolving when data are ready to process

#### Returns

`Promise`<[`AbstractSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.abstractsource.abstractsource)&gt;

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[loadSourceData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#loadsourcedata)

#### notify

▸ **notify**<`E`&gt;(`type`, `source`, `args?`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Notify listeners

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `E` | event types |
| `source` | [`Image`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image) | of the event |
| `Optional` `args` | [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#image#eventmap)[`E`] | arguments of the event |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[notify](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#notify)

#### off

▸ **off**<`E`&gt;(`type?`, `callback?`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Detach listener on event.
Calling .off() with no arguments removes all attached listeners.
Calling .off(type) with no callback removes all attached listeners for specific type.

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `type` | `E` | type of the event |
| `Optional` `callback` | (`eventType`: `E`, `sender`: [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection), `args`: [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#image#eventmap)[`E`]) => `void` | function to be called |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[off](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#off)

#### on

▸ **on**<`E`&gt;(`type`, `callback`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Attach listener on event that will be called whenever the specified event is delivered to the target
<p>
If the callback function is already in the list of event listeners for this target,
the function is not added a second time.
</p>
<p>
If a particular anonymous function is in the list of event listeners registered for a
certain target, and then later in the code, an identical anonymous function is given
in an "on" call, the second function will also be added to the list of
event listeners for that target.
</p>

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `E` | type of event or property |
| `callback` | (`eventType`: `E`, `sender`: [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection), `args`: [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#image#eventmap)[`E`]) => `void` | to be called |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[on](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#on)

#### resetLastQueryParams

▸ `Protected` **resetLastQueryParams**(): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Resets saved last queried limits and layer

#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[resetLastQueryParams](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#resetlastqueryparams)

#### setContentNode

▸ **setContentNode**(`node`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets content node to be projected

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `node` | [`BoundedNode`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#projection#boundednode) | node to be projected |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### setDataReady

▸ `Protected` **setDataReady**(`isReady`, `err?`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets source (current visible) data ready/not ready, changes the corresponding promise

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `isReady` | `boolean` | true if source data was loaded, false if it needs to be reset |
| `Optional` `err` | `Error` | data loading error (if exists) |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setDataReady](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setdataready)

#### setInflateRatio

▸ **setInflateRatio**(`ratio`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets image inflate ratio to use

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `ratio` | `number` | image inflate ratio (e.g. 0.2 means the 20% inflation) |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setInflateRatio](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setinflateratio)

#### setInitialCoordinateSystem

▸ **setInitialCoordinateSystem**(`system`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets the data initial coordinate system.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `system` | `string` | [`AbstractSystem`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.abstractsystem.abstractsystem) | initial coordinate system |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setInitialCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setinitialcoordinatesystem)

#### setMapCoordinateSystem

▸ **setMapCoordinateSystem**(`system`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets map coordinate system.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `system` | `string` | [`AbstractSystem`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.coordinatesystems.abstractsystem.abstractsystem) | map coordinate system |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setMapCoordinateSystem](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setmapcoordinatesystem)

#### setProperties

▸ **setProperties**(`properties?`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets properties

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `properties` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.map#abstractsource#options) | properties |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setproperties)

#### setQueryParameter

▸ **setQueryParameter**(`param`, `value?`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets custom query parameter to add to the data requests

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `param` | `string` | `Record`<`string`, `string` | `number`&gt; | parameter name or custom parameters object (in name -> value format) |
| `Optional` `value` | `string` | `number` | parameter value |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setQueryParameter](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setqueryparameter)

#### setServerURL

▸ **setServerURL**(`url`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets the server url to use for requesting

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `url` | `string` | `string`[] | server url |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setServerURL](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setserverurl)

#### setSilent

▸ **setSilent**(`bool`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Set silent mode

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `bool` | `boolean` | flag to enable silent mode |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setsilent)

#### setSourceTimeout

▸ **setSourceTimeout**(`timeout`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets timeout

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `timeout` | `number` | timeout |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[setSourceTimeout](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#setsourcetimeout)

#### showLayers

▸ **showLayers**(`layers`): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Sets the server layer name(s) to be shown on the layer

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `layers` | `string` | `number` | (`string` | `number`)[] | layer id(s) to be shown |


#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[showLayers](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#showlayers)

#### update

▸ **update**(): [`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

Aborts all the sent requests, resends the last one

#### Returns

[`Projection`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.projection.projection)

this

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[update](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#update)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[Image](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.map.sources.image.image#getclassname-1)