浏览代码

Added explicit path to leaflet markers

Rashid Khan 12 年之前
父节点
当前提交
d071f3cb4d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/app/panels/bettermap/module.js

+ 2 - 2
src/app/panels/bettermap/module.js

@@ -194,7 +194,7 @@ function (angular, app, _, L, localRequire) {
         function render_panel() {
           scope.require(['./leaflet/plugins'], function () {
             scope.panelMeta.loading = false;
-
+            L.Icon.Default.imagePath = 'app/panels/bettermap/leaflet/images';
             if(_.isUndefined(map)) {
               map = L.map(attrs.id, {
                 scrollWheelZoom: false,
@@ -228,4 +228,4 @@ function (angular, app, _, L, localRequire) {
     };
   });
 
-});
+});