patch
https://api.jmapcloud.io/api/mcs/rest/v1/organizations//styles/
Changes a style of your organization. Only the fields you send are changed; type can't be changed.
Required role: ORG_EDITOR.
namecan't be emptied;description: ""removes the description.- Images (
symbolData,linePatternData,patternData,borderPatternData):""removes them, exceptsymbolData. - A dash pattern and a pattern image are exclusive: sending one removes the other.
[]removes a dash pattern. styles(COMPOUND) replaces the list, with the same rules as on creation.
The layers that use the style are drawn with the new style; its samples are refreshed.
Style types
Styles belong to your organization and are used by the style rules of the layers (and as selection styles).
type | For | Specific fields (default) |
|---|---|---|
POINT | Points | symbolData (required: SVG, PNG, GIF or JPEG as Base64, 100 x 100 pixels at most), size (1, greater than 0), rotation (0, from 0 to less than 360), rotationLocked (false), proportional (false), proportionalScale (1), symbolOffset ({ "x": 0, "y": 0 }) |
LINE | Lines | lineColor (#000000), lineThickness (1), lineCap (BUTT, ROUND (default), SQUARE), lineJoin (BEVEL, ROUND, MITER (default)), lineMiterLimit (2), lineRoundLimit (1.05), dashPattern or linePatternData (an image, 128 x 128 pixels at most), arrowActive (false), arrowColor (#000000), arrowSize (1), arrowTransparency (0) |
POLYGON | Polygons | fillColor (#3D87CD), patternData (fill image, 128 x 128 pixels at most), patternBackgroundColor, showPatternBackgroundColor, borderColor (#000000), borderThickness (1), borderTransparency (0), borderDashPattern or borderPatternData |
TEXT | Annotations and labels | textColor (#000000), outlineColor, bold, italic, typeface (AVERIA_SANS_LIBRE, BARLOW, IBM_PLEX_MONO, NOTO_SERIF, OPEN_SANS, ROBOTO, SHANTELL_SANS) |
IMAGE | Raster, WMS and WMTS layers | None |
COMPOUND | Points or lines drawn with several styles | styles: ids of POINT styles or of LINE styles (not mixed), in drawing order. A style can be in one compound style only. |
All types have name (required, 2048 characters at most), description (2048 characters at most), transparency (from 0, opaque (default), to 100) and tags. Colors are hexadecimal (#RRGGBB or #RGB). Fields that don't apply to the type are ignored.
Organization
organization must be the organization of the access token, and the style must belong to it; otherwise the request returns 404.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…