# Field

### Introduction

Provided below are all the attribute values pertaining to Map. Currently, the Map’s width and height fields cannot be seen.

🔒 Fields with this icon are read-only fields that cannot be revised.

<table><thead><tr><th width="180">Name</th><th>Description</th></tr></thead><tbody><tr><td>🔒 width</td><td>Calls the map’s width value.</td></tr><tr><td>🔒 height</td><td>Calls the map’s height value.</td></tr></tbody></table>

## 📚 API Explanation and Example

### width & height

{% hint style="info" %}
Map.width : Number \
Map.height : Number
{% endhint %}

Calls the map’s width and height values.

**Example**

Display the map’s width and height values on the chat screen.

```jsx
// Activates function when q is pressed  
// **[App.addOnKeyDown Description (Link)](https://www.notion.so/Callbacks-7ac5078bab7c4f3180ae05463713581d)**
App.addOnKeyDown(81, function (player) {
	App.sayToAll(`map's horizontal size: ${Map.width}`);
	App.sayToAll(`map's vertical size: ${Map.height}`);
});
```
