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

# Interface SVGAnimatedPreserveAspectRatio

The **`SVGAnimatedPreserveAspectRatio`** interface represents attributes of type SVGPreserveAspectRatio which can be animated.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)

interface SVGAnimatedPreserveAspectRatio {  
    [animVal](#animval): [SVGPreserveAspectRatio](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGPreserveAspectRatio/);  
    [baseVal](#baseval): [SVGPreserveAspectRatio](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGPreserveAspectRatio/);  
}

##### Index

### Properties[](#properties)

[animVal](#animval) [baseVal](#baseval)

## Properties[](#properties-1)

### `Readonly`animVal[](#animval)

animVal: [SVGPreserveAspectRatio](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGPreserveAspectRatio/)

The **`animVal`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the value of the preserveAspectRatio attribute of an SVG element after any animations or transformations are applied.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal)

### `Readonly`baseVal[](#baseval)

baseVal: [SVGPreserveAspectRatio](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.SVGPreserveAspectRatio/)

The **`baseVal`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the base (non-animated) value of the preserveAspectRatio attribute of an SVG element.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal)
