Skip to content

Commit 66d0cfd

Browse files
committed
[update]ol modulecategory review by xjj
1 parent 0629ff4 commit 66d0cfd

Some content is hidden

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

49 files changed

+187
-143
lines changed

src/common/control/TimeControlBase.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Events} from '../commontypes/Events';
77
* @class TimeControlBase
88
* @deprecatedclass SuperMap.TimeControlBase
99
* @classdesc 时间控制基类。
10+
* @modulecategory Control
1011
* @category Control
1112
* @param {Object} options - 可选参数。
1213
* @param {number} [options.speed=1] - 速度。不能小于 0,(每帧渲染的数据之间的间隔为1),设置越大速度越快。

src/common/control/TimeFlowControl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {TimeControlBase} from './TimeControlBase';
1010
* @classdesc 时间管理类。此类只负责时间上的控制,具体执行的操作需要用户在初始化时的回调函数内部进行实现。
1111
* 如设置起始时间为 1000,结束时间是 2000,步长设置为 1,
1212
* 那么表示按照每次1年(可以通过 setSpeed 进行修改)的变化从公元 1000 年开始到公元 2000 年为止,默认每 1 秒会变化 1 次(通过 setFrequency 修改)
13+
* @modulecategory Control
1314
* @extends {TimeControlBase}
1415
* @param {function} callback - 每次刷新回调函数。具体的效果需要用户在此回调函数里面实现。
1516
* @param {Object} options - 可选参数。

src/common/style/ThemeStyle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {Util} from '../commontypes/Util';
77
* @class ThemeStyle
88
* @deprecatedclass SuperMap.ThemeStyle
99
* @classdesc 客户端专题图风格类。
10+
* @modulecategory Overlay
1011
* @category Visualization Theme
1112
* @param {Object} options - 可选参数。
1213
* @param {boolean} [options.fill=true] - 是否填充,不需要填充则设置为 false。如果 fill 与 stroke 同时为 false,将按 fill 与 stroke 的默认值渲染图层。

src/openlayers/control/ChangeTileVersion.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Control from 'ol/control/Control';
99
* @aliasclass control.ChangeTileVersion
1010
* @category Control
1111
* @classdesc 版本切换控件(目前仅支持 IE10 及以上)暂时不支持自定义位置。
12+
* @modulecategory Control
1213
* @extends {ol.control.Control}
1314
* @param {Object} options -参数。
1415
* @param {string} [options.title='switch tile version'] - 提示信息。

src/openlayers/control/Logo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Control from 'ol/control/Control';
99
* @aliasclass control.Logo
1010
* @category Control
1111
* @classdesc Logo控件。默认不显示,需手动添加控件。
12+
* @modulecategory Control
1213
* @extends {ol.control.Control}
1314
* @example
1415
* var control = new Logo();

src/openlayers/control/ScaleLine.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import AssertionError from 'ol/AssertionError';
1616
* <p style="color: #ce4844">Notice</p>
1717
* <p style="font-size: 13px">该功能继承 {@link ol.control.ScaleLine },与 {@link ol.control.ScaleLine } 功能完全相同。仅为修复 `openlayers` v4.6.5 版本中 WGS84 等地理坐标系比例尺数值错误的问题。
1818
* </div>
19+
* @modulecategory Control
1920
* @extends {ol.control.ScaleLine}
2021
* @param {Object} options -参数。
2122
* @param {string} [options.className='ol-scale-line'] - CSS Class name.。

src/openlayers/mapping/BaiduMap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Util } from '../core/Util';
1111
* @browsernamespace ol.source
1212
* @category ThirdPartyMap
1313
* @classdesc 百度地图图层源。
14+
* @modulecategory Mapping
1415
* @param {Object} opt_options - 参数。
1516
* @param {string} [opt_options.url='http://online1.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20170408'] - 服务地址。
1617
* @param {string} [opt_options.tileProxy] - 代理地址。

