Skip to content
Casey Baxter edited this page Oct 11, 2012 · 3 revisions

The draw range (also called the view) of the map is a rectangle shape that represents the viewing area of the screen. Tiles that are outside of this range are not drawn. Using the draw range can dramatically increase the performance of map rendering.

The draw range is calculated using the Map values viewX, viewY, viewW, viewH, viewPadding, viewSpacing, offsetX, and offsetY. Once the view is calculated it is then applied to all TileLayers which use it to find which tiles are seen in the draw range. TileLayers will only draw those tiles.

###See Also Map