Skip to content
Paul Spencer edited this page Jul 8, 2013 · 4 revisions

Module | Error | Map | Layer

Layer API

A layer object represents a LAYER block in a map file and has the following methods and properties for manipulating it:

Properties:

  • name - read/write string, the name of the layer.
  • status - read/write integer, the status of the layer for rendering, can be MS_ON, MS_OFF, MS_DEFAULT or MS_DELETE.

Methods:

getGridIntersectionCoordinates()

Returns an object containing grid intersection coordinates for the four sides of the map plus associated labels. See tests for an example.

Clone this wiki locally