@artstesh/maps 1.1.16 → 1.1.17
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/bundles/maps-components-src-map.umd.js +15 -0
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +15 -0
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/map-plate/map-plate.factory.service.js +3 -1
- package/dist/esm2015/map/models/map-settings.js +15 -1
- package/dist/esm2015/src/map/map-plate/map-plate.factory.service.js +3 -1
- package/dist/esm2015/src/map/models/map-settings.js +15 -1
- package/dist/fesm2015/maps-components-src-map.js +16 -1
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +16 -1
- package/dist/fesm2015/maps-components.js.map +1 -1
- package/dist/map/models/map-settings.d.ts +10 -0
- package/dist/package.json +1 -1
- package/dist/src/map/models/map-settings.d.ts +10 -0
- package/package.json +2 -2
|
@@ -553,6 +553,7 @@
|
|
|
553
553
|
this.zoom = 4;
|
|
554
554
|
this.lyrs = exports.MapLyrs.Hybrid;
|
|
555
555
|
this.language = 'en';
|
|
556
|
+
this.interactionSettings = {};
|
|
556
557
|
}
|
|
557
558
|
MapSettings.copy = function (model) {
|
|
558
559
|
var result = new MapSettings();
|
|
@@ -561,9 +562,20 @@
|
|
|
561
562
|
result.minZoom = model.minZoom;
|
|
562
563
|
result.zoom = model.zoom;
|
|
563
564
|
result.lyrs = model.lyrs;
|
|
565
|
+
result.interactionSettings = model.interactionSettings;
|
|
564
566
|
result.language = model.language;
|
|
565
567
|
return result;
|
|
566
568
|
};
|
|
569
|
+
/**
|
|
570
|
+
* Updates the interaction settings of the map and returns a new MapSettings instance
|
|
571
|
+
* with the updated settings.
|
|
572
|
+
*
|
|
573
|
+
* @param {DefaultsOptions} interactionSettings - The new interaction settings to be applied.
|
|
574
|
+
* @return {MapSettings} A new MapSettings instance with the updated interaction settings.
|
|
575
|
+
*/
|
|
576
|
+
MapSettings.prototype.setInteractionSettings = function (interactionSettings) {
|
|
577
|
+
return MapSettings.copy(Object.assign(Object.assign({}, this), { interactionSettings: interactionSettings }));
|
|
578
|
+
};
|
|
567
579
|
/**
|
|
568
580
|
* Sets the center for the map settings.
|
|
569
581
|
*
|
|
@@ -635,6 +647,8 @@
|
|
|
635
647
|
return false;
|
|
636
648
|
if (this.language !== model.language)
|
|
637
649
|
return false;
|
|
650
|
+
if (this.interactionSettings !== model.interactionSettings)
|
|
651
|
+
return false;
|
|
638
652
|
return this.center.length === model.center.length && !this.center.filter(function (c, i) { return c !== model.center[i]; }).length;
|
|
639
653
|
};
|
|
640
654
|
return MapSettings;
|
|
@@ -2725,6 +2739,7 @@
|
|
|
2725
2739
|
maxZoom: (settings === null || settings === void 0 ? void 0 : settings.maxZoom) || 19,
|
|
2726
2740
|
}),
|
|
2727
2741
|
layers: [],
|
|
2742
|
+
interactions: interaction.defaults(settings.interactionSettings),
|
|
2728
2743
|
});
|
|
2729
2744
|
};
|
|
2730
2745
|
return MapPlateFactory;
|