Endpoint (read-only) for listing predefined colormaps.

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

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

{
    "url": "https://demo.lizard.net/api/v4/colormaps/Anomalies/?format=api",
    "name": "Anomalies",
    "description": "DiscreteColorMap",
    "definition": {
        "data": [
            [
                0,
                [
                    223,
                    230,
                    223,
                    255
                ]
            ],
            [
                1,
                [
                    230,
                    148,
                    33,
                    255
                ]
            ],
            [
                2,
                [
                    38,
                    168,
                    24,
                    255
                ]
            ]
        ],
        "type": "DiscreteColormap",
        "labels": {
            "en_GB": [
                [
                    0,
                    "Near normal"
                ],
                [
                    1,
                    "Below normal"
                ],
                [
                    2,
                    "Above normal"
                ]
            ]
        },
        "invalid": [
            255,
            255,
            255,
            0
        ]
    }
}