From 8d97b533ef2eca04bf08be959da7661497188197 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 21 Jan 2018 18:49:22 +0100 Subject: Fix declare imagePath after L exists (i.e. after Leaflet is loaded). --- src/js/world-staff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/world-staff.js b/src/js/world-staff.js index f602515..2181881 100644 --- a/src/js/world-staff.js +++ b/src/js/world-staff.js @@ -3,8 +3,8 @@ requirejs(['./slippymap'], function(_foo) { requirejs.config({ baseUrl: '../../js/lib', }); - L.Icon.Default.imagePath = '../../img/leaflet/'; requirejs(['app/mapfactory'], function(mkmap) { + L.Icon.Default.imagePath = '../../img/leaflet/'; var map = mkmap('content'); requirejs([ 'app/places', -- cgit v1.2.3