---
title: "Render legend for a map"
method: POST
path: "/v1/spatial/maps/legend"
tags: ["Mapping Service: Miscellaneous"]
---

# Render legend for a map

`POST /v1/spatial/maps/legend`

## Request

- Base URL: `https://api.cloud.precisely.com`
- URL: `https://api.cloud.precisely.com/v1/spatial/maps/legend`
- Auth: API key in header `Authorization` and HTTP bearer

Returns the complete legend for a map by providing the full map definition in the request body.
The legend is returned as single swatch rows, including a base64 encoded image (or URL) and text description,
that make up a complete legend. For each layer in the map, zero, one, or more legend entries will be returned.

The request body must contain the map definition including layers, name and version are optional parameters.
 Legend swatch configuration is provided via query parameters.

**Resource dependencies:** If the map definition references named layers or named tables by name (instead of providing them inline), those referenced resources must already exist in the repository to be resolved. Note: unlike the named-map legend and image endpoints, this endpoint does not currently enforce per-resource EXECUTE permission checks on referenced named layers/tables.

## Query parameters

- `width` integer, required
- `height` integer, required
- `imageType` 'png' | 'jpeg' | 'gif', required
- `resolution` integer
- `inlineSwatch` boolean
- `ignoreLegendRowOverrideVisibility` boolean

## Request body

