Skip to content

Commit 14898e0

Browse files
committed
【 fix 】修复 classic 文档跳转和 新增 L 端 transform 的文档; review by luox
1 parent 8f1eaad commit 14898e0

File tree

7 files changed

+32
-8
lines changed

7 files changed

+32
-8
lines changed

build/jsdocs/classic/docs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
"src/common/iServer/ServerColor.js",
4040
"src/common/iServer/DatasourceConnectionInfo.js",
4141
"src/common/iServer/SetDatasourceParameters.js",
42+
"src/common/commontypes/Bounds.js",
43+
"src/common/commontypes/LonLat.js",
44+
"src/common/commontypes/Pixel.js",
4245
"src/common/REST.js"
4346
],
4447
"exclude": [

src/classic/overlay/MapVLayer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export class MapVLayer extends SuperMap.Layer {
8080

8181
/**
8282
* @function SuperMap.Layer.MapVLayer.prototype.destroy
83+
* @description 销毁此图层,销毁后此图层的所有属性为 null。
8384
* @override
8485
*/
8586
destroy() {
@@ -121,7 +122,7 @@ export class MapVLayer extends SuperMap.Layer {
121122
/**
122123
* @function SuperMap.Layer.MapVLayer.prototype.getData
123124
* @description 获取数据。
124-
* @returns {Mapv.DataSet} - mapv 的 dataSet 对象。
125+
* @returns {Mapv.DataSet} mapv 的 dataSet 对象。
125126
*/
126127
getData() {
127128
if (this.renderer) {

src/classic/services/ProcessingService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class ProcessingService extends CommonServiceBase {
125125
* @function SuperMap.REST.ProcessingService.prototype.getKernelDensityJobState
126126
* @description 获取密度分析的状态。
127127
* @param {string} id - 密度分析的 id。
128-
* @returns {Object} - 密度分析的状态。
128+
* @returns {Object} 密度分析的状态。
129129
*/
130130
getKernelDensityJobState(id) {
131131
return this.kernelDensityJobs[id];

src/common/commontypes/LonLat.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import {Util} from './Util';
55

66
/**
77
* @class LonLat
8-
* @deprecatedclass SuperMap.LonLat
98
* @category BaseTypes Geometry
109
* @classdesc 这个类用来表示经度和纬度对。
1110
* @param {number|Array.<number>} [lon=0.0] - 地图单位上的 X 轴坐标或者横纵坐标组成的数组;如果地图是地理投影,则此值是经度,否则,此值是地图地理位置的 x 坐标。
1211
* @param {number} [lat=0.0] - 地图单位上的 Y 轴坐标,如果地图是地理投影,则此值是纬度,否则,此值是地图地理位置的 y 坐标。
1312
* @example
1413
* var lonLat = new LonLat(30,45);
1514
* @usage
16-
* @private
1715
*/
1816
export class LonLat {
1917

src/leaflet/core/Attributions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
* This program are made available under the terms of the Apache License, Version 2.0
33
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
44
/**
5-
* attribution版权相关配置
5+
* @enum attribution
6+
* @description 版权相关配置。
7+
* @type {string}
8+
* @private
69
*/
710

811
let Attributions = {

src/leaflet/core/Transform.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,30 @@ import L from "leaflet";
55
import { Util as CommonUtil } from '@supermap/iclient-common/commontypes/Util';
66

77
/**
8-
* @function Util.transform
8+
* @function transform
99
* @description 转换要素坐标。
1010
* @param {(L.Marker|L.CircleMarker|L.Polyline|L.Polygon|L.Rectangle|L.LatLngBounds|L.Bounds|Object)} feature - 待转换要素:Leaflet Vector Layers 。
1111
* 的 {@link L.Marker}|{@link L.CircleMarker}|{@link L.Polyline}|{@link L.Polygon}|{@link L.Rectangle}|{@link L.LatLngBounds}|{@link L.Bounds}|{@link GeoJSONObject} 类型。
1212
* @param {CRS} [sourceCRS=L.CRS.EPSG4326] - 转换要素的源坐标系。
1313
* @param {CRS} targetCRS - 转换要素的目标坐标系。
1414
* @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+
* ```
1532
*/
1633
export var transform = function (feature, sourceCRS = L.CRS.EPSG4326, targetCRS) {
1734
let selfFeatures = null;

src/leaflet/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import {
1818
resolutionToScale,
1919
scaleToResolution,
2020
GetResolutionFromScaleDpi,
21-
NormalizeScale
21+
NormalizeScale,
22+
transform
2223
} from './core';
2324
import {
2425
BaiduTileLayer,
@@ -213,7 +214,8 @@ export {
213214
resolutionToScale,
214215
scaleToResolution,
215216
GetResolutionFromScaleDpi,
216-
NormalizeScale
217+
NormalizeScale,
218+
transform
217219
};
218220
export {
219221
BaiduTileLayer,

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