Skip to content

Commit 62ca6a3

Browse files
committed
尝试解决sonar block问题(无法识别命名空间) review by songyumeng
1 parent 0cf7b11 commit 62ca6a3

File tree

279 files changed

+14013
-14292
lines changed

Some content is hidden

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

279 files changed

+14013
-14292
lines changed

build/deps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
var deps = {
22
"common": {
33
"core": [
4-
"./src/common/Base.js",
4+
"./src/common/SuperMap.js",
55
"./src/common/REST.js"
66
],
77
"util": [
8-
"./src/common/util/Request.js",
8+
"./src/common/util/Request.js"
99
],
1010
"format": [
1111
"./src/common/format/GeoJSON.js"

dist/iclient9-leaflet.js

Lines changed: 5653 additions & 5724 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.js

Lines changed: 6699 additions & 6790 deletions
Large diffs are not rendered by default.

examples/js/editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function initCodeEditor() {
4646
aceEditor.getSession().setMode("ace/mode/html");
4747
aceEditor.getSession().setUseWrapMode(true);
4848
aceEditor.setShowPrintMargin(false);
49+
aceEditor.$blockScrolling = Infinity;
4950
}
5051
aceEditor.setValue($('#editor').val());
5152
aceEditor.clearSelection();

examples/openlayers/01_tiledMapLayerOverlapped.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<title>SuperMap REST 地图服务底图</title>
66
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
7-
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet"
7+
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet">
88
</head>
99
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%">
1010
<div id="map" style="width: 100%;height:100%;border: 1px solid #dddddd"></div>

src/common/Base.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/common/REST.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/**
1+
var SuperMap = require('./SuperMap');
2+
/**
23
*服务请求返回结果数据类型
34
* GEOJSON: "GEOJSON",
45
* ISERVER: "ISERVER"

src/common/SuperMap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('../legacy/libs/SuperMap_Basic-8.1.1-14426.js');
2+
module.exports = window.SuperMap;

src/common/format/Format.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Class: SuperMap.Format
33
* 读写各种格式的格式类基类。其子类应该包含并实现read和write方法。
44
*/
5-
5+
var SuperMap = require('../SuperMap');
66
SuperMap.Format = SuperMap.Class({
77

88
/**
@@ -102,6 +102,4 @@ SuperMap.Format = SuperMap.Class({
102102
CLASS_NAME: "SuperMap.Format"
103103
});
104104

105-
module.exports = function (options) {
106-
return new SuperMap.Format(options);
107-
};
105+
module.exports = SuperMap.Format;

src/common/format/GeoJSON.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* Inherits from:
1111
* - <SuperMap.Format.JSON>
1212
*/
13+
var SuperMap = require('../SuperMap');
1314
require('./JSON');
14-
1515
SuperMap.Format.GeoJSON = SuperMap.Class(SuperMap.Format.JSON, {
1616

1717
/**
@@ -893,6 +893,4 @@ SuperMap.Format.GeoJSON = SuperMap.Class(SuperMap.Format.JSON, {
893893
CLASS_NAME: "SuperMap.Format.GeoJSON"
894894
});
895895

896-
module.exports = function (options) {
897-
return new SuperMap.Format.GeoJSON(options);
898-
};
896+
module.exports = SuperMap.Format.GeoJSON;

0 commit comments

Comments
 (0)