Add style
Description | Adds a style to a vector layer. |
Endpoint |
|
Method | POST |
Access Level Rules
Access Level | edit+ |
Processing Units
Processing units | 2 |
Parameters
Name | Description | Required | Default |
---|---|---|---|
| The id of the vector layer. | true | |
| The name of the new style. | true | |
| Boolean whether the style should be the default style. | true | |
| The method of the style. Must be one of "rules", "transitionPoints", "'random", "singleColor" or "fromColorProperty". | true | |
| A JSON containing the parameters of the style. Below table defines the style parameters, whose content differs between methods. | true |
Sample requests for different methods
A pattern must be an object with:
type: One of solid, diagonal, horizontal or vertical
width: a float between 1 and 50
backgroundColor: a hex color, optional.
Example:
An icon must be an object with
name: the name of the icon as a string.
All valid inputs for name can be listed with
Example:
RECOMMENDED READING
ποΈVector styling methodsLast updated