Skip to content

Commit abebaab

Browse files
committed
【fix】fix ICL-1132 ie10 ie11 mapv source绘制失败的问题 review by liqian
1 parent 6a43800 commit abebaab

30 files changed

+1042
-1050
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ charset = utf-8
99

1010
[*.{js,html,css}]
1111
indent_style = space
12-
indent_size = 4
12+
indent_size = 2
1313

1414
[*.{json}]
1515
indent_style = space

.prettierrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"printWidth": 120,
33
"proseWrap": "never",
4-
"tabWidth":4,
54
"semi":true,
65
"trailingComma":"none",
76
"bracketSpacing":true,

dist/classic/iclient-classic-es6.js

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6042,7 +6042,7 @@ SuperMap.MappingParameters = MappingParameters_MappingParameters;
60426042
* @param {Object} options - 参数。
60436043
* @param {string} options.datasetName - 数据集名。
60446044
* @param {string} options.fields - 权重索引。
6045-
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} [options.query] - 分析范围。
6045+
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} [options.query] - 分析范围(默认为全图范围)
60466046
* @param {number} [options.resolution=80] - 分辨率。
60476047
* @param {number} [options.method=0] - 分析方法。
60486048
* @param {number} [options.meshType=0] - 分析类型。
@@ -6439,7 +6439,7 @@ SuperMap.SummaryAttributesJobsParameter = SummaryAttributesJobsParameter_Summary
64396439
* @classdesc 点聚合分析任务参数类。
64406440
* @param {Object} options - 参数。
64416441
* @param {string} options.datasetName - 数据集名。
6442-
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} [options.query] - 分析范围。
6442+
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} [options.query] - 分析范围(默认为全图范围)
64436443
* @param {number} options.fields - 权重索引。
64446444
* @param {number} [options.resolution=100] - 分辨率。
64456445
* @param {SuperMap.StatisticAnalystMode} [options.statisticModes=SuperMap.StatisticAnalystMode.AVERAGE] - 分析模式。
@@ -6611,7 +6611,7 @@ SuperMap.SummaryMeshJobParameter = SummaryMeshJobParameter_SummaryMeshJobParamet
66116611
* @classdesc 区域汇总分析任务参数类。
66126612
* @param {Object} options - 参数。
66136613
* @param {string} options.datasetName - 数据集名。
6614-
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} [options.query] - 分析范围。
6614+
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} [options.query] - 分析范围(默认为全图范围)
66156615
* @param {string} [options.standardFields] - 标准属性字段名称。
66166616
* @param {string} [options.weightedFields] - 权重字段名称。
66176617
* @param {SuperMap.StatisticAnalystMode} [options.standardStatisticModes] - 标准属性字段的统计模式。standardSummaryFields 为 true 时必填。
@@ -6948,42 +6948,40 @@ SuperMap.OverlayGeoJobParameter = OverlayGeoJobParameter_OverlayGeoJobParameter;
69486948
* @class SuperMap.BuffersAnalystJobsParameter
69496949
* @category iServer ProcessingService BufferAnalyst
69506950
* @classdesc 缓冲区分析任务参数类。
6951-
* @param {Object} options - 参数。
6952-
* @param {string} options.datasetName - 数据集名。
6953-
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} options.bounds - 分析范围
6954-
* @param {string} [options.distance='15'] - 缓冲距离,或缓冲区半径。
6955-
* @param {string} [options.distanceField='pickup_latitude'] - 缓冲区分析距离字段。
6956-
* @param {SuperMap.AnalystSizeUnit} [options.distanceUnit=SuperMap.AnalystSizeUnit.METER] - 缓冲距离单位单位。
6957-
* @param {SuperMap.OutputSetting} [options.output] - 输出参数设置。
6958-
* @param {SuperMap.MappingParameters} [options.mappingParameters] - 分析后结果可视化的参数类。
6951+
* @param {Object} options - 参数。
6952+
* @param {string} options.datasetName - 数据集名。
6953+
* @param {(SuperMap.Bounds|L.Bounds|ol.extent)} [options.bounds] - 分析范围(默认为全图范围)。
6954+
* @param {string} [options.distance='15'] - 缓冲距离,或缓冲区半径。
6955+
* @param {string} [options.distanceField='pickup_latitude'] - 缓冲区分析距离字段。
6956+
* @param {SuperMap.AnalystSizeUnit} [options.distanceUnit=SuperMap.AnalystSizeUnit.METER] - 缓冲距离单位单位。
6957+
* @param {SuperMap.OutputSetting} [options.output] - 输出参数设置。
6958+
* @param {SuperMap.MappingParameters} [options.mappingParameters] - 分析后结果可视化的参数类。
69596959
*/
69606960
class BuffersAnalystJobsParameter_BuffersAnalystJobsParameter {
6961-
6962-
69636961
constructor(options) {
69646962
/**
69656963
* @member {string} SuperMap.BuffersAnalystJobsParameter.prototype.datasetName
69666964
* @description 数据集名。
69676965
*/
6968-
this.datasetName = "";
6966+
this.datasetName = '';
69696967

69706968
/**
69716969
* @member {(SuperMap.Bounds|L.Bounds|ol.extent)} SuperMap.BuffersAnalystJobsParameter.prototype.bounds
6972-
* @description 分析范围。
6970+
* @description 分析范围。
69736971
*/
6974-
this.bounds = "";
6972+
this.bounds = '';
69756973

69766974
/**
69776975
* @member {string} [SuperMap.BuffersAnalystJobsParameter.prototype.distance='15']
69786976
* @description 缓冲距离,或称为缓冲区半径。当缓冲距离字段位空时,此参数有效。
69796977
*/
6980-
this.distance = "";
6978+
this.distance = '';
69816979

69826980
/**
69836981
* @member {string} [SuperMap.BuffersAnalystJobsParameter.prototype.distanceField='pickup_latitude']
69846982
* @description 缓冲距离字段。
69856983
*/
6986-
this.distanceField = "";
6984+
this.distanceField = '';
69876985

69886986
/**
69896987
* @member {SuperMap.AnalystSizeUnit} [SuperMap.BuffersAnalystJobsParameter.prototype.distanceUnit=SuperMap.AnalystSizeUnit.METER]
@@ -6995,17 +6993,17 @@ class BuffersAnalystJobsParameter_BuffersAnalystJobsParameter {
69956993
* @member {string} SuperMap.BuffersAnalystJobsParameter.prototype.dissolveField
69966994
* @description 融合字段,根据字段值对缓冲区结果面对象进行融合。
69976995
*/
6998-
this.dissolveField = "";
6996+
this.dissolveField = '';
69996997

70006998
/**
70016999
* @member {SuperMap.OutputSetting} [SuperMap.BuffersAnalystJobsParameter.prototype.output]
70027000
* @description 输出参数设置类。
70037001
*/
70047002
this.output = null;
7005-
7003+
70067004
/**
70077005
* @member {SuperMap.MappingParameters} [SuperMap.BuffersAnalystJobsParameter.prototype.mappingParameters]
7008-
* @description 分析后结果可视化的参数类。
7006+
* @description 分析后结果可视化的参数类。
70097007
*/
70107008
this.mappingParameters = null;
70117009

@@ -7014,7 +7012,7 @@ class BuffersAnalystJobsParameter_BuffersAnalystJobsParameter {
70147012
}
70157013
Util_Util.extend(this, options);
70167014

7017-
this.CLASS_NAME = "SuperMap.BuffersAnalystJobsParameter";
7015+
this.CLASS_NAME = 'SuperMap.BuffersAnalystJobsParameter';
70187016
}
70197017

70207018
/**
@@ -7032,7 +7030,7 @@ class BuffersAnalystJobsParameter_BuffersAnalystJobsParameter {
70327030
this.output.destroy();
70337031
this.output = null;
70347032
}
7035-
if (this.mappingParameters instanceof MappingParameters_MappingParameters){
7033+
if (this.mappingParameters instanceof MappingParameters_MappingParameters) {
70367034
this.mappingParameters.destroy();
70377035
this.mappingParameters = null;
70387036
}
@@ -7046,33 +7044,33 @@ class BuffersAnalystJobsParameter_BuffersAnalystJobsParameter {
70467044
*/
70477045
static toObject(BuffersAnalystJobsParameter, tempObj) {
70487046
for (var name in BuffersAnalystJobsParameter) {
7049-
if (name === "datasetName") {
7047+
if (name === 'datasetName') {
70507048
tempObj['input'] = tempObj['input'] || {};
70517049
tempObj['input'][name] = BuffersAnalystJobsParameter[name];
70527050
continue;
70537051
}
7054-
if (name === "output") {
7052+
if (name === 'output') {
70557053
tempObj['output'] = tempObj['output'] || {};
70567054
tempObj['output'] = BuffersAnalystJobsParameter[name];
70577055
continue;
70587056
}
70597057

70607058
tempObj['analyst'] = tempObj['analyst'] || {};
7061-
if (name === 'bounds') {
7059+
if (name === 'bounds' && BuffersAnalystJobsParameter[name]) {
70627060
tempObj['analyst'][name] = BuffersAnalystJobsParameter[name].toBBOX();
70637061
} else {
70647062
tempObj['analyst'][name] = BuffersAnalystJobsParameter[name];
70657063
}
7066-
if(name === 'mappingParameters'){
7064+
if (name === 'mappingParameters') {
70677065
tempObj['analyst'][name] = tempObj['analyst'][name] || {};
70687066
tempObj['analyst']['mappingParameters'] = BuffersAnalystJobsParameter[name];
70697067
}
70707068
}
70717069
}
7072-
70737070
}
70747071

70757072
SuperMap.BuffersAnalystJobsParameter = BuffersAnalystJobsParameter_BuffersAnalystJobsParameter;
7073+
70767074
// CONCATENATED MODULE: ./src/common/iServer/TopologyValidatorJobsParameter.js
70777075
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
70787076
* This program are made available under the terms of the Apache License, Version 2.0
@@ -7795,7 +7793,7 @@ class MapVLayer_MapVLayer extends SuperMap_SuperMap.Layer {
77957793
var context = (this.options && this.options.context) || '2d';
77967794
this.canvasContext = this.canvas.getContext(context);
77977795
var global$2 = typeof window === 'undefined' ? {} : window;
7798-
var devicePixelRatio = (this.devicePixelRatio = global$2.devicePixelRatio);
7796+
var devicePixelRatio = this.devicePixelRatio = global$2.devicePixelRatio || 1;
77997797
if (context == '2d') {
78007798
this.canvasContext.scale(devicePixelRatio, devicePixelRatio);
78017799
}

0 commit comments

Comments
 (0)