app.controller(
    'MapController', function($scope,
                              CatService, FeedSpotService, MapService,
                              Events) {
        console.log("MapController ready");

        MapService.initializeMap();

        // Load cats at the current location
        $scope.$on(Events.MAP_RESIZED,
            function(e, data) {
                CatService.getCats();
                FeedSpotService.getFeedSpots();
            }
        );
    }
);