# Polygon

In CARTO Builder, the Point layer visualization option allows you to render and style point features on your map. This layer type offers various advanced styling options to enhance the visual representation of your data such as creating heatmap or grid visualizations dynamically from your original source.

<figure><img src="/files/vfJfyZlba98xPK99qXaO" alt=""><figcaption></figcaption></figure>

## Visualization

Within the **Advanced visualization options** <img src="/files/KXy7rV4Gu0pLuWqxXqlk" alt="" data-size="line"> , you can access **Zoom Visibility** to define the range at which your layer should be visualized. This ensures that your lines are displayed at appropriate zoom levels, improving the clarity and relevance of your map.

<figure><img src="/files/lkNZkt9IDxmhxTU1W0G5" alt=""><figcaption></figcaption></figure>

If your data source contains identical geometries with varying attributes (e.g., weather stations or buildings), you can use the **Aggregate by geometry** functionality to aggregate your layer based on a distinct spatial column. [Learn more in this section](/carto-user-manual/maps/layers.md#visibility-by-zoom-level-1).

## Fill

In this section you can define **Color** that will be used to fill your point symbol. You can set a simple color or use a [color schema](/carto-user-manual/maps/layers.md#fill-color) based on a given property to add depth and meaning to your lines. Additionally, you can adjust the fill opacity to your desired percentage for better visual effects.

<figure><img src="/files/xbiEEq4I7ocdf7XUwwnm" alt=""><figcaption></figcaption></figure>

When configuring either the color based on a property, you can access **Advanced fill options** <img src="/files/KXy7rV4Gu0pLuWqxXqlk" alt="" data-size="line"> to set the [color scale](/carto-user-manual/maps/layers.md#fill-color-2). This allows for a more granular and informative visualization.

## Stroke

The stroke of your line layer can be customized in various ways to suit your visualization needs:

* **Stroke Color**: Set a simple color or use a color schema based on a given property to add depth and meaning to your lines. Additionally, you can adjust the stroke opacity to your desired percentage for better visual effects.
* **Stroke Weight**: Define the stroke weight as either a fixed value or based on a given property. You can modify the stroke weight using a simple slider when set to fixed, or by defining a weight range when configured by a property.

<figure><img src="/files/EvpHu53Z0awxQdDRDLI8" alt=""><figcaption></figcaption></figure>

When configuring either the stroke color or stroke weight based on a property, you can access **Advanced stroke options** <img src="/files/KXy7rV4Gu0pLuWqxXqlk" alt="" data-size="line"> to set the color scale or weight scale. This allows for a more granular and informative visualization.

## Height

You can enable height visualization to extrude the height of your grid layer. When this is enabled, make sure to change the map view to 3D so you can see the features on this view mode.

Set a fixed height or set the height value based on a given property. You use the slider to multiple the height value according to your need.

<figure><img src="/files/LYoVMh60FAvHDjahokkj" alt=""><figcaption></figcaption></figure>

When configuring the height based on a property, you can access **Advanced height options** <img src="/files/KXy7rV4Gu0pLuWqxXqlk" alt="" data-size="line"> to set the height scale. Additionally, you can enable the Show wireframe option to visualize the stroke of the 3D objects.

## Custom aggregation expressions

On layers using [Aggregate by geometry](/carto-user-manual/maps/layers.md#aggregate-by-geometry), apart from the predefined aggregation methods (`avg`, `sum`, `min`, `max`, `count`), you can write a custom SQL aggregation expression that runs on your data warehouse. This is useful for derived metrics like rates, ratios and weighted averages.

```sql
SUM(female) / NULLIF(SUM(population), 0)
```

Custom aggregation is also available in popup fields. See [Interactions](/carto-user-manual/maps/interactions.md#custom-aggregation-in-popups).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.carto.com/carto-user-manual/maps/layers/polygon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
