Skip to content

Commit

Permalink
minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Mar 6, 2015
1 parent 6b70fd7 commit c38571f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eon-map",
"version": "0.1.11",
"version": "0.1.12",
"homepage": "https://github.com/pubnub/eon-map",
"authors": [
"Ian Jennings <ian@meetjennings.com>"
Expand Down
17 changes: 6 additions & 11 deletions pubnub-mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,17 @@ eon.m = {

} else {

if(self.markers[i].lat !== seed[i].latlng[0] ||
self.markers[i].getLatLng().lng !== seed[i].latlng[1]) {

if(animate) {
self.animate(i, seed[i].latlng);
} else {
self.updateMarker(i, seed[i].latlng);
}

if(animate) {
self.animate(i, seed[i].latlng);
} else {
self.updateMarker(i, seed[i].latlng);
}

}

if(typeof seed[i].options !== 'undefined') {

for(j in seed[i].options) {
for(var j in seed[i].options) {

if(j == 'icon') {
self.markers[i].setIcon(L.mapbox.marker.icon(seed[i].options[j]));
Expand Down Expand Up @@ -196,7 +191,7 @@ eon.m = {
return self.map;

}
}
};
eon.map = function(o) {
return new eon.m.create(o);
};

0 comments on commit c38571f

Please sign in to comment.