Set default image path.

This commit is contained in:
David Molineus
2015-01-06 14:55:12 +01:00
parent 65b9214db1
commit dfb558b655

View File

@@ -12,12 +12,14 @@ L.Contao = L.Class.extend( {
},
getMap: function (id) {
if (typeof (this.map[id]) === 'undefined') {
if (typeof (this.maps[id]) === 'undefined') {
return null;
}
return this.map[id]
return this.maps[id];
}
});
L.Icon.Default.imagePath = 'system/modules/leaflet/assets/leaflet/leaflet/images';
window.ContaoLeaflet = new L.Contao();