Skip to content
DezfilDocsv0.1.0

API and agentsAPI reference

CustomPalette

object

A saved custom palette: a named gradient of ordered color stops, instance-global, usable wherever palettes are offered (continuous and classified). Styles reference it by name but bake resolved colors in, so deleting a palette never breaks a map that used it.

  • namestringrequired

    Stable id, assigned on save; use as palette.

  • labelstringrequiredmax length 60

  • stopsarrayrequiredmin items 2max items 16

    • (each item)object

      • colorstringrequired

        #rrggbb

      • positionnumberrequiredminimum 0maximum 1

        0–1, non-decreasing across the stops.

Dezfil · Apache-2.0docs from 7439201b