@syncfusion/ej2-maps 23.1.40 → 23.1.44
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/CHANGELOG.md +10 -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 +22 -14
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +21 -13
- 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 +9 -9
- package/src/maps/layers/marker.js +6 -0
- package/src/maps/utils/helper.d.ts +1 -1
- package/src/maps/utils/helper.js +15 -13
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.1.
|
|
3
|
+
* version : 23.1.44
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@23.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@23.1.42",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-eMReu0U+FMB9nMc2I+RJf2VyhZ4R37/vL2ylEP+47XGyayh/tIuke/mRaljMgSHJwrvR5iq5q9fsDgU0oSJpcA==",
|
|
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-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-23.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-23.1.42.tgz",
|
|
27
|
+
"_shasum": "9441e258cd1d01dd7eb2734ddc40a2cd113454eb",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~23.1.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~23.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~23.1.41",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~23.1.43",
|
|
40
40
|
"@syncfusion/ej2-compression": "~23.1.36",
|
|
41
|
-
"@syncfusion/ej2-data": "~23.1.
|
|
41
|
+
"@syncfusion/ej2-data": "~23.1.44",
|
|
42
42
|
"@syncfusion/ej2-file-utils": "~23.1.36",
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~23.1.
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~23.1.43",
|
|
44
44
|
"@syncfusion/ej2-svg-base": "~23.1.36"
|
|
45
45
|
},
|
|
46
46
|
"deprecated": false,
|
|
@@ -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": "23.1.
|
|
96
|
+
"version": "23.1.44",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
|
@@ -280,6 +280,12 @@ var Marker = /** @class */ (function () {
|
|
|
280
280
|
*/
|
|
281
281
|
Marker.prototype.markerClick = function (e) {
|
|
282
282
|
var target = e.target.id;
|
|
283
|
+
if (target.indexOf(this.maps.element.id) === -1) {
|
|
284
|
+
var ancestor = e.target.closest('.' + this.maps.element.id + '_marker_template_element');
|
|
285
|
+
if (!isNullOrUndefined(ancestor) && ancestor.id.indexOf('_MarkerIndex_') > -1) {
|
|
286
|
+
target = ancestor.id;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
283
289
|
if (target.indexOf('_LayerIndex_') === -1 || target.indexOf('_cluster_') > 0) {
|
|
284
290
|
return;
|
|
285
291
|
}
|
|
@@ -385,7 +385,7 @@ export declare function renderTextElement(option: TextOption, style: FontModel,
|
|
|
385
385
|
* @returns {HTMLCollection} Returns the html collection
|
|
386
386
|
* @private
|
|
387
387
|
*/
|
|
388
|
-
export declare function convertElement(element: HTMLCollection, markerId: string, data: any, index: number, mapObj: Maps): HTMLElement;
|
|
388
|
+
export declare function convertElement(element: HTMLCollection, markerId: string, data: any, index: number, mapObj: Maps, templateType: string): HTMLElement;
|
|
389
389
|
/**
|
|
390
390
|
*
|
|
391
391
|
* @param {string} value - Specifies the value
|
package/src/maps/utils/helper.js
CHANGED
|
@@ -699,7 +699,7 @@ export function renderTextElement(option, style, color, parent, isMinus) {
|
|
|
699
699
|
* @private
|
|
700
700
|
*/
|
|
701
701
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
702
|
-
export function convertElement(element, markerId, data, index, mapObj) {
|
|
702
|
+
export function convertElement(element, markerId, data, index, mapObj, templateType) {
|
|
703
703
|
var childElement = createElement('div', {
|
|
704
704
|
id: markerId, className: mapObj.element.id + '_marker_template_element'
|
|
705
705
|
});
|
|
@@ -709,19 +709,21 @@ export function convertElement(element, markerId, data, index, mapObj) {
|
|
|
709
709
|
childElement.appendChild(element[0]);
|
|
710
710
|
elementLength--;
|
|
711
711
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
712
|
+
if (!mapObj.isReact || templateType !== 'function') {
|
|
713
|
+
var templateHtml = childElement.innerHTML;
|
|
714
|
+
var properties = Object.keys(data);
|
|
715
|
+
var regExp = RegExp;
|
|
716
|
+
for (var i = 0; i < properties.length; i++) {
|
|
717
|
+
if (typeof data[properties[i]] === 'object') {
|
|
718
|
+
templateHtml = convertStringToValue(templateHtml, '', data, mapObj);
|
|
719
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
720
|
+
}
|
|
721
|
+
else if (properties[i].toLowerCase() !== 'latitude' && properties[i].toLowerCase() !== 'longitude') {
|
|
722
|
+
templateHtml = templateHtml.replace(new regExp('{{:' + properties[i] + '}}', 'g'), data[properties[i].toString()]);
|
|
723
|
+
}
|
|
722
724
|
}
|
|
725
|
+
childElement.innerHTML = templateHtml;
|
|
723
726
|
}
|
|
724
|
-
childElement.innerHTML = templateHtml;
|
|
725
727
|
return childElement;
|
|
726
728
|
}
|
|
727
729
|
/**
|
|
@@ -1327,7 +1329,7 @@ export function markerTemplate(eventArgs, templateFn, markerID, data, markerInde
|
|
|
1327
1329
|
templateFn = getTemplateFunction(eventArgs.template, maps);
|
|
1328
1330
|
if (templateFn && (templateFn(data, maps, eventArgs.template, maps.element.id + '_MarkerTemplate' + markerIndex, false).length)) {
|
|
1329
1331
|
var templateElement = templateFn(data, maps, eventArgs.template, maps.element.id + '_MarkerTemplate' + markerIndex, false);
|
|
1330
|
-
var markerElement = convertElement(templateElement, markerID, data, markerIndex, maps);
|
|
1332
|
+
var markerElement = convertElement(templateElement, markerID, data, markerIndex, maps, typeof eventArgs.template);
|
|
1331
1333
|
for (var i = 0; i < markerElement.children.length; i++) {
|
|
1332
1334
|
markerElement.children[i].style.pointerEvents = 'auto';
|
|
1333
1335
|
}
|