# GeospatialLayerDefinitionProperty

The definition properties for a geospatial layer.

- Source: Generated code
- Type last changed: v2.174.0 · 4 Jan 2025

## 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 geospatialLayerDefinitionProperty: quicksight.CfnDashboard.GeospatialLayerDefinitionProperty = {
  lineLayer: {
    style: {
      lineSymbolStyle: {
        fillColor: {
          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',
          },
        },
        lineWidth: {
          lineWidth: 123,
        },
      },
    },
  },
  pointLayer: {
    style: {
      circleSymbolStyle: {
        circleRadius: {
          radius: 123,
        },
        fillColor: {
          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',
          },
        },
        strokeColor: {
          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',
          },
        },
        strokeWidth: {
          lineWidth: 123,
        },
      },
    },
  },
  polygonLayer: {
    style: {
      polygonSymbolStyle: {
        fillColor: {
          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',
          },
        },
        strokeColor: {
          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',
          },
        },
        strokeWidth: {
          lineWidth: 123,
        },
      },
    },
  },
};
```

## Properties

- `lineLayer`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDashboard.GeospatialLineLayerProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDashboard.GeospatialLineLayerProperty.html) — The definition for a line layer.

- `pointLayer`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDashboard.GeospatialPointLayerProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDashboard.GeospatialPointLayerProperty.html) — The definition for a point layer.

- `polygonLayer`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDashboard.GeospatialPolygonLayerProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDashboard.GeospatialPolygonLayerProperty.html) — The definition for a polygon layer.
