@artstesh/maps 1.1.16 → 1.1.18
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 +21 -0
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +21 -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/index.js +2 -1
- package/dist/esm2015/map/models/map-settings.js +15 -1
- package/dist/esm2015/map/models/polygon.model.js +8 -1
- package/dist/esm2015/src/map/map-plate/map-plate.factory.service.js +3 -1
- package/dist/esm2015/src/map/models/index.js +2 -1
- package/dist/esm2015/src/map/models/map-settings.js +15 -1
- package/dist/esm2015/src/map/models/polygon.model.js +8 -1
- package/dist/fesm2015/maps-components-src-map.js +26 -6
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +26 -6
- package/dist/fesm2015/maps-components.js.map +1 -1
- package/dist/map/models/index.d.ts +1 -0
- package/dist/map/models/map-settings.d.ts +10 -0
- package/dist/map/models/polygon.model.d.ts +3 -0
- package/dist/package.json +1 -1
- package/dist/src/map/models/index.d.ts +1 -0
- package/dist/src/map/models/map-settings.d.ts +10 -0
- package/dist/src/map/models/polygon.model.d.ts +3 -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;
|
|
@@ -718,6 +732,11 @@
|
|
|
718
732
|
feature.setId(id);
|
|
719
733
|
return new PolygonModel(feature, id, info);
|
|
720
734
|
};
|
|
735
|
+
PolygonModel.circle = function (id, lat, lng, radius, info) {
|
|
736
|
+
var feature = new ol.Feature(new geom.Circle([lng, lat], radius));
|
|
737
|
+
feature.setId(id);
|
|
738
|
+
return new PolygonModel(feature, id, info);
|
|
739
|
+
};
|
|
721
740
|
return PolygonModel;
|
|
722
741
|
}());
|
|
723
742
|
|
|
@@ -2725,6 +2744,7 @@
|
|
|
2725
2744
|
maxZoom: (settings === null || settings === void 0 ? void 0 : settings.maxZoom) || 19,
|
|
2726
2745
|
}),
|
|
2727
2746
|
layers: [],
|
|
2747
|
+
interactions: interaction.defaults(settings.interactionSettings),
|
|
2728
2748
|
});
|
|
2729
2749
|
};
|
|
2730
2750
|
return MapPlateFactory;
|
|
@@ -3522,6 +3542,7 @@
|
|
|
3522
3542
|
exports.GetFeaturesInPointQuery = GetFeaturesInPointQuery;
|
|
3523
3543
|
exports.GetMapPositionExecutor = GetMapPositionExecutor;
|
|
3524
3544
|
exports.MapClickEvent = MapClickEvent;
|
|
3545
|
+
exports.MapConstants = MapConstants;
|
|
3525
3546
|
exports.MapControl = MapControl;
|
|
3526
3547
|
exports.MapControlZoomComponent = MapControlZoomComponent;
|
|
3527
3548
|
exports.MapLyrsLabel = MapLyrsLabel;
|