Endpoint (read-only) for listing predefined colormaps.

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

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

{
    "url": "https://demo.lizard.net/api/v4/colormaps/Dark2_r/?format=api",
    "name": "Dark2_r",
    "description": "matplotlib ColorBrewer Qualitative",
    "definition": {
        "data": [
            [
                0.0,
                [
                    102,
                    102,
                    102,
                    255
                ]
            ],
            [
                0.143,
                [
                    166,
                    118,
                    29,
                    255
                ]
            ],
            [
                0.286,
                [
                    230,
                    171,
                    2,
                    255
                ]
            ],
            [
                0.429,
                [
                    102,
                    166,
                    30,
                    255
                ]
            ],
            [
                0.571,
                [
                    231,
                    41,
                    138,
                    255
                ]
            ],
            [
                0.714,
                [
                    117,
                    112,
                    179,
                    255
                ]
            ],
            [
                0.857,
                [
                    217,
                    95,
                    2,
                    255
                ]
            ],
            [
                1.0,
                [
                    27,
                    158,
                    119,
                    255
                ]
            ]
        ],
        "type": "GradientColormap"
    }
}