Endpoint (read-only) for listing predefined colormaps.

A colormap is used when rendering rasters in the WMS endpoint.

GET /api/v4/colormaps/BrBG_r/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "https://zuiderzeeland.lizard.net/api/v4/colormaps/BrBG_r/?format=api",
    "name": "BrBG_r",
    "description": "matplotlib ColorBrewer Diverging",
    "definition": {
        "data": [
            [
                0.0,
                [
                    0,
                    60,
                    48,
                    255
                ]
            ],
            [
                0.1,
                [
                    1,
                    102,
                    94,
                    255
                ]
            ],
            [
                0.2,
                [
                    53,
                    151,
                    143,
                    255
                ]
            ],
            [
                0.3,
                [
                    128,
                    205,
                    193,
                    255
                ]
            ],
            [
                0.4,
                [
                    199,
                    234,
                    229,
                    255
                ]
            ],
            [
                0.5,
                [
                    245,
                    245,
                    245,
                    255
                ]
            ],
            [
                0.6,
                [
                    246,
                    232,
                    195,
                    255
                ]
            ],
            [
                0.7,
                [
                    223,
                    194,
                    125,
                    255
                ]
            ],
            [
                0.8,
                [
                    191,
                    129,
                    45,
                    255
                ]
            ],
            [
                0.9,
                [
                    140,
                    81,
                    10,
                    255
                ]
            ],
            [
                1.0,
                [
                    84,
                    48,
                    5,
                    255
                ]
            ]
        ],
        "type": "GradientColormap"
    }
}