At the moment the only way to access layers, object groups and objects is via their attributes (map.layers[index], map.objectgroups[index] or map.objectgroups[index1].objects[index2]). It would be nice to access them like this:
var layer = map.getLayerByName("fancylayer");
var objectgroup = map.getObjectGroupByName("fancyog");
var object = map.getObjectByName("super_fancy_object");
At the moment the only way to access layers, object groups and objects is via their attributes (map.layers[index], map.objectgroups[index] or map.objectgroups[index1].objects[index2]). It would be nice to access them like this: