---
title: "staticMaps | Client js | Api client"
description: "Documentation for MapTiler Client"
---

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

# Variable staticMaps`Const`

staticMaps: {  
    automatic: (options?: [BoundedStaticMapOptions](https://docs.maptiler.com/client-js/api/types/services_staticMaps.BoundedStaticMapOptions/)) \=> string;  
    bounded: (boundingBox: BBox, options?: [BoundedStaticMapOptions](https://docs.maptiler.com/client-js/api/types/services_staticMaps.BoundedStaticMapOptions/)) \=> string;  
    centered: (  
        center: Position,  
        zoom: number,  
        options?: [StaticMapBaseOptions](https://docs.maptiler.com/client-js/api/types/services_staticMaps.StaticMapBaseOptions/),  
    ) \=> string;  
} = ...

The **staticMaps** namespace contains an synchronous function build image URL of static map, as specified by the [MapTiler Static Map API](https://docs.maptiler.com/cloud/api/static-maps/). The URL of static maps can then be used within a `<img />` markup element, as the `src` property value.

#### Type Declaration

-   ##### automatic: (options?: [BoundedStaticMapOptions](https://docs.maptiler.com/client-js/api/types/services_staticMaps.BoundedStaticMapOptions/)) \=> string
    
-   ##### bounded: (boundingBox: BBox, options?: [BoundedStaticMapOptions](https://docs.maptiler.com/client-js/api/types/services_staticMaps.BoundedStaticMapOptions/)) \=> string
    
-   ##### centered: (center: Position, zoom: number, options?: [StaticMapBaseOptions](https://docs.maptiler.com/client-js/api/types/services_staticMaps.StaticMapBaseOptions/)) \=> string
    

-   Defined in [services/staticMaps.ts:430](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/staticMaps.ts#L430)
