.geoObjects.each(function(obj){
        _map.setBounds(obj.getBounds());
        return false;
    });
};
$scope.afterInit = function(map){
    _map=map;
    ymaps.geocode('Арбат').then(
        function(res){
            var geos = [];
            res.geoObjects.each(function(obj){
                //console.log(obj);
                geos.push({
                    geometry:{
                        type:obj.geometry.getType(),
                        coordinates:obj.geometry.getCoordinates()
         