@syncfusion/ej2-maps 21.1.35 → 21.1.38
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/.eslintrc.json +259 -0
- package/CHANGELOG.md +8 -0
- package/dist/ej2-maps.min.js +2 -2
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +20 -3
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +20 -3
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/maps/maps.js +18 -1
- package/src/maps/user-interaction/selection.js +2 -2
- package/tslint.json +111 -0
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -8842,7 +8842,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8842
8842
|
latLongValue.latitude = -latLongValue.latitude;
|
|
8843
8843
|
}
|
|
8844
8844
|
}
|
|
8845
|
-
else if (targetId.indexOf('_MarkerIndex_') > -1 && this.markerModule) {
|
|
8845
|
+
else if (targetId.indexOf('_MarkerIndex_') > -1 && this.markerModule && !this.markerDragArgument) {
|
|
8846
8846
|
var markerIndex = parseInt(targetId.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
8847
8847
|
var dataIndex = parseInt(targetId.split('_dataIndex_')[1].split('_')[0], 10);
|
|
8848
8848
|
if (!isNaN(markerIndex) && !isNaN(dataIndex)) {
|
|
@@ -8853,6 +8853,23 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8853
8853
|
latLongValue = { latitude: null, longitude: null };
|
|
8854
8854
|
}
|
|
8855
8855
|
}
|
|
8856
|
+
else if (targetId.indexOf('_MarkerIndex_') > -1 && this.markerModule && this.markerDragArgument) {
|
|
8857
|
+
var element = document.getElementById(this.element.id + '_LayerIndex_' + this.markerDragArgument.layerIndex);
|
|
8858
|
+
var elementRect = element.getBoundingClientRect();
|
|
8859
|
+
var location_3 = new MapLocation(pageX > elementRect.left ? Math.abs(elementRect.left - pageX) : 0, pageY > elementRect.top ? Math.abs(elementRect.top - pageY) : 0);
|
|
8860
|
+
var minLongitude = Math.abs((-this.baseMapBounds.longitude.min) * this.mapLayerPanel.currentFactor);
|
|
8861
|
+
var minLatitude = Math.abs(this.baseMapBounds.latitude.max * this.mapLayerPanel.currentFactor);
|
|
8862
|
+
latLongValue = {
|
|
8863
|
+
latitude: Math.abs(this.baseMapBounds.latitude.max - (location_3.y / (this.mapLayerPanel.currentFactor * this.scale))),
|
|
8864
|
+
longitude: Math.abs((location_3.x / (this.mapLayerPanel.currentFactor * this.scale)) + this.baseMapBounds.longitude.min)
|
|
8865
|
+
};
|
|
8866
|
+
if (this.baseMapBounds.longitude.min < 0 && minLongitude > location_3.x) {
|
|
8867
|
+
latLongValue.longitude = -latLongValue.longitude;
|
|
8868
|
+
}
|
|
8869
|
+
if (this.baseMapBounds.latitude.min < 0 && minLatitude > location_3.y) {
|
|
8870
|
+
latLongValue.latitude = -latLongValue.latitude;
|
|
8871
|
+
}
|
|
8872
|
+
}
|
|
8856
8873
|
else {
|
|
8857
8874
|
latLongValue = { latitude: null, longitude: null };
|
|
8858
8875
|
}
|
|
@@ -13679,7 +13696,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
13679
13696
|
this.selectionsettings = this.maps.layers[layerIndex].markerSettings[markerIndex].selectionSettings;
|
|
13680
13697
|
this.selectionType = 'Marker';
|
|
13681
13698
|
}
|
|
13682
|
-
else {
|
|
13699
|
+
else if (targetElement.id.indexOf('NavigationIndex') > -1) {
|
|
13683
13700
|
var index = parseInt(targetElement.id.split('_NavigationIndex_')[1].split('_')[0], 10);
|
|
13684
13701
|
shapeData = null;
|
|
13685
13702
|
data = {
|
|
@@ -13689,7 +13706,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
13689
13706
|
this.selectionsettings = this.maps.layers[layerIndex].navigationLineSettings[index].selectionSettings;
|
|
13690
13707
|
this.selectionType = 'navigationline';
|
|
13691
13708
|
}
|
|
13692
|
-
if (this.selectionsettings.enable) {
|
|
13709
|
+
if (!isNullOrUndefined(this.selectionsettings) && this.selectionsettings.enable) {
|
|
13693
13710
|
this.selectElement(targetElement, layerIndex, data, shapeData);
|
|
13694
13711
|
}
|
|
13695
13712
|
}
|