---
title: "ZoomHistory | 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 ZoomHistory

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[first](#first) [lastFloorZoom](#lastfloorzoom) [lastIntegerZoom](#lastintegerzoom) [lastIntegerZoomTime](#lastintegerzoomtime) [lastZoom](#lastzoom)

### Methods[](#methods)

[update](#update)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new ZoomHistory(): ZoomHistory[](#constructorzoomhistory)
    
    #### Returns ZoomHistory
    

## Properties[](#properties-1)

### first[](#first)

first: boolean

### lastFloorZoom[](#lastfloorzoom)

lastFloorZoom: number

### lastIntegerZoom[](#lastintegerzoom)

lastIntegerZoom: number

### lastIntegerZoomTime[](#lastintegerzoomtime)

lastIntegerZoomTime: number

### lastZoom[](#lastzoom)

lastZoom: number

## Methods[](#methods-1)

### update[](#update)

-   update(z: number, now: number): boolean[](#update-1)
    
    #### Parameters
    
    -   z: number
    -   now: number
    
    #### Returns boolean
