JS API
Map Object
QueryEngine Object
Layer Object
Feature Object
Query Object
GeoJson Function Library (Experimental)

getLayers

Returns a list of information about the layers associated with the map.

Parameters

No parameters.

Example

var map = new Mapzania.Map("map-div", "WORLD", function(){
  var layers = map.getLayers();
  console.log(layers);
});
//OUTPUT
[
  {
    key:"STREETS",
    name:"Street Layer",
    ordinal:0,
    visible:true
  },
  {
    key:"SUBURBS",
    name:"Suburb Layer",
    ordinal:1,
    visible:false
  }
]