Endpoint (read-only) for listing predefined colormaps.

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

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

{
    "url": "https://demo.lizard.net/api/v4/colormaps/3di-damage-estim/?format=api",
    "name": "3di-damage-estim",
    "description": "3Di result (based on YlOrRd)",
    "definition": {
        "data": [
            [
                0.0,
                [
                    255,
                    255,
                    204,
                    255
                ]
            ],
            [
                0.025,
                [
                    255,
                    237,
                    160,
                    255
                ]
            ],
            [
                0.05,
                [
                    254,
                    217,
                    118,
                    255
                ]
            ],
            [
                0.1,
                [
                    254,
                    178,
                    76,
                    255
                ]
            ],
            [
                0.2,
                [
                    253,
                    141,
                    60,
                    255
                ]
            ],
            [
                0.35,
                [
                    252,
                    78,
                    42,
                    255
                ]
            ],
            [
                0.5,
                [
                    227,
                    26,
                    28,
                    255
                ]
            ],
            [
                0.75,
                [
                    189,
                    0,
                    38,
                    255
                ]
            ],
            [
                1.0,
                [
                    128,
                    0,
                    38,
                    255
                ]
            ]
        ],
        "type": "GradientColormap"
    }
}