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

# equals(anotherSize)

Compares the sizes of two maps and indicates whether they’re of equal value.

```
equals(anotherSize: MapSize): boolean;
```

## Parameters

`anotherSize`

The map size to use for comparison.

## Return Value

Returns `true` if the `width` and `height` values of a map size exactly match the corresponding values of `anotherSize`. Returns `false` if the values aren’t an exact match.

---

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)