Endpoint (read-only) for listing predefined colormaps.

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

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

{
    "url": "https://zuiderzeeland.lizard.net/api/v4/colormaps/BooleanWarning/?format=api",
    "name": "BooleanWarning",
    "description": "Warning or no warning",
    "definition": {
        "data": [
            [
                0,
                [
                    11,
                    102,
                    35,
                    255
                ]
            ],
            [
                1,
                [
                    255,
                    40,
                    0,
                    255
                ]
            ]
        ],
        "type": "DiscreteColormap",
        "labels": {
            "en_GB": [
                [
                    0,
                    "No Warning"
                ],
                [
                    1,
                    "Warning"
                ]
            ]
        },
        "invalid": [
            255,
            255,
            255,
            0
        ]
    }
}