- MapRenderRequest
  - `version` string: Version of the map description
  - `name` string: Name of the named map/layer
  - `mapView` MapView: MapView wrapper for render request
    - `size` Size: Image dimensions in pixels
      - `width` integer: Image width in pixels
      - `height` integer: Image height in pixels
    - `view` union
      - BoundsMap: Map view defined by an explicit bounding box, expressed as min/max X/Y coordinates.
        - `type` 'BoundsMap' | 'ZoomAndCenter' | 'ScaleAndCenter', required: Type of view (BoundsMap, ZoomAndCenter, ScaleAndCenter).
        - `crs` string, required: Coordinate Reference System (CRS).
        - `bbox` Bbox, required: Axis-aligned bounding box, expressed as min/max X/Y coordinates.
          - `minX` number, double, required: Minimum X coordinate.
          - `minY` number, double, required: Minimum Y coordinate.
          - `maxX` number, double, required: Maximum X coordinate.
          - `maxY` number, double, required: Maximum Y coordinate.
      - ScaleAndCenter: Map view defined by a scale and center point.
        - `type` 'BoundsMap' | 'ZoomAndCenter' | 'ScaleAndCenter', required: Type of view (BoundsMap, ZoomAndCenter, ScaleAndCenter).
        - `crs` string, required: Coordinate Reference System (CRS).
        - `scale` Scale, required: Scale and center point.
          - `value` number, double, required: Scale value (e.g. 1:N denominator).
          - `centerX` number, double, required: Center point X coordinate.
          - `centerY` number, double, required: Center point Y coordinate.
      - ZoomAndCenter: Map view defined by a zoom distance and center point.
        - `type` 'BoundsMap' | 'ZoomAndCenter' | 'ScaleAndCenter', required: Type of view (BoundsMap, ZoomAndCenter, ScaleAndCenter).
        - `crs` string, required: Coordinate Reference System (CRS).
        - `zoom` Zoom, required: Zoom distance and center point.
          - `value` number, double, required: Zoom distance value.
          - `unit` string, required: Unit of measure for the zoom distance (e.g. m, km, mi).
          - `centerX` number, double, required: Center point X coordinate.
          - `centerY` number, double, required: Center point Y coordinate.
  - `render` RenderOptions: Rendering related options (imageFormat, backgroundColor etc)
    - `imageFormat` 'image/png' | 'image/jpeg' | 'image/jpg' | 'image/gif' | 'image/bmp' | 'image/tiff', required: Image format for map rendering
    - `backgroundColor` string: Background color in hex format (e.g., #FFFFFF)
    - `backgroundOpacity` number, double: Background opacity value between 0.0 (transparent) and 1.0 (opaque)
    - `resolution` integer: Map resolution in DPI (dots per inch)
  - `layers` union[]: List of layers to render on the map.
    - union
      - BarLayer: A layer rendering a bar chart per feature of a table.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `table` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `graduation` Graduation: Graduation settings controlling how symbol sizes scale with value.
          - `valueAtSize` number, double: Data value that corresponds to the configured symbol size.
          - `graduationMethod` 'SQUARE_ROOT' | 'LOGARITHM' | 'CONSTANT': Method used to graduate symbol sizes by value.
        - `border` union
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `categories` Category[], required: Categories charted by each bar chart.
          - `style` union
            - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
              - …
            - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
            - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
              - …
            - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
            - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
              - …
            - NamedStyle: A style that references a pre-configured named style.
              - …
          - `expression` string: Expression producing this category's value.
          - `description` string: Human readable description of this category.
          - `applyStyle` boolean: Whether the configured style should be applied to this category.
        - `chartWidth` PaperLength: A page-space (paper) length: a magnitude plus its unit of measure.
          - `value` number, double: Length magnitude.
          - `uom` 'Centimeter' | 'Inch' | 'Millimeter' | 'Pica' | 'Point' | 'Pixel' | 'Twip' | 'Meter': Unit of measure for a paper (page space) length.
        - `chartHeight` PaperLength: A page-space (paper) length: a magnitude plus its unit of measure.
          - `value` number, double: Length magnitude.
          - `uom` 'Centimeter' | 'Inch' | 'Millimeter' | 'Pica' | 'Point' | 'Pixel' | 'Twip' | 'Meter': Unit of measure for a paper (page space) length.
        - `opacity` number, double: Opacity of the chart, from 0.0 to 1.0.
        - `spatialExpression` string: Expression producing the location the chart is drawn at.
        - `barBaseSize` BaseSize: Reference map scale at which chart or symbol sizes are defined.
          - `mapScale` number, double: Map scale at which the configured sizes apply.
          - `useScale` boolean: Whether sizes should be scaled relative to the base map scale.
        - `chartType` 'MULTIPLE' | 'STACKED': Rendering style of a bar chart layer.
        - `chartEffectType` 'FLAT' | 'AS3D': Visual effect applied to a chart layer.
        - `horizontalAlignment` 'LEFT' | 'CENTER' | 'RIGHT': Horizontal alignment of a chart, symbol, or label relative to its anchor point.
        - `verticalAlignment` 'TOP' | 'MIDDLE' | 'BOTTOM' | 'BASELINE': Vertical alignment of a chart, symbol, or label relative to its anchor point.
        - `independentScale` boolean: Whether each bar is scaled independently.
        - `graduated` boolean: Whether the bars are graduated by value.
        - `xoffset` number, double
        - `yoffset` number, double
      - FeatureLayer: A layer rendering the features of a table, optionally themed and labelled.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `table` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `themes` union[]: Themes applied to the features of this layer.
          - union
            - CustomRangeTheme: A theme applying a style per explicitly defined value range.
              - …
            - DotDensityTheme: A theme rendering a number of dots per feature proportional to a value.
              - …
            - IndividualValueTheme: A theme applying a style per discrete attribute value.
              - …
            - OverrideTheme: A theme overriding the style of every feature of a layer.
              - …
            - RangeTheme: A theme spreading styles across automatically computed value ranges.
              - …
        - `labelProperties` LabelProperties: Full set of properties controlling how labels are generated and drawn for a layer or label theme.
          - `style` union
            - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
              - …
            - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
            - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
              - …
            - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
            - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
              - …
            - NamedStyle: A style that references a pre-configured named style.
              - …
          - `angle` Angle: An angle: a magnitude plus its unit of measure.
            - `value` number, double: Angle magnitude.
            - `uom` 'Degree' | 'Minute' | 'Second' | 'Radian', required: Unit of measure for an angle.
          - `expression` string: Expression producing the label text.
          - `horizontalAlignment` 'LEFT' | 'CENTER' | 'RIGHT': Horizontal alignment of a chart, symbol, or label relative to its anchor point.
          - `verticalAlignment` 'TOP' | 'MIDDLE' | 'BOTTOM' | 'BASELINE': Vertical alignment of a chart, symbol, or label relative to its anchor point.
          - `allowOverlap` boolean: Whether the label may overlap other labels.
          - `allowOutOfView` boolean: Whether the label may be drawn partially outside the view.
          - `allowDuplicate` 'INTERLAYER' | 'INTRALAYER' | 'ALL': Scope in which duplicate labels are allowed to be drawn.
          - `recalculationType` 'ALWAYS' | 'OUT_OF_VIEW' | 'NEVER': When label positions are recalculated.
          - `labelRelativeOrientation` 'PARALLEL' | 'FOLLOW_PATH': Orientation of a label relative to the geometry it labels.
          - `justification` 'LEFT' | 'CENTER' | 'RIGHT': Justification of multi-line label text.
          - `referenceGeometry` union
            - GeometryCollection: A GeoJSON GeometryCollection: a list of heterogeneous geometry objects.
              - …
            - LineString: A GeoJSON LineString geometry: a list of coordinates forming a line.
              - …
            - MultiLineString: A GeoJSON MultiLineString geometry: a list of line strings.
              - …
            - MultiPoint: A GeoJSON MultiPoint geometry: a list of coordinates.
              - …
            - MultiPolygon: A GeoJSON MultiPolygon geometry: a list of polygons, each a list of linear rings.
              - …
            - Point: A GeoJSON Point geometry: a single coordinate.
              - …
            - Polygon: A GeoJSON Polygon geometry: a list of linear rings (first is the exterior ring, any others are interior rings/holes).
              - …
          - `xOffset` number, double: Horizontal offset of the label from its anchor point.
          - `yOffset` number, double: Vertical offset of the label from its anchor point.
        - `showLineDirection` boolean: Whether line direction arrows are drawn.
        - `namedLabelSourceRef` string: Reference to a named label source used to label this layer.
      - GraduatedSymbolLayer: A layer drawing a symbol per feature, sized proportionally to a computed value.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `table` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `positiveSymbol` union
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `negativeSymbol` union
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `symbolBaseSize` BaseSize: Reference map scale at which chart or symbol sizes are defined.
          - `mapScale` number, double: Map scale at which the configured sizes apply.
          - `useScale` boolean: Whether sizes should be scaled relative to the base map scale.
        - `graduationMethod` 'SQUARE_ROOT' | 'LOGARITHM' | 'CONSTANT': Method used to graduate symbol sizes by value.
        - `valueExpression` string: Expression producing the value the symbols are sized by.
        - `spatialExpression` string: Expression producing the location the symbols are drawn at.
        - `valueAtSize` number, double: Data value corresponding to the configured symbol size.
        - `ignoredValue` number, double: Value for which no symbol is drawn.
        - `showPositiveSymbol` boolean: Whether symbols are drawn for positive values.
        - `showNegativeSymbol` boolean: Whether symbols are drawn for negative values.
      - GridLayer: A layer rendering a continuous grid surface interpolated from the points of a table.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `table` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `style` union, required
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `cellWidth` Distance, required: A ground distance: a magnitude plus its unit of measure.
          - `value` number, double: Distance magnitude.
          - `uom` 'Centimeter' | 'cm' | 'Chain' | 'Foot' | 'ft' | 'Inch' | 'in' | 'Kilometer' | 'km' | 'Link' | 'Meter' | 'm' | 'Mile' | 'mi' | 'Millimeter' | 'mm' | 'NauticalMile' | 'Pica' | 'Point' | 'Rod' | 'SurveyFoot' | 'Twip' | 'Yard' | 'yd', required: Unit of measure for a ground distance.
        - `valueExpression` string, required: Expression producing the value interpolated into the grid.
        - `spatialExpression` string, required: Expression producing the location of the interpolated points.
        - `interpolator` IDWInterpolator, required: An inverse distance weighted (IDW) interpolator.
          - `type` 'IDWInterpolator', required: Type discriminator of this Interpolator (IDWInterpolator).
          - `clipGeometry` union
            - GeometryCollection: A GeoJSON GeometryCollection: a list of heterogeneous geometry objects.
              - …
            - LineString: A GeoJSON LineString geometry: a list of coordinates forming a line.
              - …
            - MultiLineString: A GeoJSON MultiLineString geometry: a list of line strings.
              - …
            - MultiPoint: A GeoJSON MultiPoint geometry: a list of coordinates.
              - …
            - MultiPolygon: A GeoJSON MultiPolygon geometry: a list of polygons, each a list of linear rings.
              - …
            - Point: A GeoJSON Point geometry: a single coordinate.
              - …
            - Polygon: A GeoJSON Polygon geometry: a list of linear rings (first is the exterior ring, any others are interior rings/holes).
              - …
          - `searchRadius` integer: Number of cells searched around each cell for contributing points.
          - `maxPoints` integer: Maximum number of points contributing to a single cell.
          - `exponent` integer: Exponent applied to the inverse distance weighting.
          - `aggregationMethod` 'AVERAGE' | 'COUNT' | 'MAXIMUM' | 'MINIMUM' | 'SUM', required: Aggregation method used when several source values fall into the same computed cell.
        - `inflectionCollection` union
          - ComputedInflectionCollection: An inflection collection whose band colors are computed by interpolating between a start and end color.
            - `type` 'CustomInflectionCollection' | 'ComputedInflectionCollection', required: Type discriminator of this InflectionCollection (CustomInflectionCollection, ComputedInflectionCollection).
            - `roundBy` number, double: Value that computed inflection points are rounded to.
            - `inflectionMethod` 'EQUAL_COUNT' | 'EQUAL_RANGE': Method used to compute grid classification inflection points.
            - `inflectionSize` integer: Number of inflection bands to compute.
            - `startColor` string: Color of the first computed band.
            - `endColor` string: Color of the last computed band.
          - CustomInflectionCollection: An inflection collection with explicitly listed band colors.
            - `type` 'CustomInflectionCollection' | 'ComputedInflectionCollection', required: Type discriminator of this InflectionCollection (CustomInflectionCollection, ComputedInflectionCollection).
            - `roundBy` number, double: Value that computed inflection points are rounded to.
            - `inflectionMethod` 'EQUAL_COUNT' | 'EQUAL_RANGE': Method used to compute grid classification inflection points.
            - `inflectionColorBins` InflectionColorBin[], required: Explicitly listed colors of the inflection bands.
              - …
        - `gridEnvelope` Envelope: A rectangular bounding envelope: a coordinate reference system and its extent coordinates.
          - `crs` Crs: GeoJSON Coordinate Reference System (CRS) object.
            - `type` string: CRS object type.
            - `properties` object: CRS properties, e.g. the CRS name/URN.
          - `bbox` Coordinate[]: Coordinates describing the envelope's extent, e.g. min/max corners.
            - `longitude` number, double, required: Longitude in decimal degrees.
            - `latitude` number, double, required: Latitude in decimal degrees.
            - `altitude` number, double: Optional altitude in meters.
      - GroupLayer: A layer that groups a list of child layers so they can be controlled together.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `layer` Layer[], required: Child layers of this group, in drawing order.
          - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
          - `description` string: Human readable description of the layer.
          - `renderable` boolean: Whether the layer is rendered.
          - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
            - union
              - …
          - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
            - `name` string, required: Name of the bound parameter.
            - `description` string: Human readable description of this parameter.
            - `value` union, required
              - …
      - LabelLayer: A layer that draws labels obtained from one or more label sources.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `labelSource` union[], required: Label sources this layer draws labels from.
          - union
            - FeatureLabelSource: A label source generating labels from the features of a table.
              - …
            - NamedLabelSource: A label source referencing a pre-configured named label source.
              - …
      - LineChartLayer: A layer rendering a line chart per feature of a table.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `table` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `line` union
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `categories` Category[]: Categories charted by each line chart.
          - `style` union
            - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
              - …
            - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
            - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
              - …
            - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
            - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
              - …
            - NamedStyle: A style that references a pre-configured named style.
              - …
          - `expression` string: Expression producing this category's value.
          - `description` string: Human readable description of this category.
          - `applyStyle` boolean: Whether the configured style should be applied to this category.
        - `chartWidth` PaperLength: A page-space (paper) length: a magnitude plus its unit of measure.
          - `value` number, double: Length magnitude.
          - `uom` 'Centimeter' | 'Inch' | 'Millimeter' | 'Pica' | 'Point' | 'Pixel' | 'Twip' | 'Meter': Unit of measure for a paper (page space) length.
        - `chartHeight` PaperLength: A page-space (paper) length: a magnitude plus its unit of measure.
          - `value` number, double: Length magnitude.
          - `uom` 'Centimeter' | 'Inch' | 'Millimeter' | 'Pica' | 'Point' | 'Pixel' | 'Twip' | 'Meter': Unit of measure for a paper (page space) length.
        - `opacity` number, double: Opacity of the chart, from 0.0 to 1.0.
        - `spatialExpression` string: Expression producing the location the chart is drawn at.
        - `chartBaseSize` BaseSize: Reference map scale at which chart or symbol sizes are defined.
          - `mapScale` number, double: Map scale at which the configured sizes apply.
          - `useScale` boolean: Whether sizes should be scaled relative to the base map scale.
        - `domainAxis` ChartAxis: Rendering options for one axis of a chart layer.
          - `style` union
            - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
              - …
            - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
            - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
              - …
            - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
            - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
              - …
            - NamedStyle: A style that references a pre-configured named style.
              - …
          - `visible` boolean: Whether the axis is drawn.
          - `label` boolean: Whether the axis labels are drawn.
        - `rangeAxis` ChartAxis: Rendering options for one axis of a chart layer.
          - `style` union
            - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
              - …
            - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
            - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
              - …
            - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
            - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
              - …
            - NamedStyle: A style that references a pre-configured named style.
              - …
          - `visible` boolean: Whether the axis is drawn.
          - `label` boolean: Whether the axis labels are drawn.
        - `chart` ChartPlot: Rendering options for the plot area of a chart layer.
          - `style` union
            - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
              - …
            - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
            - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
              - …
            - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
            - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
              - …
            - NamedStyle: A style that references a pre-configured named style.
              - …
          - `domainGrid` Grid: Rendering options for the grid lines of one chart axis.
            - `style` union
              - …
            - `visible` boolean: Whether the grid lines are drawn.
          - `rangeGrid` Grid: Rendering options for the grid lines of one chart axis.
            - `style` union
              - …
            - `visible` boolean: Whether the grid lines are drawn.
          - `visibleOutline` boolean: Whether the plot area outline is drawn.
        - `horizontalAlignment` 'LEFT' | 'CENTER' | 'RIGHT': Horizontal alignment of a chart, symbol, or label relative to its anchor point.
        - `verticalAlignment` 'TOP' | 'MIDDLE' | 'BOTTOM' | 'BASELINE': Vertical alignment of a chart, symbol, or label relative to its anchor point.
      - LineLinkageLayer: A layer drawing linkage lines between source and destination features of two tables.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `geometryTable` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `linkageTable` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `sourceExpression` string, required: Expression producing the source key of a linkage.
        - `destinationExpression` string, required: Expression producing the destination key of a linkage.
        - `metricExpression` string, required: Expression producing the metric value of a linkage.
        - `relationshipExpression` string, required: Expression producing the relationship of a linkage.
        - `themes` union[]: Themes applied to the linkage lines.
          - union
            - CustomRangeTheme: A theme applying a style per explicitly defined value range.
              - …
            - DotDensityTheme: A theme rendering a number of dots per feature proportional to a value.
              - …
            - IndividualValueTheme: A theme applying a style per discrete attribute value.
              - …
            - OverrideTheme: A theme overriding the style of every feature of a layer.
              - …
            - RangeTheme: A theme spreading styles across automatically computed value ranges.
              - …
        - `sourcePointStyle` union
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `destinationPointStyle` union
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `directionArrowEnabled` boolean: Whether direction arrows are drawn on the linkage lines.
      - NamedLayer: A layer that references a pre-configured named layer resource.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `namedTableRef` string: Optional reference to a named table overriding the one of the named layer.
        - `name` string, required: Name (resource path) of the named layer.
      - PieLayer: A layer rendering a pie chart per feature of a table.
        - `type` 'NamedLayer' | 'FeatureLayer' | 'GroupLayer' | 'LabelLayer' | 'BarLayer' | 'PieLayer' | 'LineChartLayer' | 'LineLinkageLayer' | 'GraduatedSymbolLayer' | 'GridLayer', required: Type discriminator of this Layer (NamedLayer, FeatureLayer, GroupLayer, LabelLayer, BarLayer, PieLayer, LineChartLayer, LineLinkageLayer, GraduatedSymbolLayer, GridLayer).
        - `description` string: Human readable description of the layer.
        - `renderable` boolean: Whether the layer is rendered.
        - `visibilityConstraints` union[]: Constraints controlling at which scales/zooms the layer is visible.
          - union
            - ScaleVisibilityConstraint: A visibility constraint expressed as a map scale range.
              - …
            - ZoomVisibilityConstraint: A visibility constraint expressed as a zoom (ground distance) range.
              - …
        - `parameters` BoundParameter[]: Named parameters bound into this layer's expressions, e.g. bind variables.
          - `name` string, required: Name of the bound parameter.
          - `description` string: Human readable description of this parameter.
          - `value` union, required
            - BinaryValue: A binary blob attribute value.
              - …
            - BooleanValue: A boolean attribute value.
              - …
            - ByteValue: A byte attribute value.
              - …
            - DateTimeValue: A date-and-time attribute value.
              - …
            - DateValue: A date attribute value.
              - …
            - DecimalValue: A fixed-point decimal attribute value.
              - …
            - DoubleValue: A 64-bit floating point attribute value.
              - …
            - FloatValue: A 32-bit floating point attribute value.
              - …
            - GeometryValue: A geometry attribute value.
              - …
            - GridValue: A raster grid attribute value.
              - …
            - IntValue: An integer attribute value.
              - …
            - ListAttributeValue: An attribute value that is itself a list of (homogeneous) attribute values.
              - …
            - LongValue: A long attribute value.
              - …
            - RasterValue: A raster image attribute value.
              - …
            - ShortValue: A short attribute value.
              - …
            - StringValue: A string attribute value.
              - …
            - StyleValue: A style attribute value.
              - …
            - TimeSpanValue: A duration ("time span") attribute value.
              - …
            - TimeValue: A time attribute value.
              - …
        - `table` union, required
          - MemoryTable: Table backed by an in-memory feature collection.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `featureCollection` FeatureCollection, required: A GeoJSON FeatureCollection object, optionally with metadata, bbox, and Crs.
              - …
          - NamedTable: Polymorphic table definition (NamedTable, ViewTable, or MemoryTable).
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
          - ViewTable: Table backed by a SQL view definition.
            - `type` 'NamedTable' | 'ViewTable' | 'MemoryTable', required: Type of table (NamedTable, ViewTable, MemoryTable).
            - `name` string, required: Table name.
            - `sql` string, required: SQL statement defining the view.
        - `categories` Category[], required: Categories charted by each pie chart.
          - `style` union
            - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
              - …
            - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
            - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
              - …
            - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
            - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
              - …
            - NamedStyle: A style that references a pre-configured named style.
              - …
          - `expression` string: Expression producing this category's value.
          - `description` string: Human readable description of this category.
          - `applyStyle` boolean: Whether the configured style should be applied to this category.
        - `border` union
          - GridStyle: A style that classifies grid/raster values into color bands via inflection breaks.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `inflections` Inflection[]: Ordered list of classification breaks (value/color/description).
              - …
          - MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
            - `mapBasicBrush` MapBasicBrush: MapBasic brush definition: fill pattern, foreground color, and background color.
              - …
          - MapBasicCompositeStyle: MapBasic composite style combining point, line, and area styles.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `pointStyle` MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
              - …
            - `lineStyle` MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
              - …
            - `areaStyle` MapBasicAreaStyle: MapBasic area style: border pen and fill brush.
              - …
          - MapBasicFontStyle: MapBasic font style: name, style flags, size, and foreground/background colors.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `fontName` string: Name of the font.
            - `style` integer: Font style flags (e.g. bold/italic bitmask).
            - `size` integer: Font size.
            - `foregroundColor` string: Foreground (text) color.
            - `backgroundColor` string: Background color.
          - MapBasicLineStyle: MapBasic line style: the pen used to draw the line.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicPen` MapBasicPen: MapBasic pen definition: width, dash pattern, and color.
              - …
          - MapBasicPointStyle: MapBasic point style: the symbol used to render the point.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicSymbol` union
              - …
          - MapBasicTextStyle: MapBasic text style: the font style used to render the text.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `mapBasicFontStyle` MapBasicFontStyle, required: MapBasic font style: name, style flags, size, and foreground/background colors.
              - …
          - NamedStyle: A style that references a pre-configured named style.
            - `type` 'NamedStyle' | 'GridStyle' | 'MapBasicAreaStyle' | 'MapBasicCompositeStyle' | 'MapBasicFontStyle' | 'MapBasicLineStyle' | 'MapBasicPointStyle' | 'MapBasicTextStyle', required: Type of style (NamedStyle, GridStyle, MapBasicAreaStyle, MapBasicCompositeStyle, MapBasicFontStyle, MapBasicLineStyle, MapBasicPointStyle, MapBasicTextStyle).
            - `name` string, required: Name of the named style.
        - `diameter` PaperLength: A page-space (paper) length: a magnitude plus its unit of measure.
          - `value` number, double: Length magnitude.
          - `uom` 'Centimeter' | 'Inch' | 'Millimeter' | 'Pica' | 'Point' | 'Pixel' | 'Twip' | 'Meter': Unit of measure for a paper (page space) length.
        - `opacity` number, double: Opacity of the chart, from 0.0 to 1.0.
        - `graduation` Graduation: Graduation settings controlling how symbol sizes scale with value.
          - `valueAtSize` number, double: Data value that corresponds to the configured symbol size.
          - `graduationMethod` 'SQUARE_ROOT' | 'LOGARITHM' | 'CONSTANT': Method used to graduate symbol sizes by value.
        - `spatialExpression` string: Expression producing the location the chart is drawn at.
        - `pieBaseSize` BaseSize: Reference map scale at which chart or symbol sizes are defined.
          - `mapScale` number, double: Map scale at which the configured sizes apply.
          - `useScale` boolean: Whether sizes should be scaled relative to the base map scale.
        - `wedgeRenderDirection` 'CLOCKWISE' | 'COUNTER_CLOCKWISE': Direction in which pie chart wedges are rendered.
        - `startAngle` number, double: Angle, in degrees, at which the first wedge starts.
        - `chartType` 'FULL' | 'HALF': Rendering style of a pie chart layer.
        - `chartEffectType` 'FLAT' | 'AS3D': Visual effect applied to a chart layer.
        - `horizontalAlignment` 'LEFT' | 'CENTER' | 'RIGHT': Horizontal alignment of a chart, symbol, or label relative to its anchor point.
        - `verticalAlignment` 'TOP' | 'MIDDLE' | 'BOTTOM' | 'BASELINE': Vertical alignment of a chart, symbol, or label relative to its anchor point.
        - `depthFactor` number, double: Depth factor applied when the chart is drawn with a 3D effect.
        - `graduated` boolean: Whether the pies are graduated by value.

## Response `200`

Successfully rendered legend for the map

- MidevLegendResponse
  - `legends` MidevLegend[]
    - `type` string
    - `rows` MidevLegendRow[]
      - `description` string
      - `swatch` string
    - `title` string
    - `layerName` string

## Other responses

- `400`: Invalid request arguments
- `404`: Layer not found
- `500`: Internal server error while processing the request or with downstream services

---

[API](https://skmtc.dev/precisely/apis/mapping-api.md) · [All operations](https://skmtc.dev/precisely/apis/mapping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/precisely/apis/mapping-api/revisions/cea0ad9440c5?raw)
