updateLayerStyle
Update the visual style of any layer in CesiumJS, including vector, imagery, primitive, or 3D Tiles layers, by applying provided style properties such as color, opacity, and label settings.
Instructions
Update vector, imagery, primitive, or 3D Tiles styling for a layer. Returns { success: boolean, data?: unknown, message?: string, error?: string }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Layer ID | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) | |
| tileStyle | No | 3D Tiles style (Cesium3DTileStyle expressions: color, show, pointSize, meta) | |
| labelStyle | No | Label style (font, fillColor, outlineColor, outlineWidth, scale, etc.) | |
| layerStyle | No | Entity layer style (color, opacity, strokeWidth, pointSize; GeoJSON thematic styles choropleth/category/randomColor/gradient are mutually exclusive) | |
| imageryStyle | No | Imagery visual style (alpha, brightness, contrast, hue, saturation, gamma); use setLayerVisibility for show/hide | |
| primitiveStyle | No | GeoJSON Primitive material style (color, opacity, outlineColor, outlineWidth, pointSize, lineWidth); use setLayerVisibility for show/hide |