<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Map/setRegionAnimated",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instm/mapkit.Map/setRegionAnimated"
  },
  "title" : "setRegionAnimated(region, animated)"
}
-->

# setRegionAnimated(region, animated)

Changes the map’s region to the provided region, with optional animation.

```
setRegionAnimated(region: CoordinateRegionData, animated?: boolean): Map;
```

## Parameters

`region`

A new [`region`](/documentation/MapKitJS/Map/region) for the map to display.

`animate`

A Boolean value that determines whether MapKit JS animates the region change. The default value is `true`.

## Return Value

Returns the map object.

## Discussion

By default, MapKit JS animates the change.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)