I’m getting this error in the console:
I am just trying to use a google-places autoform input but the form wont render. Console says:
Uncaught ReferenceError: google is not defined lukemadera_autoform-googleplace.js:263
I’m getting this error in the console:
I am just trying to use a google-places autoform input but the form wont render. Console says:
Uncaught ReferenceError: google is not defined lukemadera_autoform-googleplace.js:263
it was a render issue…
global.js
Template.registerHelper("googleMapsReady", function() {
return GoogleMaps.loaded();
});
routes.js
Router.route("/", {
name: "index",
onBeforeAction: function() {
if (!GoogleMaps.loaded()) {
GoogleMaps.load({
key: Meteor.settings.public.google_maps_key,
libraries: "geometry,places"
});
}
this.next();
},
action: function() {
this.render(“index”);
}
});