Skip to content

Commit 3dd9312

Browse files
YOUYOUNGxiongjiaojiao
authored andcommitted
【feature】新增按需加载, review by songym
1 parent 6bddc5b commit 3dd9312

File tree

1,078 files changed

+76240
-76126
lines changed

Some content is hidden

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

1,078 files changed

+76240
-76126
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
* eol=lf

build/build.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>自定义打包</title>
55
<link rel="shortcut icon" type="image/x-icon" href="../web/img/favicon.ico"/>
66
<meta charset="UTF-8">
7-
<link href="https://iclient.supermap.io/web\libs/bootstrap/css/bootstrap.css" rel="stylesheet">
7+
<link href="https://iclient.supermap.io/web/libs/bootstrap/css/bootstrap.css" rel="stylesheet">
88
<style type="text/css">
99
body {
1010
font: 12px/1.4 Verdana, sans-serif;

build/deps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ deps = {
444444
"TileVectorLayer": {
445445
"name": "矢量瓦片",
446446
"src": [
447-
'./src/leaflet/overlay/TileVectorLayer.js'
447+
'./src/leaflet/overlay/TiledVectorLayer.js'
448448
],
449449
"modules": [{
450450
"name": "L.supermap.tiledVectorLayer",

build/jsdocs/classic/docs.json

+63-33
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,66 @@
11
{
2-
"opts": {
3-
"recurse": true,
4-
"template": "../template",
5-
"configPath": "../classic",
6-
"destination": "./docs/classic"
2+
"opts": {
3+
"recurse": true,
4+
"template": "../template",
5+
"configPath": "../classic",
6+
"destination": "./docs/classic"
7+
},
8+
"disqus": "",
9+
"tags": {
10+
"allowUnknownTags": true
11+
},
12+
"i18n": {
13+
"defaultLang": "en",
14+
"possibleLang": ["en"],
15+
"dbFilePath": "./build/jsdocs/classic"
16+
},
17+
"source": {
18+
"includePattern": ".+\\.js?$",
19+
"include": [
20+
"src/classic",
21+
"src/common/thirdparty/elasticsearch",
22+
"src/common/iServer/CommonServiceBase.js",
23+
"src/common/iServer/GeoCodingParameter.js",
24+
"src/common/iServer/GeoDecodingParameter.js",
25+
"src/common/iServer/CreateDatasetParameters.js",
26+
"src/common/iServer/UpdateDatasetParameters.js",
27+
"src/common/iServer/BuffersAnalystJobsParameter.js",
28+
"src/common/iServer/KernelDensityJobParameter.js",
29+
"src/common/iServer/SingleObjectQueryJobsParameter.js",
30+
"src/common/iServer/SummaryAttributesJobsParameter.js",
31+
"src/common/iServer/SummaryMeshJobParameter.js",
32+
"src/common/iServer/SummaryRegionJobParameter.js",
33+
"src/common/iServer/TopologyValidatorJobsParameter.js",
34+
"src/common/iServer/VectorClipJobsParameter.js",
35+
"src/common/iServer/MappingParameters.js",
36+
"src/common/iServer/OutputSetting.js",
37+
"src/common/iServer/ThemeGridRangeItem.js",
38+
"src/common/iServer/OverlayGeoJobParameter.js",
39+
"src/common/iServer/ServerColor.js",
40+
"src/common/iServer/DatasourceConnectionInfo.js",
41+
"src/common/iServer/SetDatasourceParameters.js",
42+
"src/common/commontypes/Bounds.js",
43+
"src/common/commontypes/LonLat.js",
44+
"src/common/commontypes/Pixel.js",
45+
"src/common/REST.js"
46+
],
47+
"exclude": [
48+
"src/classic/libs",
49+
"src/classic/theme",
50+
"src/classic/resource",
51+
"src/common/overlay/levelRenderer",
52+
"src/common/lang/locales"
53+
]
54+
},
55+
"plugins": ["plugins/markdown"],
56+
"templates": {
57+
"cleverLinks": false,
58+
"monospaceLinks": false,
59+
"default": {
60+
"outputSourceFiles": false
761
},
8-
"disqus":"",
9-
"tags": {
10-
"allowUnknownTags": true
11-
},
12-
"i18n": {
13-
"defaultLang": "en",
14-
"possibleLang": ["en"],
15-
"dbFilePath":"./build/jsdocs/classic"
16-
},
17-
"source": {
18-
"includePattern": ".+\\.js?$",
19-
"include": [
20-
"src/classic","src/common/thirdparty","src/common/iServer/CommonServiceBase.js",
21-
"src/common/iServer/GeoCodingParameter.js","src/common/iServer/GeoDecodingParameter.js"
22-
],
23-
"exclude": [
24-
"src/classic/libs","src/classic/theme","src/classic/resource","src/common/overlay/levelRenderer"
25-
]
26-
},
27-
"plugins": ["plugins/markdown"],
28-
"templates": {
29-
"cleverLinks": false,
30-
"monospaceLinks": false,
31-
"default": {
32-
"outputSourceFiles": false
33-
}
34-
//"applicationName": "iClient Classic"
35-
}
62+
"namespace": "SuperMap",
63+
"npm": "@supermap/iclient-classic",
64+
"cdn": "https://iclient.supermap.io/dist/classic/iclient-classic.js"
65+
}
3666
}

build/jsdocs/leaflet/docs.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@
2323
"src/common","src/leaflet"
2424
],
2525
"exclude": [
26-
"src/common/overlay/levelRenderer"
26+
"src/common/overlay/levelRenderer",
27+
"src/common/lang/locales"
2728
]
28-
29+
30+
},
31+
"plugins": ["plugins/markdown","../plugins/usage"],
32+
"markdown": {
33+
"tags": ["usage"]
2934
},
30-
"plugins": ["plugins/markdown","../plugins/factoryFunction"],
3135
"templates": {
3236
"cleverLinks": true,
3337
"monospaceLinks": true,
3438
"default": {
3539
"outputSourceFiles": false
36-
}
37-
//"applicationName": "iClient for Leaflet"
40+
},
41+
"namespace": "L.supermap",
42+
"npm":"@supermap/iclient-leaflet",
43+
"cdn":"https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"
3844
}
3945
}

build/jsdocs/leaflet/index.md

+26-26
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,43 @@ SuperMap iClient for Leaflet 是一套基于Leaflet的云GIS网络客户端开
88
<th width="33.3%">SuperMap 云 GIS</th><th width="33.3%"></th><th width="33.3%"></th>
99
</tr><tr>
1010
<td><p>API for SuperMap iServer / iEdge / iPortal / Online</p>
11-
<a href="L.supermap.mapService.html">L.supermap.mapService</a><br>
12-
<a href="L.supermap.featureService.html">L.supermap.featureService</a><br>
13-
<a href="L.supermap.spatialAnalystService.html">L.supermap.spatialAnalystService</a><br>
14-
<a href="L.supermap.networkAnalystService.html">L.supermap.networkAnalystService</a><br>
15-
<a href="L.supermap.trafficTransferAnalystService.html">L.supermap.trafficTransferAnalystService</a><br>
16-
<a href="L.supermap.addressMatchService.html">L.supermap.addressMatchService</a></td>
11+
<a href="MapService.html">MapService</a><br>
12+
<a href="FeatureService.html">FeatureService</a><br>
13+
<a href="SpatialAnalystService.html">SpatialAnalystService</a><br>
14+
<a href="NetworkAnalystService.html">NetworkAnalystService</a><br>
15+
<a href="TrafficTransferAnalystService.html">TrafficTransferAnalystService</a><br>
16+
<a href="AddressMatchService.html">AddressMatchService</a></td>
1717
<td>
1818
<br>
19-
<a href="L.supermap.processingService.html">L.supermap.processingService</a><br>
20-
<a href="L.supermap.dataFlowService.html">L.supermap.dataFlowService</a><br>
21-
<a href="L.supermap.webmap.html">L.supermap.webmap</a><br>
22-
<a href="SuperMap.iPortal.html">SuperMap.iPortal</a><br>
23-
<a href="SuperMap.Online.html">SuperMap.Online</a><br>
24-
......</td>
25-
<td><p> </p></td>
19+
<a href="ProcessingService.html">ProcessingService</a><br>
20+
<a href="DataFlowService.html">DataFlowService</a><br>
21+
<a href="WebMap.html">WebMap</a><br>
22+
<a href="IPortal.html">IPortal</a><br>
23+
<a href="Online.html">Online</a><br>
24+
......</td>
25+
<td><p> </p></td>
2626
</tr></table>
2727
<table><tr>
2828
<th width="33.3%">可视化</th><th width="33.3%">地图</th><th width="33.3%">投影</th>
2929
</tr><tr>
3030
<td><p>丰富的可视化效果,矢量瓦片、客户端专题图、开源可视化库[ECharts](https://echarts.baidu.com/),[MapV](https://mapv.baidu.com/)</p>
31-
<a href="L.supermap.tiledVectorLayer.html">L.supermap.tiledVectorLayer</a><br>
32-
<a href="L.supermap.graphicLayer.html">L.supermap.graphicLayer</a><br>
33-
<a href="L.supermap.dataFlowLayer.html">L.supermap.dataFlowLayer</a><br>
34-
<a href="L.supermap.rangeThemeLayer.html">L.supermap.rangeThemeLayer</a><br>
35-
<a href="L.supermap.echartsLayer.html">L.supermap.echartsLayer</a><br>
36-
<a href="L.supermap.mapVLayer.html">L.supermap.mapVLayer</a><br>
31+
<a href="TiledVectorLayer.html">TiledVectorLayer</a><br>
32+
<a href="GraphicLayer.html">GraphicLayer</a><br>
33+
<a href="DataFlowLayer.html">DataFlowLayer</a><br>
34+
<a href="RangeThemeLayer.html">RangeThemeLayer</a><br>
35+
<a href="EchartsLayer.html">EchartsLayer</a><br>
36+
<a href="MapVLayer.html">MapVLayer</a><br>
3737
......</td>
3838
<td><p>丰富地图,iSevrer REST MAP、互联网地图、OGC服务</p>
39-
<a href="L.supermap.tiledMapLayer.html">L.supermap.tiledMapLayer</a><br>
40-
<a href="L.supermap.imageMapLayer.html">L.supermap.imageMapLayer</a><br>
41-
<a href="L.supermap.baiduTileLayer.html">L.supermap.baiduTileLayer</a><br>
42-
<a href="L.supermap.tiandituTileLayer.html">L.supermap.tiandituTileLayer</a><br>
43-
<a href="L.supermap.wmtsLayer.html">L.supermap.wmtsLayer</a><br>
39+
<a href="TiledMapLayer.html">TiledMapLayer</a><br>
40+
<a href="ImageMapLayer.html">ImageMapLayer</a><br>
41+
<a href="BaiduTileLayer.html">BaiduTileLayer</a><br>
42+
<a href="TiandituTileLayer.html">TiandituTileLayer</a><br>
43+
<a href="WMTSLayer.html">WMTSLayer</a><br>
4444
......</td>
4545
<td><p>扩展Leaflet投影,更易用</p>
46-
<a href="L.Proj.CRS.html">L.Proj.CRS</a><br>
47-
<a href="L.CRS.NonEarthCRS.html">L.CRS.NonEarthCRS</a><br>
46+
<a href="CRS.html">CRS</a><br>
47+
<a href="NonEarthCRS.html">NonEarthCRS</a><br>
4848
</tr></table>
4949

5050
## 参考API

build/jsdocs/mapboxgl/docs.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,22 @@
2222
"src/common","src/mapboxgl"
2323
],
2424
"exclude": [
25-
"src/common/overlay/levelRenderer"
25+
"src/common/overlay/levelRenderer",
26+
"src/common/lang/locales"
2627
]
2728
},
28-
"plugins": ["plugins/markdown"],
29+
"plugins": ["plugins/markdown","../plugins/usage"],
30+
"markdown": {
31+
"tags": ["usage"]
32+
},
2933
"templates": {
3034
"cleverLinks": true,
3135
"monospaceLinks": true,
3236
"default": {
3337
"outputSourceFiles": false
34-
}
35-
//"applicationName": "iClient for MapboxGL"
38+
},
39+
"namespace": "mapboxgl.supermap",
40+
"npm":"@supermap/iclient-mapboxgl",
41+
"cdn":"https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"
3642
}
3743
}

