# GeospatialColorProperty

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const geospatialColorProperty: quicksight.CfnTemplate.GeospatialColorProperty = {
  categorical: {
    categoryDataColors: [{
      color: 'color',
      dataValue: 'dataValue',
    }],

    // the properties below are optional
    defaultOpacity: 123,
    nullDataSettings: {
      symbolStyle: {
        fillColor: 'fillColor',
        strokeColor: 'strokeColor',
        strokeWidth: 123,
      },
    },
    nullDataVisibility: 'nullDataVisibility',
  },
  gradient: {
    stepColors: [{
      color: 'color',
      dataValue: 123,
    }],

    // the properties below are optional
    defaultOpacity: 123,
    nullDataSettings: {
      symbolStyle: {
        fillColor: 'fillColor',
        strokeColor: 'strokeColor',
        strokeWidth: 123,
      },
    },
    nullDataVisibility: 'nullDataVisibility',
  },
  solid: {
    color: 'color',

    // the properties below are optional
    state: 'state',
  },
};
```

## Properties

- `categorical`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.GeospatialCategoricalColorProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.GeospatialCategoricalColorProperty.html)

- `gradient`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.GeospatialGradientColorProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.GeospatialGradientColorProperty.html)

- `solid`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.GeospatialSolidColorProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.GeospatialSolidColorProperty.html) — Describes the properties for a solid color.
