dburles / meteor-google-maps

🗺 Meteor package for the Google Maps Javascript API v3
https://atmospherejs.com/dburles/google-maps
MIT License
196 stars 49 forks source link

GoogleMaps.initialize is not a function #159

Closed KaitaniLabs closed 2 years ago

KaitaniLabs commented 2 years ago

@dburles

Meteor 2.7.3

Using the following code:

Meteor.startup(function() {
  GoogleMaps.load({ v: '3', key: Meteor.settings.public.GoogleMaps.API, libraries: 'geometry' });
});

Receiving the following error:

message: "GoogleMaps.initialize is not a function" name: "InvalidValueError"

Any idea why this might be happening?

KaitaniLabs commented 2 years ago

Turns out I was using it inside another package and didn't utilise api.imply so it wasn't global.