diff --git a/gpx.js b/gpx.js index 8855a07..dd974b7 100644 --- a/gpx.js +++ b/gpx.js @@ -404,8 +404,8 @@ L.GPX = L.FeatureGroup.extend({ } else if (wptIconUrls && wptIconUrls[symKey]){ symIcon = new L.GPXTrackIcon({iconUrl: wptIconUrls[symKey]}); } else if (wptIconTypeUrls && wptIconTypeUrls[typeKey]){ - symIcon = new L.GPXTrackIcon({iconUrl: wptIconTypeUrls[typeKey]}); - } else if (wptIcons && wptIcons['']) { + symIcon = new L.GPXTrackIcon({iconUrl: wptIconTypeUrls[typeKey]}); + } else if (wptIcons && wptIcons['']) { symIcon = wptIcons['']; } else if (wptIconUrls && wptIconUrls['']) { symIcon = new L.GPXTrackIcon({iconUrl: wptIconUrls['']}); @@ -614,4 +614,4 @@ if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = L; } else if (typeof define === 'function' && define.amd) { define(L); -} \ No newline at end of file +}