@syncfusion/ej2-maps 20.4.38 → 20.4.40

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.4.38
3
+ * version : 20.4.40
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-maps@*",
3
- "_id": "@syncfusion/ej2-maps@16.41.15",
3
+ "_id": "@syncfusion/ej2-maps@20.4.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-AJeqU+5oKxydk2JxnnlmjkQJKj7Tfc1E2JmVBTHThnYmGITjVcXpAQjZXL+KZF+KfO5VjCoXk6k2xqS71MpuKg==",
5
+ "_integrity": "sha512-TH0dxa2Csh7v1sPf5o9M+jb/cC1ETE/UGwP7jI3lTF205CryE9vgFj3S1GAiQAWYhHjplmjIT+ZBljVE34LlBA==",
6
6
  "_location": "/@syncfusion/ej2-maps",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-maps",
24
24
  "/@syncfusion/ej2-vue-maps"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-maps/-/ej2-maps-16.41.15.tgz",
27
- "_shasum": "0509b31a50ba9ceb45a7f9bba8a1bc054b018ceb",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.4.38.tgz",
27
+ "_shasum": "250b32850a0db25e999cb2c563a4955b5b780a35",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.4.38",
39
- "@syncfusion/ej2-buttons": "~20.4.38",
40
- "@syncfusion/ej2-compression": "~20.4.38",
41
- "@syncfusion/ej2-data": "~20.4.38",
42
- "@syncfusion/ej2-file-utils": "~20.4.38",
43
- "@syncfusion/ej2-pdf-export": "~20.4.38",
44
- "@syncfusion/ej2-svg-base": "~20.4.38"
38
+ "@syncfusion/ej2-base": "~20.4.40",
39
+ "@syncfusion/ej2-buttons": "~20.4.40",
40
+ "@syncfusion/ej2-compression": "~20.4.40",
41
+ "@syncfusion/ej2-data": "~20.4.40",
42
+ "@syncfusion/ej2-file-utils": "~20.4.40",
43
+ "@syncfusion/ej2-pdf-export": "~20.4.40",
44
+ "@syncfusion/ej2-svg-base": "~20.4.40"
45
45
  },
46
46
  "deprecated": false,
47
47
  "description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
48
48
  "devDependencies": {},
49
49
  "es2015": "./dist/es6/ej2-maps.es5.js",
50
- "homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
50
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
51
51
  "keywords": [
52
52
  "ej2",
53
53
  "syncfusion",
@@ -93,6 +93,6 @@
93
93
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
94
94
  },
95
95
  "typings": "index.d.ts",
96
- "version": "20.4.38",
96
+ "version": "20.4.40",
97
97
  "sideEffects": false
98
98
  }
@@ -1812,12 +1812,25 @@ var Legend = /** @class */ (function () {
1812
1812
  }
1813
1813
  if (targetEle !== null) {
1814
1814
  legendShapeId = querySelector(this.maps.element.id + '_Legend_Shape_Index_' + legendIndex, this.maps.element.id);
1815
- legendShapeId.setAttribute('fill', '#E5E5E5');
1816
- if (this.maps.legendSettings.shape === 'HorizontalLine' || this.maps.legendSettings.shape === 'VerticalLine' || this.maps.legendSettings.shape === 'Cross') {
1817
- legendShapeId.setAttribute('stroke', '#E5E5E5');
1818
- }
1819
1815
  legendTextId = querySelector(this.maps.element.id + '_Legend_Text_Index_' + legendIndex, this.maps.element.id);
1820
- legendTextId.setAttribute('fill', '#E5E5E5');
1816
+ if (!this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
1817
+ legendShapeId.setAttribute('fill', legendToggleFill);
1818
+ legendShapeId.setAttribute('fill-opacity', (legendToggleOpacity).toString());
1819
+ legendShapeId.setAttribute('stroke', legendToggleBorderColor);
1820
+ legendShapeId.setAttribute('stroke-width', (legendToggleBorderWidth).toString());
1821
+ legendShapeId.setAttribute('stroke-opacity', (legendToggleBorderOpacity).toString());
1822
+ legendTextId.setAttribute('fill', legendToggleFill);
1823
+ }
1824
+ else {
1825
+ legendTextId.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
1826
+ legendShapeId.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
1827
+ legendShapeId.setAttribute('stroke', this.maps.layers[k].shapeSettings.border.color);
1828
+ legendShapeId.setAttribute('fill-opacity', (this.maps.layers[k].shapeSettings.opacity).toString());
1829
+ legendShapeId.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width) ? 0 : this.maps.layers[k].shapeSettings.border.width).toString());
1830
+ legendShapeId.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.opacity) ?
1831
+ this.maps.layers[k].shapeSettings.opacity :
1832
+ this.maps.layers[k].shapeSettings.border.opacity).toString());
1833
+ }
1821
1834
  }
1822
1835
  }
