pauloborges / meteor-mapbox

Mapbox.js for Meteor apps
43 stars 34 forks source link

Using with urigo:angular-meteor #6

Closed dagatsoin closed 9 years ago

dagatsoin commented 9 years ago

Hi, I tried to use meteor-mapbox with urigo:angular-meteor plugin. But I am stuck at the beginning. I have put this in server/startup folder.

Meteor.startup(function(){
    Mapbox.load();
});

But I get the error in the terminal ReferenceError: Mapbox is not defined (NB : The plugin is already added.)

Have you an idea on this ?

pauloborges commented 9 years ago

Hi! You have to call Mapbox.load() from your client code, not from the server.

dagatsoin commented 9 years ago

facepalm thx :+1: