svgmap 2.18.2 → 2.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/svg-map.umd.js +3 -1
- package/dist/svg-map.umd.js.map +1 -1
- package/dist/svg-map.umd.min.js +1 -1
- package/dist/svgMap.js +3 -1
- package/dist/svgMap.js.map +1 -1
- package/dist/svgMap.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/svg-map.js +3 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const svgPanZoom = require('svg-pan-zoom');
|
|
4
|
+
|
|
3
5
|
class svgMap {
|
|
4
6
|
constructor(options = {}) {
|
|
5
7
|
const defaultOptions = {
|
|
@@ -1154,7 +1156,7 @@ class svgMap {
|
|
|
1154
1156
|
var me = this;
|
|
1155
1157
|
|
|
1156
1158
|
// Init pan zoom
|
|
1157
|
-
this.mapPanZoom = svgPanZoom(this.mapImage, {
|
|
1159
|
+
this.mapPanZoom = svgPanZoom.svgPanZoom(this.mapImage, {
|
|
1158
1160
|
zoomEnabled: this.options.allowInteraction,
|
|
1159
1161
|
panEnabled: this.options.allowInteraction,
|
|
1160
1162
|
fit: true,
|