mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-01 12:33:45 +01:00
Set default image path.
This commit is contained in:
@@ -12,12 +12,14 @@ L.Contao = L.Class.extend( {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getMap: function (id) {
|
getMap: function (id) {
|
||||||
if (typeof (this.map[id]) === 'undefined') {
|
if (typeof (this.maps[id]) === 'undefined') {
|
||||||
return null;
|
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();
|
window.ContaoLeaflet = new L.Contao();
|
||||||
|
|||||||
Reference in New Issue
Block a user