Constructor
new SingleImageImageryLayer(properties)
Create a layer that requests images from a WMS service. The layer will immediately return the closest available LOD and load a better LOD for the tile when requestable Only EPSG:4326 is supported.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties | Object | Properties
|
Extends
Methods
_getMap(tile, callbackSuccess, callbackFailure) → {Object}
Fetches the nearest loaded LOD (texture, uvBounds and reference) and adds a callback for the ideal LOD if not yet available
Parameters:
Name | Type | Description |
---|---|---|
tile | PlanetTile | the requestor |
callbackSuccess | function | the callback to be called when correct LOD is available with an object containing texture and uvBounds |
callbackFailure | function | called on exception |
- Overrides
- Source
Returns:
the nearest already loaded LOD texture and uv bounds for the requestor: {texture: THREE.Texture, uvBounds:THREE.Box2, reference:String}
- Type:
- Object
addListener(key, listener)
Adds a listener for layer events
Parameters:
Name | Type | Description |
---|---|---|
key | * | can be anything but should be unique |
listener | function | a function : (layer, eventType)=>{} |
- Overrides
- Source
dispose()
disposes of any resources used by this layer
- Overrides
- Source
getBounds() → {THREE.Box2}
- Overrides
- Source
Returns:
bounds in longitude latitude (degrees)
- Type:
- THREE.
Box2
getCenter(sfct) → {THREE.Vector3}
Moves a given point to this layer's center in degree longitude/latitude
Parameters:
Name | Type | Description |
---|---|---|
sfct | THREE. | a point to move |
- Overrides
- Source
Returns:
the input point
- Type:
- THREE.
Vector3
getID()
- Overrides
- Source
Returns:
layer id
getName()
- Overrides
- Source
Returns:
layer name
getSelectableObjects()
Get all the selectable objects of this layer.
- Overrides
- Source
Returns:
an array of ray-castable objects with a property "layer" pointing to this layer.
removeListener(key)
Removes the listener associated to the given key
Parameters:
Name | Type | Description |
---|---|---|
key | * | can be anything but should be unique |
- Overrides
- Source
select(objectsToSelect) → {Boolean}
selects an object from this layer
Parameters:
Name | Type | Description |
---|---|---|
objectsToSelect | Object |
- Overrides
- Source
Returns:
true if the object was selected, false otherwise
- Type:
- Boolean
setName(name)
change the layer name
Parameters:
Name | Type | Description |
---|---|---|
name | String |
- Overrides
- Source
setVisible(visible)
Modifies the layer visibility
Parameters:
Name | Type | Description |
---|---|---|
visible | Boolean |
- Overrides
- Source
unselect(objectsToUnselect) → {Boolean}
un-selects an object from this layer
Parameters:
Name | Type | Description |
---|---|---|
objectsToUnselect | Object |
- Overrides
- Source
Returns:
true if the object was un-selected, false otherwise
- Type:
- Boolean