build/jsdocs/openlayers/docs.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,22 @@
2222
"src/common","src/openlayers"
2323
],
2424
"exclude": [
25-
"src/common/overlay/levelRenderer"
25+
"src/common/overlay/levelRenderer",
26+
"src/common/lang/locales"
2627
]
2728
},
28-
"plugins": ["plugins/markdown"],
29+
"plugins": ["plugins/markdown","../plugins/usage"],
30+
"markdown": {
31+
"tags": ["usage"]
32+
},
2933
"templates": {
3034
"cleverLinks": false,
3135
"monospaceLinks": false,
3236
"default": {
3337
"outputSourceFiles": false
34-
}
35-
//"applicationName": "iClient for OpenLayers"
38+
},
39+
"namespace": "ol.supermap",
40+
"npm":"@supermap/iclient-ol",
41+
"cdn":"https://iclient.supermap.io/dist/openlayers/iclient-ol.js"
3642
}
3743
}

build/jsdocs/openlayers/index.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ SuperMap iClient for OpenLayers 是一套基于OpenLayers的云GIS网络客户
88
<th width="33.3%">SuperMap 云 GIS</th><th width="33.3%"></th><th width="33.3%"></th>
99
</tr><tr>
1010
<td><p>API for SuperMap iServer / iEdge / iPortal / Online</p>
11-
<a href="ol.supermap.MapService.html">ol.supermap.MapService</a><br>
12-
<a href="ol.supermap.FeatureService.html">ol.supermap.FeatureService</a><br>
13-
<a href="ol.supermap.SpatialAnalystService.html">ol.supermap.SpatialAnalystService</a><br>
14-
<a href="ol.supermap.NetworkAnalystService.html">ol.supermap.NetworkAnalystService</a><br>
15-
<a href="ol.supermap.TrafficTransferAnalystService.html">ol.supermap.TrafficTransferAnalystService</a><br>
16-
<a href="ol.supermap.AddressMatchService.html">ol.supermap.AddressMatchService</a></td>
11+
<a href="MapService.html">MapService</a><br>
12+
<a href="FeatureService.html">FeatureService</a><br>
13+
<a href="SpatialAnalystService.html">SpatialAnalystService</a><br>
14+
<a href="NetworkAnalystService.html">NetworkAnalystService</a><br>
15+
<a href="TrafficTransferAnalystService.html">TrafficTransferAnalystService</a><br>
16+
<a href="AddressMatchService.html">AddressMatchService</a></td>
1717
<td>
1818
<br>
19-
<a href="ol.supermap.ProcessingService.html">ol.supermap.ProcessingService</a><br>
20-
<a href="ol.supermap.DataFlowService.html">ol.supermap.DataFlowService</a><br>
21-
<a href="ol.supermap.WebMap.html">ol.supermap.WebMap</a><br>
22-
<a href="SuperMap.iPortal.html">SuperMap.iPortal</a><br>
23-
<a href="SuperMap.Online.html">SuperMap.Online</a><br>
24-
......</td>
25-
<td><p> </p></td>
19+
<a href="ProcessingService.html">ProcessingService</a><br>
20+
<a href="DataFlowService.html">DataFlowService</a><br>
21+
<a href="WebMap.html">WebMap</a><br>
22+
<a href="IPortal.html">IPortal</a><br>
23+
<a href="Online.html">Online</a><br>
24+
......</td>
25+
<td><p> </p></td>
2626
</tr></table>
2727
<table><tr>
2828
<th width="33.3%">可视化</th><th width="33.3%">地图</th><th width="33.3%"></th>

