File tree Expand file tree Collapse file tree 7 files changed +32
-8
lines changed Expand file tree Collapse file tree 7 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 39
39
" src/common/iServer/ServerColor.js" ,
40
40
" src/common/iServer/DatasourceConnectionInfo.js" ,
41
41
" src/common/iServer/SetDatasourceParameters.js" ,
42
+ " src/common/commontypes/Bounds.js" ,
43
+ " src/common/commontypes/LonLat.js" ,
44
+ " src/common/commontypes/Pixel.js" ,
42
45
" src/common/REST.js"
43
46
],
44
47
"exclude" : [
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export class MapVLayer extends SuperMap.Layer {
80
80
81
81
/**
82
82
* @function SuperMap.Layer.MapVLayer.prototype.destroy
83
+ * @description 销毁此图层,销毁后此图层的所有属性为 null。
83
84
* @override
84
85
*/
85
86
destroy ( ) {
@@ -121,7 +122,7 @@ export class MapVLayer extends SuperMap.Layer {
121
122
/**
122
123
* @function SuperMap.Layer.MapVLayer.prototype.getData
123
124
* @description 获取数据。
124
- * @returns {Mapv.DataSet } - mapv 的 dataSet 对象。
125
+ * @returns {Mapv.DataSet } mapv 的 dataSet 对象。
125
126
*/
126
127
getData ( ) {
127
128
if ( this . renderer ) {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export class ProcessingService extends CommonServiceBase {
125
125
* @function SuperMap.REST.ProcessingService.prototype.getKernelDensityJobState
126
126
* @description 获取密度分析的状态。
127
127
* @param {string } id - 密度分析的 id。
128
- * @returns {Object } - 密度分析的状态。
128
+ * @returns {Object } 密度分析的状态。
129
129
*/
130
130
getKernelDensityJobState ( id ) {
131
131
return this . kernelDensityJobs [ id ] ;
Original file line number Diff line number Diff line change @@ -5,15 +5,13 @@ import {Util} from './Util';
5
5
6
6
/**
7
7
* @class LonLat
8
- * @deprecatedclass SuperMap.LonLat
9
8
* @category BaseTypes Geometry
10
9
* @classdesc 这个类用来表示经度和纬度对。
11
10
* @param {number|Array.<number> } [lon=0.0] - 地图单位上的 X 轴坐标或者横纵坐标组成的数组;如果地图是地理投影,则此值是经度,否则,此值是地图地理位置的 x 坐标。
12
11
* @param {number } [lat=0.0] - 地图单位上的 Y 轴坐标,如果地图是地理投影,则此值是纬度,否则,此值是地图地理位置的 y 坐标。
13
12
* @example
14
13
* var lonLat = new LonLat(30,45);
15
14
* @usage
16
- * @private
17
15
*/
18
16
export class LonLat {
19
17
Original file line number Diff line number Diff line change 2
2
* This program are made available under the terms of the Apache License, Version 2.0
3
3
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4
4
/**
5
- * attribution版权相关配置
5
+ * @enum attribution
6
+ * @description 版权相关配置。
7
+ * @type {string }
8
+ * @private
6
9
*/
7
10
8
11
let Attributions = {
Original file line number Diff line number Diff line change @@ -5,13 +5,30 @@ import L from "leaflet";
5
5
import { Util as CommonUtil } from '@supermap/iclient-common/commontypes/Util' ;
6
6
7
7
/**
8
- * @function Util. transform
8
+ * @function transform
9
9
* @description 转换要素坐标。
10
10
* @param {(L.Marker|L.CircleMarker|L.Polyline|L.Polygon|L.Rectangle|L.LatLngBounds|L.Bounds|Object) } feature - 待转换要素:Leaflet Vector Layers 。
11
11
* 的 {@link L.Marker}|{@link L.CircleMarker}|{@link L.Polyline}|{@link L.Polygon}|{@link L.Rectangle}|{@link L.LatLngBounds}|{@link L.Bounds}|{@link GeoJSONObject} 类型。
12
12
* @param {CRS } [sourceCRS=L.CRS.EPSG4326] - 转换要素的源坐标系。
13
13
* @param {CRS } targetCRS - 转换要素的目标坐标系。
14
14
* @returns {GeoJSONObject } 返回 GeoJSON 规范的数据类型。
15
+ * @usage
16
+ * ```
17
+ * // 浏览器
18
+ * <script type="text/javascript" src="{cdn}"></script>
19
+ * <script>
20
+ * {namespace}.Util.transform(feature, sourceCRS, targetCRS);
21
+ *
22
+ * // 弃用的写法:
23
+ * L.Util.transform(feature, sourceCRS, targetCRS);
24
+ *
25
+ * </script>
26
+ *
27
+ * // ES6 Import
28
+ * import { transform } from '{npm}';
29
+ *
30
+ * transform(feature, sourceCRS, targetCRS);
31
+ * ```
15
32
*/
16
33
export var transform = function ( feature , sourceCRS = L . CRS . EPSG4326 , targetCRS ) {
17
34
let selfFeatures = null ;
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ import {
18
18
resolutionToScale ,
19
19
scaleToResolution ,
20
20
GetResolutionFromScaleDpi ,
21
- NormalizeScale
21
+ NormalizeScale ,
22
+ transform
22
23
} from './core' ;
23
24
import {
24
25
BaiduTileLayer ,
@@ -213,7 +214,8 @@ export {
213
214
resolutionToScale ,
214
215
scaleToResolution ,
215
216
GetResolutionFromScaleDpi ,
216
- NormalizeScale
217
+ NormalizeScale ,
218
+ transform
217
219
} ;
218
220
export {
219
221
BaiduTileLayer ,
You can’t perform that action at this time.
0 commit comments