From dfb558b655569c1ca42de6e1e25d76530a458273 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Tue, 6 Jan 2015 14:55:12 +0100 Subject: [PATCH] Set default image path. --- module/assets/js/contao-leaflet.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/assets/js/contao-leaflet.js b/module/assets/js/contao-leaflet.js index 5ee9d9b..cede4e6 100644 --- a/module/assets/js/contao-leaflet.js +++ b/module/assets/js/contao-leaflet.js @@ -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();