mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
34 lines
991 B
Markdown
34 lines
991 B
Markdown
---
|
|
title: "pageBlockMap"
|
|
description: "A map"
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: pageBlockMap
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
A map
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|geo|[GeoPoint](/API_docs/types/GeoPoint.html) | Optional|Location of the map center|
|
|
|zoom|[int](/API_docs/types/int.html) | Yes|Map zoom level; 13-20|
|
|
|w|[int](/API_docs/types/int.html) | Yes|Map width in pixels before applying scale; 16-102|
|
|
|h|[int](/API_docs/types/int.html) | Yes|Map height in pixels before applying scale; 16-1024|
|
|
|caption|[PageCaption](/API_docs/types/PageCaption.html) | Yes|Caption|
|
|
|
|
|
|
|
|
### Type: [PageBlock](/API_docs/types/PageBlock.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$pageBlockMap = ['_' => 'pageBlockMap', 'geo' => GeoPoint, 'zoom' => int, 'w' => int, 'h' => int, 'caption' => PageCaption];
|
|
```
|