Skip to content

Commit 9f64651

Browse files
committed
【dist】update
1 parent 80eadf1 commit 9f64651

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+215829
-189168
lines changed

dist/classic/iclient-classic-es6.js

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13257,15 +13257,51 @@ var getMeterPerMapUnit = function(mapUnit) {
1325713257
// 每度表示多少米。
1325813258
meterPerMapUnit = (Math.PI * 2 * earchRadiusInMeters) / 360;
1325913259
} else if (mapUnit === Unit.KILOMETER) {
13260-
meterPerMapUnit = 1.0e-3;
13260+
meterPerMapUnit = 1000;
1326113261
} else if (mapUnit === Unit.INCH) {
13262-
meterPerMapUnit = 1 / 2.5399999918e-2;
13262+
meterPerMapUnit = 2.5399999918e-2;
1326313263
} else if (mapUnit === Unit.FOOT) {
1326413264
meterPerMapUnit = 0.3048;
1326513265
}
1326613266
return meterPerMapUnit;
1326713267
};
1326813268

13269+
/**
13270+
* @function getSquareMeterPerMapUnit
13271+
* @description 单位换算,把平方米|平方千米|平方英寸|平方英尺换算成平方米。
13272+
* @category BaseTypes Util
13273+
* @param {string} mapUnit 需要换算的地图面积单位。
13274+
* @returns {number} 返回地图的面积单位。
13275+
* @usage
13276+
* ```
13277+
* // 浏览器
13278+
* <script type="text/javascript" src="{cdn}"></script>
13279+
* <script>
13280+
* const result = {namespace}.getSquareMeterPerMapUnit(mapUnit);
13281+
*
13282+
* </script>
13283+
*
13284+
* // ES6 Import
13285+
* import { getMeterPerMapUnit } from '{npm}';
13286+
*
13287+
* const result = getMeterPerMapUnit(mapUnit);
13288+
* ```
13289+
*/
13290+
13291+
const AREA_MAP = {
13292+
SquareFoot: 10.763910417,
13293+
SquareKiloMeter: 0.000001,
13294+
SquareMeter: 1,
13295+
SquareMile: 3.86e-7,
13296+
SquareYard: 1.195990046
13297+
}
13298+
13299+
var getSquareMeterPerMapUnit = function(mapUnit) {
13300+
return AREA_MAP[mapUnit];
13301+
};
13302+
13303+
13304+
1326913305
/**
1327013306
* @function getWrapNum
1327113307
* @description 获取该坐标系的经纬度范围的经度或纬度。

dist/classic/iclient-classic-es6.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/classic/iclient-classic.js

Lines changed: 539 additions & 534 deletions
Large diffs are not rendered by default.

dist/classic/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/classic/include-classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
}
158158

159159
load({
160-
libsurl: 'https://iclient.supermap.io/web/libs',
160+
libsurl: '../../libs',
161161
disturl: '../../dist'
162162
});
163163
window.isLocal = false;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy