Skip to content

Commit 9decafc

Browse files
author
caoxinke@supermap.com
committed
fix OpenLayers下一些不恰当的注释。
1 parent 50a7aa3 commit 9decafc

File tree

6 files changed

+53
-37
lines changed

6 files changed

+53
-37
lines changed

dist/iclient9-openlayers.js

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57163,11 +57163,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
5716357163
* @classdesc 百度地图图层源。
5716457164
* @param opt_options - {Object} 创建地图参数可选参数:<br>
5716557165
* url - {string} 服务地址。<br>
57166-
* attributions - {string} 版权描述信息。<br>
57167-
* cacheSize - {number} 缓冲大小。<br>
57168-
* tileLoadFunction - {function} 切片加载完成后执行函数。<br>
57169-
* maxZoom - {Object} 最大缩放级别。<br>
57170-
* opaque - {boolean} 是否透明。
5717157166
* @extends ol.source.TileImage{@linkdoc-openlayers/ol.source.TileImage}
5717257167
*/
5717357168
var BaiduMap = exports.BaiduMap = function (_ol$source$TileImage) {
@@ -57275,8 +57270,18 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
5727557270
* @classdesc SuperMap iServer Image图层源。
5727657271
* @param options - {Object} 服务参数:<br>
5727757272
* url - {string} 服务地址。<br>
57278-
* attributions - {string} 版权描述信息。<br>
57279-
* serverType {SuperMap.ServerType} 服务类型。
57273+
* tileGrid - {@linkdoc-openlayers/ol.tilegrid.TileGrid} 瓦片网格对象。<br>
57274+
* serverType - {SuperMap.ServerType} 服务类型。<br>
57275+
* redirect - {boolean} 是否重定向,默认为false。<br>
57276+
* transparent - {boolean} 图片是否透明,默认为true。<br>
57277+
* _cache - {boolean} 是否使用缓存,默认为true。<br>
57278+
* prjCoordSys - {Object} 请求的地图的坐标参考系统。当此参数设置的坐标系统不同于地图的原有坐标系统时, 系统会进行动态投影,并返回动态投影后的地图图片。例如:{"epsgCode":3857}。<br>
57279+
* layersID - {string} 获取进行切片的地图图层 ID,即指定进行地图切片的图层,可以是临时图层集,也可以是当前地图中图层的组合。如果此参数缺省则对全部图层进行切片。layersID 可以是临时图层创建时templayers的ID。<br>
57280+
* clipRegionEnabled - {boolean} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
57281+
* clipRegion - {@linkdoc-openlayers/ol.geom.Geometry} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
57282+
* overlapDisplayed - {boolean} 地图对象在同一范围内时,是否重叠显示,默认为 false。如果为 true,则同一范围内的对象会直接压盖;如果为 false 则通过 overlapDisplayedOptions 控制对象不压盖显示。<br>
57283+
* overlapDisplayedOptions - {@link SuperMap.OverlapDisplayedOptions} 避免地图对象压盖显示的过滤选项,当 overlapDisplayed 为 false 时有效,用来增强对地图对象压盖时的处理。<br>
57284+
* tileversion - {string} 切片版本名称,_cache 为 true 时有效。
5728057285
* @extends ol.source.TileImage{@linkdoc-openlayers/ol.source.TileImage}
5728157286
*/
5728257287
var ImageSuperMapRest = exports.ImageSuperMapRest = function (_ol$source$TileImage) {
@@ -57536,11 +57541,6 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
5753657541
* @classdesc 超图云地图图层源。
5753757542
* @param opt_options - {Object} 可选参数:如:<br>
5753857543
* url - {string} 服务地址。默认地址为 http://t2.supermapcloud.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z} <br>
57539-
* attributions - {string} 版权描述信息。<br>
57540-
* cacheSize - {number} 缓冲大小。<br>
57541-
* tileLoadFunction - {function} 切片加载完成后执行函数。<br>
57542-
* maxZoom - {Object} 最大缩放级别。<br>
57543-
* opaque - {boolean} 是否透明。
5754457544
* @extends ol.source.XYZ{@linkdoc-openlayers/ol.source.XYZ}
5754557545
*/
5754657546
var SuperMapCloud = exports.SuperMapCloud = function (_ol$source$XYZ) {
@@ -57611,11 +57611,18 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
5761157611
* @classdesc SuperMap iServer TileImage图层源。
5761257612
* @param options - {Object} 可选参数。如:<br>
5761357613
* url - {string} 服务地址。<br>
57614-
* attributions - {string} 版权描述信息。<br>
57615-
* cacheSize - {number} 缓冲大小。<br>
57616-
* tileLoadFunction - {function} 切片加载完成后执行函数。<br>
57617-
* maxZoom - {Object} 最大缩放级别。<br>
57618-
* opaque - {boolean} 是否透明。
57614+
* tileGrid - {@linkdoc-openlayers/ol.tilegrid.TileGrid} 瓦片网格对象。<br>
57615+
* serverType - {SuperMap.ServerType} 服务类型。<br>
57616+
* redirect - {boolean} 是否重定向,默认为false。<br>
57617+
* transparent - {boolean} 图片是否透明,默认为true。<br>
57618+
* _cache - {boolean} 是否使用缓存,默认为true。<br>
57619+
* prjCoordSys - {Object} 请求的地图的坐标参考系统。当此参数设置的坐标系统不同于地图的原有坐标系统时, 系统会进行动态投影,并返回动态投影后的地图图片。例如:{"epsgCode":3857}。<br>
57620+
* layersID - {string} 获取进行切片的地图图层 ID,即指定进行地图切片的图层,可以是临时图层集,也可以是当前地图中图层的组合。如果此参数缺省则对全部图层进行切片。layersID 可以是临时图层创建时templayers的ID。<br>
57621+
* clipRegionEnabled - {boolean} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
57622+
* clipRegion - {@linkdoc-openlayers/ol.geom.Geometry} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
57623+
* overlapDisplayed - {boolean} 地图对象在同一范围内时,是否重叠显示,默认为 false。如果为 true,则同一范围内的对象会直接压盖;如果为 false 则通过 overlapDisplayedOptions 控制对象不压盖显示。<br>
57624+
* overlapDisplayedOptions - {@link SuperMap.OverlapDisplayedOptions} 避免地图对象压盖显示的过滤选项,当 overlapDisplayed 为 false 时有效,用来增强对地图对象压盖时的处理。<br>
57625+
* tileversion - {string} 切片版本名称,_cache 为 true 时有效。
5761957626
* @extends ol.source.TileImage{@linkdoc-openlayers/ol.source.TileImage}
5762057627
*/
5762157628
var TileSuperMapRest = exports.TileSuperMapRest = function (_ol$source$TileImage) {
@@ -92116,7 +92123,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
9211692123
/* 473 */
9211792124
/***/ (function(module, exports) {
9211892125

92119-
module.exports = {"_args":[[{"raw":"proj4@2.3.15","scope":null,"escapedName":"proj4","name":"proj4","rawSpec":"2.3.15","spec":"2.3.15","type":"version"},"G:\\iClient9"]],"_from":"proj4@2.3.15","_id":"proj4@2.3.15","_inCache":true,"_location":"/proj4","_nodeVersion":"6.1.0","_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/proj4-2.3.15.tgz_1471808262546_0.6752060337457806"},"_npmUser":{"name":"ahocevar","email":"andreas.hocevar@gmail.com"},"_npmVersion":"3.8.6","_phantomChildren":{},"_requested":{"raw":"proj4@2.3.15","scope":null,"escapedName":"proj4","name":"proj4","rawSpec":"2.3.15","spec":"2.3.15","type":"version"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/proj4/-/proj4-2.3.15.tgz","_shasum":"5ad06e8bca30be0ffa389a49e4565f51f06d089e","_shrinkwrap":null,"_spec":"proj4@2.3.15","_where":"G:\\iClient9","author":"","bugs":{"url":"https://github.com/proj4js/proj4js/issues"},"contributors":[{"name":"Mike Adair","email":"madair@dmsolutions.ca"},{"name":"Richard Greenwood","email":"rich@greenwoodmap.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"},{"name":"Richard Marsden","url":"http://www.winwaed.com"},{"name":"T. Mittan"},{"name":"D. Steinwand"},{"name":"S. Nelson"}],"dependencies":{"mgrs":"~0.0.2"},"description":"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.","devDependencies":{"browserify":"~12.0.1","chai":"~1.8.1","curl":"git://github.com/cujojs/curl.git","grunt":"~0.4.2","grunt-browserify":"~4.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0","istanbul":"~0.2.4","mocha":"~1.17.1","tin":"~0.4.0"},"directories":{"test":"test","doc":"docs"},"dist":{"shasum":"5ad06e8bca30be0ffa389a49e4565f51f06d089e","tarball":"https://registry.npmjs.org/proj4/-/proj4-2.3.15.tgz"},"gitHead":"9fa5249c1f4183d5ddee3c4793dfd7b9f29f1886","homepage":"https://github.com/proj4js/proj4js#readme","jam":{"main":"dist/proj4.js","include":["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},"license":"MIT","main":"lib/index.js","maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"ahocevar","email":"andreas.hocevar@gmail.com"}],"name":"proj4","optionalDependencies":{},"readme":"ERROR: No README data found!","repository":{"type":"git","url":"git://github.com/proj4js/proj4js.git"},"scripts":{"test":"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},"version":"2.3.15"}
92126+
module.exports = {"_args":[["proj4@2.3.15","F:\\codes\\iClient9"]],"_from":"proj4@2.3.15","_id":"proj4@2.3.15","_inBundle":false,"_integrity":"sha1-WtBui8owvg/6OJpJ5FZfUfBtCJ4=","_location":"/proj4","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"proj4@2.3.15","name":"proj4","escapedName":"proj4","rawSpec":"2.3.15","saveSpec":null,"fetchSpec":"2.3.15"},"_requiredBy":["/"],"_resolved":"http://registry.npm.taobao.org/proj4/download/proj4-2.3.15.tgz","_spec":"2.3.15","_where":"F:\\codes\\iClient9","author":"","bugs":{"url":"https://github.com/proj4js/proj4js/issues"},"contributors":[{"name":"Mike Adair","email":"madair@dmsolutions.ca"},{"name":"Richard Greenwood","email":"rich@greenwoodmap.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"},{"name":"Richard Marsden","url":"http://www.winwaed.com"},{"name":"T. Mittan"},{"name":"D. Steinwand"},{"name":"S. Nelson"}],"dependencies":{"mgrs":"~0.0.2"},"description":"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.","devDependencies":{"browserify":"~12.0.1","chai":"~1.8.1","curl":"git://github.com/cujojs/curl.git","grunt":"~0.4.2","grunt-browserify":"~4.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0","istanbul":"~0.2.4","mocha":"~1.17.1","tin":"~0.4.0"},"directories":{"test":"test","doc":"docs"},"homepage":"https://github.com/proj4js/proj4js#readme","jam":{"main":"dist/proj4.js","include":["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},"license":"MIT","main":"lib/index.js","name":"proj4","repository":{"type":"git","url":"git://github.com/proj4js/proj4js.git"},"scripts":{"test":"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},"version":"2.3.15"}
9212092127

9212192128
/***/ }),
9212292129
/* 474 */

dist/iclient9-openlayers.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.

src/openlayers/mapping/BaiduMap.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ import ol from 'openlayers';
55
* @classdesc 百度地图图层源。
66
* @param opt_options - {Object} 创建地图参数可选参数:<br>
77
* url - {string} 服务地址。<br>
8-
* attributions - {string} 版权描述信息。<br>
9-
* cacheSize - {number} 缓冲大小。<br>
10-
* tileLoadFunction - {function} 切片加载完成后执行函数。<br>
11-
* maxZoom - {Object} 最大缩放级别。<br>
12-
* opaque - {boolean} 是否透明。
138
* @extends ol.source.TileImage{@linkdoc-openlayers/ol.source.TileImage}
149
*/
1510
export class BaiduMap extends ol.source.TileImage {
@@ -73,4 +68,5 @@ export class BaiduMap extends ol.source.TileImage {
7368
}
7469

7570
}
71+
7672
ol.source.BaiduMap = BaiduMap;

src/openlayers/mapping/ImageSuperMapRest.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,18 @@ import {Util} from '../core/Util';
1414
* @classdesc SuperMap iServer Image图层源。
1515
* @param options - {Object} 服务参数:<br>
1616
* url - {string} 服务地址。<br>
17-
* attributions - {string} 版权描述信息。<br>
18-
* serverType {SuperMap.ServerType} 服务类型。
17+
* tileGrid - {@linkdoc-openlayers/ol.tilegrid.TileGrid} 瓦片网格对象。<br>
18+
* serverType - {SuperMap.ServerType} 服务类型。<br>
19+
* redirect - {boolean} 是否重定向,默认为false。<br>
20+
* transparent - {boolean} 图片是否透明,默认为true。<br>
21+
* _cache - {boolean} 是否使用缓存,默认为true。<br>
22+
* prjCoordSys - {Object} 请求的地图的坐标参考系统。当此参数设置的坐标系统不同于地图的原有坐标系统时, 系统会进行动态投影,并返回动态投影后的地图图片。例如:{"epsgCode":3857}。<br>
23+
* layersID - {string} 获取进行切片的地图图层 ID,即指定进行地图切片的图层,可以是临时图层集,也可以是当前地图中图层的组合。如果此参数缺省则对全部图层进行切片。layersID 可以是临时图层创建时templayers的ID。<br>
24+
* clipRegionEnabled - {boolean} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
25+
* clipRegion - {@linkdoc-openlayers/ol.geom.Geometry} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
26+
* overlapDisplayed - {boolean} 地图对象在同一范围内时,是否重叠显示,默认为 false。如果为 true,则同一范围内的对象会直接压盖;如果为 false 则通过 overlapDisplayedOptions 控制对象不压盖显示。<br>
27+
* overlapDisplayedOptions - {@link SuperMap.OverlapDisplayedOptions} 避免地图对象压盖显示的过滤选项,当 overlapDisplayed 为 false 时有效,用来增强对地图对象压盖时的处理。<br>
28+
* tileversion - {string} 切片版本名称,_cache 为 true 时有效。
1929
* @extends ol.source.TileImage{@linkdoc-openlayers/ol.source.TileImage}
2030
*/
2131
export class ImageSuperMapRest extends ol.source.TileImage {

src/openlayers/mapping/SuperMapCloud.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ import ol from 'openlayers';
55
* @classdesc 超图云地图图层源。
66
* @param opt_options - {Object} 可选参数:如:<br>
77
* url - {string} 服务地址。默认地址为 http://t2.supermapcloud.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z} <br>
8-
* attributions - {string} 版权描述信息。<br>
9-
* cacheSize - {number} 缓冲大小。<br>
10-
* tileLoadFunction - {function} 切片加载完成后执行函数。<br>
11-
* maxZoom - {Object} 最大缩放级别。<br>
12-
* opaque - {boolean} 是否透明。
138
* @extends ol.source.XYZ{@linkdoc-openlayers/ol.source.XYZ}
149
*/
1510
export class SuperMapCloud extends ol.source.XYZ {
@@ -37,4 +32,5 @@ export class SuperMapCloud extends ol.source.XYZ {
3732
});
3833
}
3934
}
35+
4036
ol.source.SuperMapCloud = SuperMapCloud;

src/openlayers/mapping/TileSuperMapRest.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ import {Util} from '../core/Util';
1414
* @classdesc SuperMap iServer TileImage图层源。
1515
* @param options - {Object} 可选参数。如:<br>
1616
* url - {string} 服务地址。<br>
17-
* attributions - {string} 版权描述信息。<br>
18-
* cacheSize - {number} 缓冲大小。<br>
19-
* tileLoadFunction - {function} 切片加载完成后执行函数。<br>
20-
* maxZoom - {Object} 最大缩放级别。<br>
21-
* opaque - {boolean} 是否透明。
17+
* tileGrid - {@linkdoc-openlayers/ol.tilegrid.TileGrid} 瓦片网格对象。<br>
18+
* serverType - {SuperMap.ServerType} 服务类型。<br>
19+
* redirect - {boolean} 是否重定向,默认为false。<br>
20+
* transparent - {boolean} 图片是否透明,默认为true。<br>
21+
* _cache - {boolean} 是否使用缓存,默认为true。<br>
22+
* prjCoordSys - {Object} 请求的地图的坐标参考系统。当此参数设置的坐标系统不同于地图的原有坐标系统时, 系统会进行动态投影,并返回动态投影后的地图图片。例如:{"epsgCode":3857}。<br>
23+
* layersID - {string} 获取进行切片的地图图层 ID,即指定进行地图切片的图层,可以是临时图层集,也可以是当前地图中图层的组合。如果此参数缺省则对全部图层进行切片。layersID 可以是临时图层创建时templayers的ID。<br>
24+
* clipRegionEnabled - {boolean} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
25+
* clipRegion - {@linkdoc-openlayers/ol.geom.Geometry} 地图显示裁剪的区域。是一个面对象,当 clipRegionEnabled = true 时有效,即地图只显示该区域覆盖的部分。<br>
26+
* overlapDisplayed - {boolean} 地图对象在同一范围内时,是否重叠显示,默认为 false。如果为 true,则同一范围内的对象会直接压盖;如果为 false 则通过 overlapDisplayedOptions 控制对象不压盖显示。<br>
27+
* overlapDisplayedOptions - {@link SuperMap.OverlapDisplayedOptions} 避免地图对象压盖显示的过滤选项,当 overlapDisplayed 为 false 时有效,用来增强对地图对象压盖时的处理。<br>
28+
* tileversion - {string} 切片版本名称,_cache 为 true 时有效。
2229
* @extends ol.source.TileImage{@linkdoc-openlayers/ol.source.TileImage}
2330
*/
2431
export class TileSuperMapRest extends ol.source.TileImage {
@@ -213,7 +220,7 @@ export class TileSuperMapRest extends ol.source.TileImage {
213220
var scale = Util.resolutionToScale(resolution, dpi, unit);
214221
var tileSize = ol.size.toSize(me.tileGrid.getTileSize(z, me.tmpSize));
215222
var layerUrl = getFullRequestUrl.call(me);
216-
return layerUrl +encodeURI( "&x=" + x + "&y=" + y + "&width=" + tileSize[0] + "&height=" + tileSize[1] + "&scale=" + scale);
223+
return layerUrl + encodeURI("&x=" + x + "&y=" + y + "&width=" + tileSize[0] + "&height=" + tileSize[1] + "&scale=" + scale);
217224
}
218225

219226
}

0 commit comments

Comments
 (0)