seasketch / next

A modernization version of the SeaSketch platform, released in 2022.
https://seasketch.org
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Legend not working for polygon heatmap #670

Closed avmey closed 7 months ago

avmey commented 7 months ago

Style was created with Fill > Color interpreted from number property Style:

[
  {
    "type": "fill",
    "paint": {
      "fill-color": [
        "interpolate-hcl",
        ["linear"],
        ["get", "SUM_VALUE"],
        1671,
        "#0d0887",
        3980,
        "#41049d",
        6104,
        "#6a00a8",
        7869,
        "#8f0da4",
        10194,
        "#b12a90",
        13705,
        "#cc4778",
        19159,
        "#e16462",
        29000,
        "#f2844b",
        49158,
        "#fca636",
        91494,
        "#fcce25"
      ]
    },
    "layout": {}
  }
]

Map and legend result:

Screenshot 2023-12-19 at 10 00 22 AM Screenshot 2023-12-19 at 10 00 38 AM