Skip to content

Instantly share code, notes, and snippets.

@ajturner
Created May 17, 2011 15:35
Show Gist options
  • Save ajturner/976709 to your computer and use it in GitHub Desktop.
Save ajturner/976709 to your computer and use it in GitHub Desktop.
Demonstration of map.getLayers
mymap.getLayers();
var layers = mymap.getLayers();
// Ouput:
// layers = [
// {
// title: "My First Layer",
// source: "finder:45",
// styles: {...},
// opacity: 1,
// visibility: 1,
// order: 1
// }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment