After many trial and error, I found a workaround. By simply entering the GoogleMap service into the application launch command, it successfully displayed the full map. I also had to make the default route '/' show the map page. All that I would like to do, related to an attempt to go from the home page (not the map) to the map page, will lead to a partially displayed map .: (
Maybe I or someone will suggest a more elegant solution. :)
// Generated by CoffeeScript 1.6.1 (function() { 'use strict'; angular.module('of4App', []).config(function($routeProvider) { return $routeProvider.when('/menu', { templateUrl: 'views/menu.html', controller: 'MainCtrl' }).when('/list', { templateUrl: 'views/list.html', controller: 'MainCtrl' }).when('/map', { templateUrl: 'views/map.html', controller: 'MapCtrl' }).when('/about', { templateUrl: 'views/main.html', controller: 'MainCtrl' }).otherwise({ redirectTo: '/map' }); }).run(function($rootScope, $location, GoogleMap) { var rootScope; rootScope = $rootScope; rootScope.navBarHeight = 40; return rootScope.mapShown = function() { var mapShown; mapShown = $location.path().indexOf('/map') > -1; return mapShown; }; }); }).call(this);
source share