Skip to content

Commit 4c8ba82

Browse files
committed
[fix]还原classic review by qiw
1 parent d07d754 commit 4c8ba82

File tree

5 files changed

+469
-478
lines changed

5 files changed

+469
-478
lines changed

build/jsdocs/classic/docs.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@
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/Geometry.js",
44-
"src/common/commontypes/LonLat.js",
45-
"src/common/commontypes/Pixel.js",
46-
"src/common/commontypes/Size.js",
47-
"src/common/commontypes/geometry/Point.js",
4842
"src/common/REST.js"
4943
],
5044
"exclude": [

build/jsdocs/template/typeLinkExt.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ var typeLinks = {
8383
"SuperMap.Layer.Graph": classicapi + '/Layer/Theme/Graph-js.html#SuperMap.Layer.Graph',
8484
"SuperMap.Layer.RankSymbol": classicapi + '/Layer/Theme/RankSymbol-js.html#SuperMap.Layer.RankSymbol',
8585
"SuperMap.Map":classicapi + '/Map-js.html',
86+
"SuperMap.Bounds":classicapi + '/BaseTypes/Bounds-js.html',
87+
"SuperMap.LonLat":classicapi + '/BaseTypes/LonLat-js.html',
8688

8789
//GeoJSON
8890
"GeoJSONObject": geojsonapi,

src/classic/overlay/MapVLayer.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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
import { SuperMap } from '../SuperMap';
5-
import { Util } from '@supermap/iclient-common/commontypes/Util'
6-
import { LonLat } from '@supermap/iclient-common/commontypes/LonLat'
75
import { MapVRenderer } from './mapv/MapVRenderer';
86

97
/**
@@ -52,7 +50,7 @@ export class MapVLayer extends SuperMap.Layer {
5250
this.canvasContext = null;
5351

5452
if (options) {
55-
Util.extend(this, options);
53+
SuperMap.Util.extend(this, options);
5654
}
5755

5856
//MapV图要求使用canvas绘制,判断是否支持
@@ -177,7 +175,7 @@ export class MapVLayer extends SuperMap.Layer {
177175
* @function SuperMap.Layer.MapVLayer.prototype.moveTo
178176
* @description 重置当前 MapV 图层的 div,再一次与 Map 控件保持一致。
179177
* 修改当前显示范围,当平移或者缩放结束后开始重绘 MapV 图的渲染效果。
180-
* @param {Bounds} bounds - 图层范围。
178+
* @param {SuperMap.Bounds} bounds - 图层范围。
181179
* @param {boolean} [zoomChanged] - 缩放级别是否改变。
182180
* @param {boolean} [dragging] - 是否拖动。
183181
*/
@@ -222,7 +220,7 @@ export class MapVLayer extends SuperMap.Layer {
222220
/**
223221
* @function SuperMap.Layer.MapVLayer.prototype.transferToMapLatLng
224222
* @description 将经纬度转成底图的投影坐标。
225-
* @param {LonLat} latLng - 经纬度坐标。
223+
* @param {SuperMap.LonLat} latLng - 经纬度坐标。
226224
* @deprecated
227225
*/
228226
transferToMapLatLng(latLng) {
@@ -232,7 +230,7 @@ export class MapVLayer extends SuperMap.Layer {
232230
if (['m', 'meter'].indexOf(unit.toLowerCase()) > -1) {
233231
dest = 'EPSG:3857';
234232
}
235-
return new LonLat(latLng.lon, latLng.lat).transform(source, dest);
233+
return new SuperMap.LonLat(latLng.lon, latLng.lat).transform(source, dest);
236234
}
237235
}
238236
SuperMap.Layer.MapVLayer = MapVLayer;

src/common/commontypes/LonLat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {Util} from './Util';
1313
* @example
1414
* var lonLat = new LonLat(30,45);
1515
* @usage
16+
* @private
1617
*/
1718
export class LonLat {
1819

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