I use angularjs and node for my application, and I want to integrate google maps in my app. I use this set of directives http://angular-ui.github.io/angular-google-maps/#!/,
Problem that is showing up is this:
Uncaught Error: [$injector:modulerr] h ttp://errors.angularjs.org/1.6.2/$injector/modulerr?p0=VisualiseATM&p1=Err… at%20Mc%20(http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular.min.js%3A21%3A332)
at angular.min.js:6
at angular.min.js:41
at q (angular.min.js:7)
at g (angular.min.js:40)
at db (angular.min.js:45)
at c (angular.min.js:21)
at Mc (angular.min.js:21)
at qe (angular.min.js:20)
at angular.min.js:331
at HTMLDocument.b (angular.min.js:37)
Specifically, it's problem with:
Module 'uiGmapgoogle-maps' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Here is my angular code:
var app = angular.module("VisualiseATM", [ 'uiGmapgoogle-maps',
'ui.router'
, 'controllers'
, 'ngCookies'
, ]);
app.config(function(uiGmapGoogleMapApiProvider) {
uiGmapGoogleMapApiProvider.configure({
key: 'MY_API_KEY',
v: '3.20', //defaults to latest 3.X anyhow
libraries: 'weather,geometry,visualization'
});
})
app.config(['uiGmapGoogleMapApiProvider', function(GoogleMapApiProviders) {
GoogleMapApiProviders.configure({
china: true
});
}]
);
I found this on internet, but I'm not sure how to use it in my app. https://github.com/angular-ui/angular-google-maps/issues/1489
I'm awared that I have to use this angular-simple-logger, but don't know how to integrate it with my code.
I hope that you'll give me an answer. Thank you a lot!
angular-google-maps.jsinto your document?