---
title: "MTPolygonLayerResult | Mobile sdk | Mobile sdk ios | Ios"
description: "The result returned after adding a polygon layer."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTPolygonLayerResult

```
public struct MTPolygonLayerResult : Codable, Sendable, Equatable
```

The result returned after adding a polygon layer.

-   `[polygonLayerId](#/s:11MapTilerSDK20MTPolygonLayerResultV07polygonE2IdSSvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let polygonLayerId: String
    ```
    
-   `[polygonOutlineLayerId](#/s:11MapTilerSDK20MTPolygonLayerResultV014polygonOutlineE2IdSSSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let polygonOutlineLayerId: String?
    ```
    
-   `[polygonSourceId](#/s:11MapTilerSDK20MTPolygonLayerResultV15polygonSourceIdSSvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let polygonSourceId: String
    ```
