Appearance
XyzLayer (Standard XYZ Pyramid Layer)
Tile layer that can load COG XYZ imagery.
Constructor
ts
new ge3d.object.XyzLayer(options?: any): XyzLayerParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| url | Cesium.Resource/String | - | Tile URL template |
| format | String | 'image/jpeg' | MIME type of tile image to be retrieved from server |
| enablePickFeatures | Boolean | false | Whether to request and interpret vector object features |
| pickFeaturesUrl | Cesium.Resource/String | - | Corresponding WMS service URL for clicking to view vector object features |
| highlight | Object | - | Vector data and its style highlighted by mouse click |
COG Parameters
| Parameter | Type | Description |
|---|---|---|
| bidx | string | Dataset band index (e.g., bidx=1, bidx=1&bidx=2&bidx=3) |
| expression | string | Rio tiler band math expression (e.g., expression=b1/b2) |
| nodata | string | Override internal nodata value |
| unscale | string | Apply dataset internal scale/offset |
| resampling | string | RasterIO resampling algorithm, default is nearest value |
| reproject | string | WarpKernel resampling algorithm (only used when reprojecting), default is nearest |
| rescale | string | Comma-separated min, max range |
| color_formula | string | Rio color formula |
| colormap | string | JSON-encoded custom color map |
| colormap_name | string | Rio tiler color map name |
| return_mask | string | Add mask to output data, default value is True |
| buffer | string | Buffer on both sides of given tile, must be multiple of 0.5 |
| padding | string | Padding applied to each tile edge, default is 0 |
| algorithm | string | Custom algorithm name (e.g., hillshade) |
| algorithm_params | string | JSON-encoded algorithm parameters |
Properties
| Property | Type | Description |
|---|---|---|
| id | any | Object id identifier |
| name | any | Name identifier |
| show | any | Show/hide state |
| opacity | any | Opacity, range 0.0-1.0 |
| brightness | any | Brightness, range 0.0-1.0 |
| contrast | any | Contrast |
| gamma | any | Gamma correction value |
| hue | any | Hue |
| saturation | any | Saturation |
Methods
setOpacity
Set opacity
ts
setOpacity(value: any): voidtoJSON
Convert to JSON
ts
toJSON(): object