@syncfusion/ej2-maps 28.1.38 → 28.2.3
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/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 +19 -4
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +20 -4
- 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/layers/legend.js +7 -3
- package/src/maps/model/base-model.d.ts +2 -2
- package/src/maps/model/base.d.ts +2 -2
- package/src/maps/utils/helper.d.ts +16 -0
- package/src/maps/utils/helper.js +13 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.
|
|
3
|
+
* version : 28.2.3
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@28.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ddDdmIsdDFSF2y4GSLRiLbX48FcIJzGVQkUAd3NrW447N+Z9RdH0nsPrSKJk2EgcRy38pdqcZscqBpsvkczf2Q==",
|
|
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-28.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-28.1.38.tgz",
|
|
27
|
+
"_shasum": "f23c26822ead30c099493aea92cd2d97b5780651",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~28.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~28.
|
|
40
|
-
"@syncfusion/ej2-compression": "~28.
|
|
41
|
-
"@syncfusion/ej2-data": "~28.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~28.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~28.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~28.
|
|
38
|
+
"@syncfusion/ej2-base": "~28.2.3",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~28.2.3",
|
|
40
|
+
"@syncfusion/ej2-compression": "~28.2.3",
|
|
41
|
+
"@syncfusion/ej2-data": "~28.2.3",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~28.2.3",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~28.2.3",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~28.2.3"
|
|
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",
|
|
@@ -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": "28.
|
|
96
|
+
"version": "28.2.3",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
|
@@ -200,7 +200,7 @@ var Legend = /** @class */ (function () {
|
|
|
200
200
|
else {
|
|
201
201
|
legendText = '';
|
|
202
202
|
}
|
|
203
|
-
if (legend.position === 'Left' || legend.position === 'Right') {
|
|
203
|
+
if (legend.position === 'Left' || legend.position === 'Right' || legend.position === 'Float') {
|
|
204
204
|
for (var i_1 = 0; i_1 < this.legendCollection.length; i_1++) {
|
|
205
205
|
var legendItem = this.legendCollection[i_1];
|
|
206
206
|
var legendTextSize = measureText(legendItem['text'], legend.textStyle);
|
|
@@ -1375,8 +1375,12 @@ var Legend = /** @class */ (function () {
|
|
|
1375
1375
|
var areaWidth = totalRect.width;
|
|
1376
1376
|
var totalWidth = map.availableSize.width;
|
|
1377
1377
|
var totalHeight = map.availableSize.height;
|
|
1378
|
-
var locationX = !isNullOrUndefined(legend.location.x) ? legend.location.x
|
|
1379
|
-
|
|
1378
|
+
var locationX = !isNullOrUndefined(legend.location.x) ? (typeof (legend.location.x) === 'string' &&
|
|
1379
|
+
legend.location.x.indexOf('%') > -1 ? (map.availableSize.width / 100) * parseFloat(legend.location.x) :
|
|
1380
|
+
typeof (legend.location.x) === 'string' ? parseFloat(legend.location.x) : legend.location.x) : 0;
|
|
1381
|
+
var locationY = !isNullOrUndefined(legend.location.y) ? (typeof (legend.location.y) === 'string' &&
|
|
1382
|
+
legend.location.y.indexOf('%') > -1 ? (map.availableSize.height / 100) * parseFloat(legend.location.y) :
|
|
1383
|
+
typeof (legend.location.y) === 'string' ? parseFloat(legend.location.y) : legend.location.y) : 0;
|
|
1380
1384
|
if (legend.position === 'Float') {
|
|
1381
1385
|
this.translate = map.isTileMap ? new Point(locationX, locationY + (spacing / 4)) :
|
|
1382
1386
|
new Point(locationX + map.mapAreaRect.x, locationY + map.mapAreaRect.y);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { Alignment, LegendPosition, LegendType, LegendMode, Type, MarkerType, Orientation, MapAjax } from '../../index';import { SmartLabelMode, IntersectAction } from '../../index';import { Theme } from './theme';import { Point, GeoLocation, Coordinate } from '../utils/helper';import { LegendArrangement, LegendShape, BubbleType, ToolbarItem } from '../utils/enum';import { AnnotationAlignment, GeometryType, LabelPosition, LabelIntersectAction } from '../index';
|
|
1
|
+
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { Alignment, LegendPosition, LegendType, LegendMode, Type, MarkerType, Orientation, MapAjax } from '../../index';import { SmartLabelMode, IntersectAction } from '../../index';import { Theme } from './theme';import { Point, GeoLocation, Coordinate, RelativePoint } from '../utils/helper';import { LegendArrangement, LegendShape, BubbleType, ToolbarItem } from '../utils/enum';import { AnnotationAlignment, GeometryType, LabelPosition, LabelIntersectAction } from '../index';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class Annotation
|
|
@@ -1498,7 +1498,7 @@ export interface LegendSettingsModel {
|
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Gets or sets the location of the legend in pixels when the legend position is set as `Float`.
|
|
1500
1500
|
*/
|
|
1501
|
-
location?: Point;
|
|
1501
|
+
location?: RelativePoint | Point;
|
|
1502
1502
|
|
|
1503
1503
|
/**
|
|
1504
1504
|
* Gets or sets the color of the legend in maps.
|
package/src/maps/model/base.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { MarkerSettingsModel, MarkerClusterSettingsModel, ShapeSettingsModel, Bu
|
|
|
10
10
|
import { DataLabelSettingsModel, TooltipSettingsModel, SubTitleSettingsModel, SelectionSettingsModel, PolygonSettingModel } from './base-model';
|
|
11
11
|
import { HighlightSettingsModel, ToggleLegendSettingsModel, ConnectorLineSettingsModel, PolygonTooltipSettingsModel } from './base-model';
|
|
12
12
|
import { InitialShapeSelectionSettingsModel, InitialMarkerSelectionSettingsModel, ZoomToolbarSettingsModel, ZoomToolbarButtonSettingsModel } from './base-model';
|
|
13
|
-
import { Point, GeoLocation, Coordinate } from '../utils/helper';
|
|
13
|
+
import { Point, GeoLocation, Coordinate, RelativePoint } from '../utils/helper';
|
|
14
14
|
import { LegendArrangement, LegendShape, BubbleType, ToolbarItem } from '../utils/enum';
|
|
15
15
|
import { AnnotationAlignment, GeometryType, LabelPosition, LabelIntersectAction } from '../index';
|
|
16
16
|
/**
|
|
@@ -1299,7 +1299,7 @@ export declare class LegendSettings extends ChildProperty<LegendSettings> {
|
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Gets or sets the location of the legend in pixels when the legend position is set as `Float`.
|
|
1301
1301
|
*/
|
|
1302
|
-
location: Point;
|
|
1302
|
+
location: RelativePoint | Point;
|
|
1303
1303
|
/**
|
|
1304
1304
|
* Gets or sets the color of the legend in maps.
|
|
1305
1305
|
*
|
|
@@ -184,6 +184,22 @@ export declare class Point {
|
|
|
184
184
|
y: number;
|
|
185
185
|
constructor(x: number, y: number);
|
|
186
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Specifies the position of the legend on the map, with options to set the
|
|
189
|
+
* position values as percentages. The legend is placed relative to the Maps,
|
|
190
|
+
* ensuring responsiveness.
|
|
191
|
+
*/
|
|
192
|
+
export declare class RelativePoint {
|
|
193
|
+
/**
|
|
194
|
+
* Defines the horizontal position of the legend as a percentage.
|
|
195
|
+
*/
|
|
196
|
+
x: string;
|
|
197
|
+
/**
|
|
198
|
+
* Defines the vertical position of the legend as a percentage.
|
|
199
|
+
*/
|
|
200
|
+
y: string;
|
|
201
|
+
constructor(x: string, y: string);
|
|
202
|
+
}
|
|
187
203
|
/**
|
|
188
204
|
* Defines the latitude and longitude values that define a map location.
|
|
189
205
|
*/
|
package/src/maps/utils/helper.js
CHANGED
|
@@ -389,6 +389,19 @@ var Point = /** @class */ (function () {
|
|
|
389
389
|
return Point;
|
|
390
390
|
}());
|
|
391
391
|
export { Point };
|
|
392
|
+
/**
|
|
393
|
+
* Specifies the position of the legend on the map, with options to set the
|
|
394
|
+
* position values as percentages. The legend is placed relative to the Maps,
|
|
395
|
+
* ensuring responsiveness.
|
|
396
|
+
*/
|
|
397
|
+
var RelativePoint = /** @class */ (function () {
|
|
398
|
+
function RelativePoint(x, y) {
|
|
399
|
+
this.x = x;
|
|
400
|
+
this.y = y;
|
|
401
|
+
}
|
|
402
|
+
return RelativePoint;
|
|
403
|
+
}());
|
|
404
|
+
export { RelativePoint };
|
|
392
405
|
/**
|
|
393
406
|
* Defines the latitude and longitude values that define a map location.
|
|
394
407
|
*/
|