src/openlayers/mapping/ImageSuperMapRest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { containsExtent, getCenter, getHeight, getWidth, getForViewAndSize } fro
1717
* @browsernamespace ol.source
1818
* @category iServer Map Tile
1919
* @classdesc SuperMap iServer Image 图层源。
20+
* @modulecategory Mapping
2021
* @param {Object} options - 参数。
2122
* @param {string} options.url - 地图服务地址,例如: http://{ip}:{port}/iserver/services/map-world/rest/maps/World。
2223
* @param {ServerType} [options.serverType=SuperMap.ServerType.ISERVER] - 服务类型 ISERVER|IPORTAL|ONLINE。

src/openlayers/mapping/SuperMapCloud.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import XYZ from 'ol/source/XYZ';
99
* @browsernamespace ol.source
1010
* @category ThirdPartyMap
1111
* @classdesc 超图云地图图层源。
12+
* @modulecategory Mapping
1213
* @param {Object} opt_options - 参数。
1314
* @param {string} [opt_options.url='http://t2.dituhui.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}'] - 服务地址。
1415
* @param {string} [opt_options.tileProxy] - 代理地址。

src/openlayers/mapping/Tianditu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import WMTSTileGrid from 'ol/tilegrid/WMTS';
1010
* @browsernamespace ol.source
1111
* @category ThirdPartyMap
1212
* @classdesc 天地图图层源。
13+
* @modulecategory Mapping
1314
* @param {Object} opt_options - 参数。
1415
* @param {string} [opt_options.url='http://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?'] - 服务地址。
1516
* @param {string} opt_options.key - 天地图服务密钥。详见{@link http://lbs.tianditu.gov.cn/server/MapService.html}

src/openlayers/mapping/TileSuperMapRest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import TileGrid from 'ol/tilegrid/TileGrid';
1717
* @class TileSuperMapRest
1818
* @browsernamespace ol.source
1919
* @category iServer Map Tile
20+
* @modulecategory Mapping
2021
* @classdesc SuperMap iServer TileImage 图层源。
2122
* @param {Object} options - 参数。
2223
* @param {string} options.url - 服务地址,例如: http://{ip}:{port}/iserver/services/map-world/rest/maps/World。

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const dpiConfig = {
7777
* @class WebMap
7878
* @category iPortal/Online Resources Map
7979
* @classdesc 对接 iPortal/Online 地图类
80+
* @modulecategory Mapping
8081
* @param {Object} options - 参数
8182
* @param {string} [options.target='map'] - 地图容器id
8283
* @param {Object | string} [options.webMap] - webMap对象,或者是获取webMap的url地址。存在webMap,优先使用webMap, id的选项则会被忽略

src/openlayers/overlay/FGB.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import GeoJSON from 'ol/format/GeoJSON';
1212
* @browsernamespace ol.source
1313
* @category Visualization FGB
1414
* @classdesc FGB 图层源,该图层源把 {@link FlatGeobuf} 格式解析为点线面要素。
15+
* @modulecategory Overlay
1516
* @version 11.1.0
1617
* @param {Object} opt_options - 参数。
1718
* @param {string} opt_options.url - FGB 地址,例如:http://localhost:8090/iserver/services/xxx/rest/data/featureResults/newResourceId.fgb。

src/openlayers/overlay/Graph.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
* @browsernamespace ol.source
1515
* @category Visualization Theme
1616
* @classdesc 统计专题图图层基类。
17+
* @modulecategory Overlay
1718
* @param {string} chartsType - 图表类别。
1819
* @param {string} name - 图层名称。
1920
* @param {Object} opt_options - 参数。

src/openlayers/overlay/HeatMap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import Point from 'ol/geom/Point';
1717
* @class HeatMap
1818
* @browsernamespace ol.source
1919
* @classdesc 热力图层类。
20+
* @modulecategory Overlay
2021
* @category Visualization HeatMap
2122
* @param {string} name - 图层名称。
2223
* @param {Object} options - 参数。

src/openlayers/overlay/Label.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import Point from 'ol/geom/Point';
1717
* @browsernamespace ol.source
1818
* @category Visualization Theme
1919
* @classdesc 标签专题图图层源。
20+
* @modulecategory Overlay
2021
* @param {string} name - 名称。
2122
* @param {Object} opt_options - 参数。
2223
* @param {ol.Map} opt_options.map - 当前 Map 对象。

src/openlayers/overlay/Mapv.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import ImageCanvasSource from 'ol/source/ImageCanvas';
1414
* @browsernamespace ol.source
1515
* @category Visualization MapV
1616
* @classdesc MapV 图层源。
17+
* @modulecategory Overlay
1718
* @param {Object} opt_options - 参数。
1819
* @param {ol.Map} opt_options.map - 当前 Map 对象。
1920
* @param {Mapv.DataSet} opt_options.dataSet - MapV 的数据集。

src/openlayers/overlay/RankSymbol.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {Graph} from './Graph';
99
* @browsernamespace ol.source
1010
* @category Visualization Theme
1111
* @classdesc 等级符号专题图图层源。
12+
* @modulecategory Overlay
1213
* @param {string} name - 专题图层名。
1314
* @param {string} symbolType - 标志类型。
1415
* @param {Object} opt_options - 参数。

src/openlayers/overlay/Turf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Util } from '../core/Util';
1111
* @browsernamespace ol.source
1212
* @category Visualization Turf
1313
* @classdesc Turf.js 图层源。
14+
* @modulecategory Overlay
1415
* @param {Object} opt_options - 参数。
1516
* @extends {ol.source.Vector}
1617
* @usage

src/openlayers/overlay/Unique.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {GeoFeature} from './theme/GeoFeature';
1111
* @browsernamespace ol.source
1212
* @category Visualization Theme
1313
* @classdesc 单值专题图图层源。
14+
* @modulecategory Overlay
1415
* @param {string} name - 图层名称。
1516
* @param {Object} opt_options - 参数。
1617
* @param {ol.Map} opt_options.map - 当前 Map 对象。

src/openlayers/overlay/VectorTileSuperMapRest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import TileGrid from 'ol/tilegrid/TileGrid';
2222
* @browsernamespace ol.source
2323
* @category Visualization VectorTile
2424
* @classdesc 矢量瓦片图层源。
25+
* @modulecategory Overlay
2526
* @param {Object} options - 参数。
2627
* @param {(string|undefined)} options.url - 服务地址。
2728
* @param {(string|Object|undefined)} options.style - Mapbox Style JSON 对象或获取 Mapbox Style JSON 对象的 URL。当 `options.format` 为 {@link ol.format.MVT} 且 `options.source` 不为空时有效,优先级高于 `options.url`。

src/openlayers/overlay/graphic/CloverShape.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import StrokeStyle from 'ol/style/Stroke';
1010
* @browsernamespace ol.style
1111
* @category Visualization Graphic
1212
* @classdesc 三叶草要素风格。
13+
* @modulecategory Overlay
1314
* @extends {ol.style.RegularShape}
1415
* @param {Object} options - 三叶草形要素风格参数。
1516
* @param {number} [options.angle=30] - 三叶草每个扇叶的圆心角,单位弧度。

src/openlayers/overlay/graphic/Graphic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Style from 'ol/style/Style';
1212
* @aliasclass Graphic
1313
* @category Visualization Graphic
1414
* @classdesc 高效率点图层点要素类。
15+
* @modulecategory Overlay
1516
* @param {ol.geom.Point} geometry - 几何对象。
1617
* @param {Object} [attributes] - 要素属性。
1718
* @extends {ol.Object}

src/openlayers/overlay/graphic/HitCloverShape.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
* @browsernamespace ol.style
1111
* @category Visualization Graphic
1212
* @classdesc 三叶草要素高亮风格。
13+
* @modulecategory Overlay
1314
* @extends {CloverShape}
1415
* @param {Object} options - 三叶草形要素风格参数。
1516
* @param {number} options.sAngle - 扇叶起始角度。

src/openlayers/overlay/theme/Theme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import GeoJSON from 'ol/format/GeoJSON';
2020
* @browsernamespace ol.source
2121
* @category Visualization Theme
2222
* @classdesc 专题图基类。
23+
* @modulecategory Overlay
2324
* @param {string} name - 专题图图层名称。
2425
* @param {Object} opt_option - 参数。
2526
* @param {ol.Map} opt_option.map - 当前 openlayers 的 Map 对象。

src/openlayers/overlay/theme/ThemeFeature.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import GeoJSON from 'ol/format/GeoJSON';
1212
* @class ThemeFeature
1313
* @category Visualization Theme
1414
* @classdesc 专题图要素类。
15+
* @modulecategory Overlay
1516
* @param {Object} geometry - 要量算的几何对象,支持 {@link ol.geom.Geometry} 和 GeometryGeoText 标签数组类型 geometry = [x,y,text]。
1617
* @param {Object} [attributes] - 属性。
1718
* @usage

src/openlayers/overlay/vectortile/MapboxStyles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Text from 'ol/style/Text';
2020
* <p style="font-size: 13px">该功能依赖 <a href='https://github.com/boundlessgeo/ol-mapbox-style'>ol-mapbox-style</a> 插件,请确认引入该插件。</p>
2121
* `<script type="text/javascript" src="https://rawgit.com/boundlessgeo/ol-mapbox-style/v2.11.2-1/dist/olms.js"></script>`
2222
* </div>
23+
* @modulecategory Overlay
2324
* @category Visualization VectorTile
2425
* @param {Object} options - 参数。
2526
* @param {(string|undefined)} [options.url] - SuperMap iServer 地图服务地址,例如'http://localhost:8090/iserver/services/map-mvt-test/rest/maps/test',与options.style互斥,优先级低于options.style。

src/openlayers/overlay/vectortile/VectorTileStyles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Text from 'ol/style/Text';
1616
/**
1717
* @class VectorTileStyles
1818
* @classdesc 矢量瓦片风格。
19+
* @modulecategory Overlay
1920
* @category Visualization VectorTile
2021
* @param {Object} options - 交互时所需可选参数。
2122
* @extends {ol.Observable}

src/openlayers/services/AddressMatchService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Util as CommonUtil } from '@supermap/iclient-common/commontypes/Util';
88
* @class AddressMatchService
99
* @category iServer AddressMatch
1010
* @classdesc 地址匹配服务。
11+
* @modulecategory Services
1112
* @example
1213
* new AddressMatchService(url,options)
1314
* .code(function(result){

src/openlayers/services/ChartService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { ChartService as CommonChartService } from '@supermap/iclient-common/iSe
1010
* @class ChartService
1111
* @category iServer Map Chart
1212
* @classdesc 海图服务。
13+
* @modulecategory Services
1314
* @extends {ServiceBase}
1415
* @example
1516
* new ChartService(url).queryChart(param,function(result){

src/openlayers/services/DataFlowService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { DataFlowService as DataFlow } from '@supermap/iclient-common/iServer/Da
88
* @class DataFlowService
99
* @category iServer DataFlow
1010
* @classdesc 数据流服务。
11+
* @modulecategory Services
1112
* @extends {ServiceBase}
1213
* @example
1314
* new DataFlowService(url).queryChart(param,function(result){

src/openlayers/services/DatasetService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { UpdateDatasetParameters } from '@supermap/iclient-common/iServer/Update
1010
* @class DatasetService
1111
* @category iServer Data Dataset
1212
* @classdesc 数据集服务类。
13+
* @modulecategory Services
1314
* @param {string} url - 服务地址。
1415
* @param {Object} options - 参数。
1516
* @param {string} [options.proxy] - 服务代理地址。

src/openlayers/services/DatasourceService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { SetDatasourceParameters } from '@supermap/iclient-common/iServer/SetDat
99
* @class DatasourceService
1010
* @category iServer Data Datasource
1111
* @classdesc 数据源服务类。
12+
* @modulecategory Services
1213
* @param {string} url - 服务地址。
1314
* @param {Object} options - 参数。
1415
* @param {string} [options.proxy] - 服务代理地址。

0 commit comments

Comments
 (0)