---
title: "SubdivisionGranularityExpression | 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.

# Class SubdivisionGranularityExpression

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Methods[](#methods)

[getGranularityForZoomLevel](#getgranularityforzoomlevel)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new SubdivisionGranularityExpression(  
        baseZoomGranularity: number,  
        minGranularity: number,  
    ): SubdivisionGranularityExpression[](#constructorsubdivisiongranularityexpression)
    
    #### Parameters
    
    -   baseZoomGranularity: number
    -   minGranularity: number
    
    #### Returns SubdivisionGranularityExpression
    

## Methods[](#methods-1)

### getGranularityForZoomLevel[](#getgranularityforzoomlevel)

-   getGranularityForZoomLevel(zoomLevel: number): number[](#getgranularityforzoomlevel-1)
    
    #### Parameters
    
    -   zoomLevel: number
    
    #### Returns number
