Skip to content

Commit

Permalink
Merge pull request #467 from BrunoSalerno/leaflet-visualization-marke…
Browse files Browse the repository at this point in the history
…r-path-bug-fixed

leaflet visualization: marker path bug handled
  • Loading branch information
arikfr committed Jul 1, 2015
2 parents e04833c + 3aa1cd0 commit e6650e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rd_ui/app/scripts/visualizations/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@
}).join('');
};


// Following line is used to avoid "Couldn't autodetect L.Icon.Default.imagePath" error
// https://github.com/Leaflet/Leaflet/issues/766#issuecomment-7741039
L.Icon.Default.imagePath = L.Icon.Default.imagePath || "http://api.tiles.mapbox.com/mapbox.js/v2.2.1/images";

function getBounds(e) {
$scope.visualization.options.bounds = $scope.map.getBounds();
Expand Down Expand Up @@ -232,4 +234,4 @@
}
});

})();
})();

0 comments on commit e6650e1

Please sign in to comment.