1823
1836
  else {
@@ -1830,6 +1843,10 @@ var Legend = /** @class */ (function () {
1830
1843
  if (targetEle !== null) {
1831
1844
  legendShapeId = querySelector(this.maps.element.id + '_Legend_Shape_Index_' + legendIndex, this.maps.element.id);
1832
1845
  legendShapeId.setAttribute('fill', this.legendCollection[legendIndex]['fill']);
1846
+ legendShapeId.setAttribute('fill-opacity', this.legendCollection[legendIndex]['opacity']);
1847
+ legendShapeId.setAttribute('stroke', this.legendCollection[legendIndex]['shapeBorder']['color']);
1848
+ legendShapeId.setAttribute('stroke-width', this.legendCollection[legendIndex]['shapeBorder']['width']);
1849
+ legendShapeId.setAttribute('stroke-opacity', this.legendCollection[legendIndex]['shapeBorder']['opacity']);
1833
1850
  if (this.maps.legendSettings.shape === 'HorizontalLine' || this.maps.legendSettings.shape === 'VerticalLine' || this.maps.legendSettings.shape === 'Cross') {
1834
1851
  legendShapeId.setAttribute('stroke', this.legendCollection[legendIndex]['fill']);
1835
1852
  }
@@ -1956,9 +1973,25 @@ var Legend = /** @class */ (function () {
1956
1973
  }
1957
1974
  if (targetEle !== null) {
1958
1975
  legendTextId = querySelector(this.maps.element.id + '_Legend_Index_' + legendIndex + '_Text', this.maps.element.id);
1959
- legendTextId.setAttribute('fill', '#E5E5E5');
1960
1976
  legendShapeId = querySelector(this.maps.element.id + '_Legend_Index_' + legendIndex, this.maps.element.id);
1961
- legendShapeId.setAttribute('fill', '#E5E5E5');
1977
+ if (!this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
1978
+ legendTextId.setAttribute('fill', legendToggleFill);
1979
+ legendShapeId.setAttribute('fill', legendToggleFill);
1980
+ legendShapeId.setAttribute('fill-opacity', (legendToggleOpacity).toString());
1981
+ legendShapeId.setAttribute('stroke', legendToggleBorderColor);
1982
+ legendShapeId.setAttribute('stroke-width', (legendToggleBorderWidth).toString());
1983
+ legendShapeId.setAttribute('stroke-opacity', (legendToggleBorderOpacity).toString());
1984
+ }
1985
+ else {
1986
+ legendTextId.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
1987
+ legendShapeId.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
1988
+ legendShapeId.setAttribute('stroke', this.maps.layers[k].shapeSettings.border.color);
1989
+ legendShapeId.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width) ? 0 : this.maps.layers[k].shapeSettings.border.width).toString());
1990
+ legendShapeId.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.opacity) ?
1991
+ this.maps.layers[k].shapeSettings.opacity :
1992
+ this.maps.layers[k].shapeSettings.border.opacity).toString());
1993
+ legendShapeId.setAttribute('fill-opacity', (this.maps.layers[k].shapeSettings.opacity).toString());
1994
+ }
1962
1995
  }
1963
1996
  }
1964
1997
  else {
@@ -1971,6 +2004,10 @@ var Legend = /** @class */ (function () {
1971
2004
  if (targetEle !== null) {
1972
2005
  legendShapeId = querySelector(this.maps.element.id + '_Legend_Index_' + legendIndex, this.maps.element.id);
1973
2006
  legendShapeId.setAttribute('fill', this.legendCollection[legendIndex]['fill']);
2007
+ legendShapeId.setAttribute('fill-opacity', this.legendCollection[legendIndex]['opacity']);
2008
+ legendShapeId.setAttribute('stroke', this.legendCollection[legendIndex]['shapeBorder']['color']);
2009
+ legendShapeId.setAttribute('stroke-width', this.legendCollection[legendIndex]['shapeBorder']['width']);
2010
+ legendShapeId.setAttribute('stroke-opacity', this.legendCollection[legendIndex]['shapeBorder']['opacity']);
1974
2011
  legendTextId = querySelector(this.maps.element.id + '_Legend_Index_' + legendIndex + '_Text', this.maps.element.id);
1975
2012
  legendTextId.setAttribute('fill', '#757575');
1976
2013
  }
package/src/maps/maps.js CHANGED
@@ -1154,7 +1154,7 @@ var Maps = /** @class */ (function (_super) {
1154
1154
  };
1155
1155
  Maps.prototype.removeTileMap = function () {
1156
1156
  var animateElement = document.getElementById(this.element.id + '_animated_tiles');
1157
- if (!isNullOrUndefined(this.currentTiles) && animateElement.childElementCount !== this.currentTiles.childElementCount) {
1157
+ if (!isNullOrUndefined(this.currentTiles) && animateElement.childElementCount < this.currentTiles.childElementCount) {
1158
1158
  for (var l = animateElement.childElementCount - 1; l >= this.currentTiles.childElementCount; l--) {
1159
1159
  animateElement.removeChild(animateElement.children[l]);
1160
1160
  }
@@ -405,7 +405,8 @@ var Zoom = /** @class */ (function () {
405
405
  this.index = layerElement.id.indexOf('_LayerIndex_') > -1 && parseFloat(layerElement.id.split('_LayerIndex_')[1].split('_')[0]);
406
406
  this.currentLayer = maps.layersCollection[this.index];
407
407
  var factor = maps.mapLayerPanel.calculateFactor(this.currentLayer);
408
- for (var j = 0; j < layerElement.childElementCount; j++) {
408
+ var elementCount = layerElement.childElementCount;
409
+ for (var j = 0; j < elementCount; j++) {
409
410
  var currentEle = layerElement.childNodes[j];
410
411
  if (!(currentEle.id.indexOf('_Markers_Group') > -1) && (!(currentEle.id.indexOf('_bubble_Group') > -1))
411
412
  && (!(currentEle.id.indexOf('_dataLableIndex_Group') > -1))) {