MadelineProtoDocs/old_docs/API_docs_v95/constructors/pageBlockMap.md

43 lines
1.0 KiB
Markdown
Raw Normal View History

2019-03-29 21:12:30 +01:00
---
title: pageBlockMap
2019-12-27 17:48:04 +01:00
description: A map
2019-03-29 21:12:30 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: pageBlockMap
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
A map
2019-03-29 21:12:30 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Location of the map center|
|zoom|[int](../types/int.md) | Yes|Map zoom level; 13-20|
|w|[int](../types/int.md) | Yes|Map width in pixels before applying scale; 16-102|
|h|[int](../types/int.md) | Yes|Map height in pixels before applying scale; 16-1024|
2019-03-29 21:12:30 +01:00
|caption|[PageCaption](../types/PageCaption.md) | Yes|Caption|
### Type: [PageBlock](../types/PageBlock.md)
### Example:
```php
$pageBlockMap = ['_' => 'pageBlockMap', 'geo' => GeoPoint, 'zoom' => int, 'w' => int, 'h' => int, 'caption' => PageCaption];
```
Or, if you're into Lua:
```lua
pageBlockMap={_='pageBlockMap', geo=GeoPoint, zoom=int, w=int, h=int, caption=PageCaption}
```