Skip to content

Commit

Permalink
Merge pull request #276 from mapzen/hanb/image-path-fix
Browse files Browse the repository at this point in the history
Image path fix
  • Loading branch information
hanbyul-here authored Oct 19, 2016
2 parents 3c1fdd9 + 04e9a3b commit a7dab64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/mapzen.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ L.Mapzen = module.exports = {
};

// Set Icon Path manually (Leaflet detects the path based on where Leaflet script is)
L.Icon.Default.imagePath = 'https://mapzen.com/js/images';
// Leaflet 0.7 and < 1.0 handle image path differently
if (parseFloat(L.version.substring(0,3)) < 1.0) L.Icon.Default.imagePath = 'https://mapzen.com/js/images';
else L.Icon.Default.prototype.options.imagePath = 'https://mapzen.com/js/images/';

0 comments on commit a7dab64

Please sign in to comment.