javascript – uiGmapGoogleMapApi.then not running on Android

javascript – uiGmapGoogleMapApi.then not running on Android

It may or may not be due to the minification. When minifying, you have to use array injection syntax:

.controller(WeatherController, [
  $scope,
  uiGmapGoogleMapApi,
  function ($scope, uiGmapGoogleMapApi) {
      console.log(WeatherController);
      uiGmapGoogleMapApi.then(function(maps) {
          console.log(maps API loaded; creating map);
          $scope.map = { center: { latitude: 45, longitude: -73 }, zoom: 8 };
      });
  }
]);

You are already using this syntax when declaring your main module starter.

javascript – uiGmapGoogleMapApi.then not running on Android

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *