Moved a = layer.attributes out of the loop and made more meaningful.
Changed overlay handling so failed layer retrieval doesn't prevent anything else from displaying.
Removed console reference.
Merge pull request #1589 from pjackson28/feature-geomap

Improved a.attributes handling and changed overlay handling so failed layer retrieval doesn't prevent anything else from displaying