MadelineProtoDocs/old_docs/API_docs_v91/constructors/pageBlockMap.md
2019-12-27 17:48:04 +01:00

1.0 KiB

title description image
pageBlockMap A map https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pageBlockMap

Back to constructors index

A map

Attributes:

Name Type Required Description
geo GeoPoint Optional Location of the map center
zoom int Yes Map zoom level; 13-20
w int Yes Map width in pixels before applying scale; 16-102
h int Yes Map height in pixels before applying scale; 16-1024
caption PageCaption Yes Caption

Type: PageBlock

Example:

$pageBlockMap = ['_' => 'pageBlockMap', 'geo' => GeoPoint, 'zoom' => int, 'w' => int, 'h' => int, 'caption' => PageCaption];

Or, if you're into Lua:

pageBlockMap={_='pageBlockMap', geo=GeoPoint, zoom=int, w=int, h=int, caption=PageCaption}