Other great resources: Official JS API docs, Scripting Forum
mapWidth
Overview
Defines the map width, in tiles, as an integer.
A tile is 128 pixels in size. Currently, the largest map can be 256 tiles wide, however most map editors are limited to 250 tiles wide.