Endpoint (read-only) for listing predefined colormaps.

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

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

{
    "url": "https://demo.lizard.net/api/v4/colormaps/DiscChange3/?format=api",
    "name": "DiscChange3",
    "description": "DiscreteColorMap",
    "definition": {
        "data": [
            [
                1,
                [
                    252,
                    141,
                    89,
                    255
                ]
            ],
            [
                2,
                [
                    255,
                    255,
                    191,
                    255
                ]
            ],
            [
                3,
                [
                    145,
                    207,
                    96,
                    255
                ]
            ]
        ],
        "type": "DiscreteColormap",
        "labels": {
            "en_GB": [
                [
                    1,
                    "Decrease"
                ],
                [
                    2,
                    "Insignificant"
                ],
                [
                    3,
                    "Increase"
                ]
            ]
        },
        "invalid": [
            255,
            255,
            255,
            0
        ]
    }
}