diff --git a/index.js b/index.js index 8e4b98eb5..b840be37f 100644 --- a/index.js +++ b/index.js @@ -38,6 +38,15 @@ module.exports = buildEngine({ return trees; }, + treeForLeafletImages: function () { + const leafletImagesPath = path.join(this.pathBase('leaflet'), 'dist', 'images'); + + return new Funnel(leafletImagesPath, { + destDir: 'assets/images', + include: ['marker-icon.png', 'marker-icon-2x.png', 'marker-shadow.png'], + }); + }, + treeForJointJs: function () { const trees = []; @@ -64,12 +73,14 @@ module.exports = buildEngine({ mergeWithPublicTree: function (publicTree) { const leafletTree = this.treeForLeaflet(); + const leafletImagesTree = this.treeForLeafletImages(); const jointJsTree = this.treeForJointJs(); const assetsTree = [ new Funnel(path.join(__dirname, 'assets'), { destDir: '', }), ...leafletTree, + leafletImagesTree, ...jointJsTree, ]; diff --git a/package.json b/package.json index c1593597d..3c80b0604 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "ember-radio-button": "^3.0.0-beta.1", "ember-tag-input": "^3.1.0", "ember-wormhole": "^0.6.0", + "leaflet": "^1.9.4", "leaflet-contextmenu": "^1.4.0", "leaflet-draw": "^1.0.4", "xlsx": "^0.18.5"