build/jsdocs/plugins/usage.js

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
const env = require('jsdoc/lib/jsdoc/env');
2+
3+
const globalParams = env.conf.templates;
4+
exports.defineTags = function (dictionary) {
5+
dictionary.defineTag('usage', {
6+
mustHaveValue: false,
7+
mustNotHaveDescription: false,
8+
canHaveType: false,
9+
canHaveName: false,
10+
onTagged: function (doclet, tag) {
11+
if (tag.value) {
12+
doclet.usage = tag.value;
13+
} else {
14+
const deprecatedClasses = [];
15+
let aliasClass = '';
16+
let deprecatedClassInstance;
17+
if (doclet.tags) {
18+
for (let index = 0; index < doclet.tags.length; index++) {
19+
const tag = doclet.tags[index];
20+
if (tag.title === 'deprecatedclass') {
21+
deprecatedClasses.push(tag.value);
22+
}
23+
if (tag.title === 'aliasclass') {
24+
aliasClass = tag.value;
25+
}
26+
if (tag.title === 'deprecatedclassinstance') {
27+
deprecatedClassInstance = tag.value;
28+
}
29+
}
30+
}
31+
doclet.usage = {
32+
className: doclet.kind === 'class' ? doclet.name : '',
33+
aliasClass: aliasClass,
34+
globalParams,
35+
deprecatedClasses: deprecatedClasses,
36+
deprecatedClassInstance: deprecatedClassInstance
37+
};
38+
}
39+
}
40+
});
41+
};
42+
43+
exports.handlers = {
44+
newDoclet: function (e) {
45+
var usage = e.doclet.usage;
46+
if (usage && usage.indexOf) {
47+
for (const key in globalParams) {
48+
if (Object.hasOwnProperty.call(globalParams, key)) {
49+
const element = globalParams[key];
50+
e.doclet.usage = e.doclet.usage.replace(`{${key}}`, element);
51+
}
52+
}
53+
}
54+
}
55+
};

0 commit comments

Comments
 (0)