-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0713fc9
commit 0c9e0de
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Mapbox.js for [Meteor](https://www.meteor.com/) apps. Current Mapbox version: `2 | |
## Install | ||
|
||
$ cd to/my/meteor/project | ||
$ meteor add pauloborges:[email protected].4_2 | ||
$ meteor add pauloborges:[email protected].4_3 | ||
|
||
or (if you want to modify the code): | ||
|
||
|
@@ -56,7 +56,7 @@ check if it finished loading. This function is reactive. | |
var map = L.mapbox.map('map', MY_MAP_ID); | ||
} | ||
}); | ||
|
||
|
||
// Using a template's rendered callback | ||
Meteor.startup(function(){ | ||
|
@@ -66,9 +66,8 @@ check if it finished loading. This function is reactive. | |
Template.Map.rendered = function () { | ||
this.autorun(function () { | ||
if (Mapbox.loaded()) { | ||
L.mapbox.accessToken = TOKEN; | ||
L.mapbox.accessToken = TOKEN; | ||
var map = L.mapbox.map('map', MAP_ID); | ||
} | ||
}); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters