---
title: "MTPointLayerHelper | Mobile sdk | Mobile sdk ios | Ios"
description: "Helper for creating a point visualization layer from data and styling options."
---

> 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.

# MTPointLayerHelper

```
public final class MTPointLayerHelper : MTVectorLayerHelper, @unchecked Sendable
```

Helper for creating a point visualization layer from data and styling options.

Uses the current style to create the underlying source and layers.

-   `[style](#/s:11MapTilerSDK18MTPointLayerHelperC5styleAA7MTStyleCvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var style: MTStyle { get }
    ```
    
-   `[init(_:)](#/s:11MapTilerSDK18MTPointLayerHelperCyAcA7MTStyleCcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(_ style: MTStyle)
    ```
    
-   `[addPoint(_:completionHandler:)](#/s:11MapTilerSDK18MTPointLayerHelperC8addPoint_17completionHandleryAA0dE7OptionsV_ys6ResultOyAA0deL0VAA7MTErrorOGcSgtF)`
    
    Adds a point layer based on the provided options.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addPoint(
        _ options: MTPointLayerOptions,
        completionHandler: ((Result<MTPointLayerResult, MTError>) -> Void)? = nil
    )
    ```
    
-   `[addPoint(_:)](#/s:11MapTilerSDK18MTPointLayerHelperC8addPointyAA0dE6ResultVAA0dE7OptionsVYaKF)` Asynchronous
    
    Adds a point layer based on the provided options.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addPoint(
        _ options: MTPointLayerOptions
    ) async throws -> MTPointLayerResult
    ```
    
-   `[addPoint(_:colorRamp:in:)](#/s:11MapTilerSDK18MTPointLayerHelperC8addPoint_9colorRamp2inAA0dE6ResultVAA0dE7OptionsV_AA07MTColorJ0CAA9MTMapViewCtYaKF)` Asynchronous
    
    Adds a point layer using a ColorRamp for pointColor.
    
    #### Declaration
    
    Swift
    
    ```
    public func addPoint(
        _ options: MTPointLayerOptions,
        colorRamp: MTColorRamp,
        in mapView: MTMapView
    ) async throws -> MTPointLayerResult
    ```
    
-   `[addPoint(_:colorRamp:in:completionHandler:)](#/s:11MapTilerSDK18MTPointLayerHelperC8addPoint_9colorRamp2in17completionHandleryAA0dE7OptionsV_AA07MTColorJ0CAA9MTMapViewCys6ResultOyAA0deR0VAA7MTErrorOGcSgtF)`
    
    Adds a point layer using a ColorRamp for pointColor (completion-based variant).
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addPoint(
        _ options: MTPointLayerOptions,
        colorRamp: MTColorRamp,
        in mapView: MTMapView,
        completionHandler: ((Result<MTPointLayerResult, MTError>) -> Void)? = nil
    )
    ```
    
-   `[removePoint(result:completionHandler:)](#/s:11MapTilerSDK18MTPointLayerHelperC11removePoint6result17completionHandleryAA0dE6ResultV_ys0L0OyytAA7MTErrorOGcSgtF)`
    
    Removes the layers and source created by the `addPoint` helper
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func removePoint(
        result: MTPointLayerResult,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
-   `[removePoint(result:)](#/s:11MapTilerSDK18MTPointLayerHelperC11removePoint6resultyAA0dE6ResultV_tYaKF)` Asynchronous
    
    Removes the layers and source created by the `addPoint` helper
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func removePoint(result: MTPointLayerResult) async throws
    ```
