---
title: "addPoint | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

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

# Function addPoint

-   addPoint(  
        map: [Map](https://docs.maptiler.com/sdk-js/api-reference/classes/Map/),  
        options: [PointLayerOptions](https://docs.maptiler.com/sdk-js/api-reference/types/PointLayerOptions/),  
    ): {  
        clusterLayerId: string;  
        labelLayerId: string;  
        pointLayerId: string;  
        pointSourceId: string;  
    }[](#addpoint)
    
    Add a point layer from a GeoJSON source (or an existing sourceId) with many styling options
    
    #### Parameters
    
    -   map: [Map](https://docs.maptiler.com/sdk-js/api-reference/classes/Map/)
        
        The Map instance to add a point layer to
        
    -   options: [PointLayerOptions](https://docs.maptiler.com/sdk-js/api-reference/types/PointLayerOptions/)
    
    #### Returns {  
        clusterLayerId: string;  
        labelLayerId: string;  
        pointLayerId: string;  
        pointSourceId: string;  
    }
    
    -   ##### clusterLayerId: string
        
        ID of the clustered point layer (empty if `cluster` options id `false`)
        
    -   ##### labelLayerId: string
        
        ID of the layer that shows the count of elements in each cluster (empty if `cluster` options id `false`)
        
    -   ##### pointLayerId: string
        
        ID of the unclustered point layer
        
    -   ##### pointSourceId: string
        
        ID of the data source
