Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

With angular 1.4.9: TypeError: Cannot read property 'exp' of undefined #1728

Closed
@kheaactua

Description

@kheaactua

With Angular 1.4.9, I'm getting the error:

TypeError: Cannot read property 'exp' of undefined
    at angular-google-maps.js:6874
    at m.$digest (angular.js:16664)
    at angular.js:16859
    at e (angular.js:5804)
    at angular.js:6081

I load the maps with:

.config(['$routeProvider', 'uiGmapGoogleMapApiProvider',
  function($routeProvider, uiGmapGoogleMapApiProvider) {
     // ...
        uiGmapGoogleMapApiProvider.configure({
            //    key: 'your api key',
            v: '3.20', //defaults to latest 3.X anyhow
            libraries: 'weather,geometry,visualization'
        });
  }])

Then in my controller I have:

$scope.map = { 'center': { 'latitude': 45, 'longitude': 73 }, 'zoom': 15 };
uiGmapGoogleMapApi.then(function(maps) { });

And in my view I have:

<ui-gmap-google-map center="map.center" zoom="map.zoom" options="map.options"></ui-gmap-google-map>

Pretty basic. Google shows me similar issues with other libs that are based on version discrepancies. My bower file has:

  "dependencies": {
    "lovefield": "^2.1.6",
    "jQuery": "1.12.0",
    "angular-route": "^1.4.9",
    "angular-moment": "^0.10.3",
    "moment": "^2.11.1",
    "d3": "^3.5.14",
    "angular-simple-logger": "^0.1.7",
    "angular-google-maps": "^2.3.1",
    "angular": "^1.4.9",
    "bootstrap": "^3.3.6",
    "nouislider": "^8.2.1",
    "reset-css": "^2.0.2011012603"
  }

With Angular ^1.2, this problem doesn't occur. Is there a way to get this working with Angular 1.4.9?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions