Let's jump in to using some of the Layer class functions.
You just accessed the
layers property of the global
map object. This is a property of the map object that contains an array of all the layers in the map. The list is ordered by the way you add layers to the map, so the first item in the list corresponds to the first layer we added to the ...