SiteWatch API Help

getMaplayers

getMaplayers

Previous topic Next topic  

getMaplayers

Previous topic Next topic  

A method that returns the underlying maplayers of the map.

 

Return

Value

object:

A maplayer array.

 

Example:

var ml = map.getMaplayers();

 

for (var i = 0, c = ml.length; i < c; i++)

{

var my_id = ml[i].id;

var my_name = ml[i].name;

var my_visible = ml[i].visible;

 

if (my_visible)

{

//Your code here!

}

}