Appearance
WmtsCogByRestLayer (COG-based REST-style WMTS Service Layer)
COG-based REST-style WMTS service layer.
Constructor
ts
new ge3d.object.WmtsCogByRestLayer(options: any): WmtsCogByRestLayerParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| url | Cesium.Resource/String | - | Base URL of WMTS GetTile operation or tile-URL template |
| format | String | 'image/jpeg' | MIME type of tile image |
| layer | String | - | Layer name for WMTS request |
| style | String | - | Style name for WMTS request |
| tileMatrixSetID | String | - | Identifier of TileMatrixSet used for WMTS request |
| tileMatrixLabels | String[] | - | List of tile matrix identifiers |
| clock | Cesium.Clock | - | Clock instance for determining time dimension values |
| times | Cesium.TimeIntervalCollection | - | Object of time dynamic dimensions and their values |
| enablePickFeatures | Boolean | false | Whether to request vector object features |
| pickFeaturesUrl | Cesium.Resource/String | - | Corresponding WMS service URL for clicking to view vector object features |
| pickFeatures | Function | - | External custom click request processing for corresponding vector data |
| highlight | Object | - | Mouse click highlight display |
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 |
|---|---|---|
| alpha | any | Opacity, same as opacity, from 0.0 to 1.0 |
| brightness | any | Brightness, range 0.0-1.0 |
| contrast | any | Contrast, 1.0 uses unmodified image colors |
| gamma | any | Gamma correction value, 1.0 uses unmodified image colors |
| hue | any | Hue, 0.0 for unmodified image colors |
| saturation | any | Saturation, 1.0 uses unmodified image colors |
| id | any | Object id identifier |
| isAdded | boolean | Whether added to map |
| isDestroy | boolean | Whether destroyed |
| name | any | Name identifier |
| opacity | any | Opacity, range 0.0-1.0 |
| rectangle | any | Tile data extent |
| show | any | Show/hide state |
| zIndex | any | Layer order, higher numbers on top |
| hasOpacity | boolean | Whether opacity can be adjusted |
| hasZIndex | boolean | Whether layer order can be adjusted |
Methods
addEventListener
Bind layer events
ts
addEventListener(types: any, fn: any, context?: any): thisaddPosition
Add new coordinate point
ts
addPosition(item: any): voidclear
Clear vector objects
ts
clear(hasDestory?: boolean): voiddestroy
Destroy current layer
ts
destroy(noDel: any): voidflyTo
Fly to feature
ts
flyTo(options: any): undefined | GeoJsonLayeronce
Event that is destroyed after being triggered once
ts
once(types: any, fn: any, context?: any): thisremoveEventListener
Remove bound events
ts
removeEventListener(types: any, fn: any, context?: any): thissetOpacity
Set opacity
ts
setOpacity(value: any): voidsetOptions
Set Options
ts
setOptions(options?: any): thistoJSON
Convert to JSON
ts
toJSON(): object