diff --git a/package-lock.json b/package-lock.json index 89baa521d87..b4e568efd23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,6 +48,7 @@ "reproject": "^1.2.7", "sanitize-filename": "^1.6.3", "shapefile": "^0.6.6", + "shareon": "^2.5.0", "sphere-knn": "^1.4.0", "topojson-client": "^3.1.0", "topojson-server": "^3.0.1", @@ -14769,6 +14770,16 @@ "shp2json": "bin/shp2json" } }, + "node_modules/shareon": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/shareon/-/shareon-2.5.0.tgz", + "integrity": "sha512-3RaRVy7nyi49IUYXZZkvXcylaQgrtM5ZkG0oRovNJLlf2M2/guYiowzCqtIylhNJCBxT4S+c40qRv0Km6myBSQ==", + "funding": [ + "https://github.com/sponsors/kytta/", + "https://liberapay.com/kytta", + "https://www.paypal.com/paypalme/NickKaramoff" + ] + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", diff --git a/package.json b/package.json index a30175df77f..e84e1d797a3 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "reproject": "^1.2.7", "sanitize-filename": "^1.6.3", "shapefile": "^0.6.6", + "shareon": "^2.5.0", "sphere-knn": "^1.4.0", "topojson-client": "^3.1.0", "topojson-server": "^3.0.1", diff --git a/src/public/src/js/components.js b/src/public/src/js/components.js index b1264862edc..4925657e838 100644 --- a/src/public/src/js/components.js +++ b/src/public/src/js/components.js @@ -10,3 +10,7 @@ import 'bootstrap' import 'leaflet/dist/leaflet' import 'leaflet-defaulticon-compatibility' import 'leaflet-contextmenu/dist/leaflet.contextmenu' + +import * as Shareon from 'shareon' +import 'shareon/css' +Shareon.init() diff --git a/src/views/partials/resultMap.hbs b/src/views/partials/resultMap.hbs index e63eb512f54..c14edb28b60 100644 --- a/src/views/partials/resultMap.hbs +++ b/src/views/partials/resultMap.hbs @@ -1,6 +1,11 @@