Skip to content

Commit a5fd099

Browse files
author
潘卓然ParnDeedlit
committed
【站点】【修复】【修复datastore的let变量导致的问题】
1 parent 2899452 commit a5fd099

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

website/public/static/demo/config/config-headers.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,14 @@
306306
"title": "开发API",
307307
"icon": "iconsanfangAPI",
308308
"hightlights": [[false, false, false, false, false, false, false, false], [false]],
309-
"links": [["地图服务", "OGC服务", "目录服务", "要素服务", "量算服务", "专题图服务", "分析服务", "客户端可视化"], ["Mapbox-GL"]],
309+
"links": [["地图服务", "OGC服务", "目录服务", "要素服务", "几何分析服务", "专题图服务", "分析服务", "客户端可视化"], ["Mapbox-GL"]],
310310
"routes": [
311311
[
312312
"./docs/mapboxgl/module-%25E5%259C%25B0%25E5%259B%25BE%25E6%259C%258D%25E5%258A%25A1.html",
313313
"./docs/mapboxgl/module-OGC%25E6%259C%258D%25E5%258A%25A1.html",
314314
"./docs/mapboxgl/module-%25E7%259B%25AE%25E5%25BD%2595%25E6%259C%258D%25E5%258A%25A1.html",
315315
"./docs/mapboxgl/module-%25E8%25A6%2581%25E7%25B4%25A0%25E6%259C%258D%25E5%258A%25A1.html",
316-
"./docs/mapboxgl/module-%25E9%2587%258F%25E7%25AE%2597%25E6%259C%258D%25E5%258A%25A1.html",
316+
"./docs/mapboxgl/module-%25E5%2587%25A0%25E4%25BD%2595%25E5%2588%2586%25E6%259E%2590%25E6%259C%258D%25E5%258A%25A1.html",
317317
"./docs/mapboxgl/module-%25E4%25B8%2593%25E9%25A2%2598%25E5%259B%25BE%25E6%259C%258D%25E5%258A%25A1.html",
318318
"./docs/mapboxgl/module-%25E5%2588%2586%25E6%259E%2590%25E6%259C%258D%25E5%258A%25A1.html",
319319
"./docs/mapboxgl/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E5%258F%25AF%25E8%25A7%2586%25E5%258C%2596.html"
@@ -380,15 +380,15 @@
380380
{
381381
"title": "开发API",
382382
"icon": "iconsanfangAPI",
383-
"links": [["地图服务", "OGC服务", "目录服务", "要素服务", "量算服务", "专题图服务", "分析服务", "客户端可视化"], ["Leaflet"]],
383+
"links": [["地图服务", "OGC服务", "目录服务", "要素服务", "几何分析服务", "专题图服务", "分析服务", "客户端可视化"], ["Leaflet"]],
384384
"hightlights": [[false, false, false, false, false, false, false, false], [false]],
385385
"routes": [
386386
[
387387
"./docs/leaflet/module-%25E5%259C%25B0%25E5%259B%25BE%25E6%259C%258D%25E5%258A%25A1.html",
388388
"./docs/leaflet/module-OGC%25E6%259C%258D%25E5%258A%25A1.html",
389389
"./docs/leaflet/module-%25E7%259B%25AE%25E5%25BD%2595%25E6%259C%258D%25E5%258A%25A1.html",
390390
"./docs/leaflet/module-%25E8%25A6%2581%25E7%25B4%25A0%25E6%259C%258D%25E5%258A%25A1.html",
391-
"./docs/leaflet/module-%25E9%2587%258F%25E7%25AE%2597%25E6%259C%258D%25E5%258A%25A1.html",
391+
"./docs/leaflet/module-%25E5%2587%25A0%25E4%25BD%2595%25E5%2588%2586%25E6%259E%2590%25E6%259C%258D%25E5%258A%25A1.html",
392392
"./docs/leaflet/module-%25E4%25B8%2593%25E9%25A2%2598%25E5%259B%25BE%25E6%259C%258D%25E5%258A%25A1.html",
393393
"./docs/leaflet/module-%25E5%2588%2586%25E6%259E%2590%25E6%259C%258D%25E5%258A%25A1.html",
394394
"./docs/leaflet/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E5%258F%25AF%25E8%25A7%2586%25E5%258C%2596.html"
@@ -487,15 +487,15 @@
487487
{
488488
"title": "开发API",
489489
"icon": "iconsanfangAPI",
490-
"links": [["地图服务", "OGC服务", "目录服务", "要素服务", "量算服务", "专题图服务", "分析服务", "客户端可视化"], ["OpenLayers"]],
490+
"links": [["地图服务", "OGC服务", "目录服务", "要素服务", "几何分析服务", "专题图服务", "分析服务", "客户端可视化"], ["OpenLayers"]],
491491
"hightlights": [[false, false, false, false, false, false, false, false], [false]],
492492
"routes": [
493493
[
494494
"./docs/openlayers/module-%25E5%259C%25B0%25E5%259B%25BE%25E6%259C%258D%25E5%258A%25A1.html",
495495
"./docs/openlayers/module-OGC%25E6%259C%258D%25E5%258A%25A1.html",
496496
"./docs/openlayers/module-%25E7%259B%25AE%25E5%25BD%2595%25E6%259C%258D%25E5%258A%25A1.html",
497497
"./docs/openlayers/module-%25E8%25A6%2581%25E7%25B4%25A0%25E6%259C%258D%25E5%258A%25A1.html",
498-
"./docs/openlayers/module-%25E9%2587%258F%25E7%25AE%2597%25E6%259C%258D%25E5%258A%25A1.html",
498+
"./docs/openlayers/module-%25E5%2587%25A0%25E4%25BD%2595%25E5%2588%2586%25E6%259E%2590%25E6%259C%258D%25E5%258A%25A1.html",
499499
"./docs/openlayers/module-%25E4%25B8%2593%25E9%25A2%2598%25E5%259B%25BE%25E6%259C%258D%25E5%258A%25A1.html",
500500
"./docs/openlayers/module-%25E5%2588%2586%25E6%259E%2590%25E6%259C%258D%25E5%258A%25A1.html",
501501
"./docs/openlayers/module-%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF%25E5%258F%25AF%25E8%25A7%2586%25E5%258C%2596.html"

website/public/static/demo/mapboxgl/example/datastore/postgis/postgis-metadata.htm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,19 @@
127127
map.on('mousemove', function (e) {
128128
document.getElementById('mouse-position').innerHTML = "经度:" + e.lngLat.lng.toFixed(2) + ",纬度:" + e.lngLat.lat.toFixed(2);
129129
});
130-
let param = {
130+
var param = {
131131
networkProtocol: 'http',
132132
ip: '192.168.96.101',
133133
port: 9091,
134134
path: 'bigdata03/bigdata03',
135135
tableNames: 'mpf24091'
136136
};
137137

138-
let catlog = new Zondy.DataStore.PostGIS.PostgisTableService(param);
138+
var catlog = new Zondy.DataStore.PostGIS.PostgisTableService(param);
139139
catlog.query(success, fail);
140140
function success(res) {
141-
let result = res.value[0].t;
142-
let html = '<div class="table-popup-wrapper">' + makeHtml(result) + '</div>';
141+
var result = res.value[0].t;
142+
var html = '<div class="table-popup-wrapper">' + makeHtml(result) + '</div>';
143143
popup.setLngLat([121.4693, 31.12307]).setHTML(html).addTo(map);
144144
}
145145

@@ -148,8 +148,8 @@
148148
}
149149

150150
function makeHtml(result) {
151-
let html = '<div><table border="1"><tr><th>属性</th><th>值</th></tr>';
152-
let keys = Object.keys(result);
151+
var html = '<div><table border="1"><tr><th>属性</th><th>值</th></tr>';
152+
var keys = Object.keys(result);
153153
// 显示非对象属性
154154
keys.forEach((key) => {
155155
if (typeof result[key] != 'object' || result[key] == undefined) {
@@ -164,10 +164,10 @@
164164
if (result[key] && typeof result[key] == 'object') {
165165
html += `<th colspan="2">${key}</th>`;
166166
html += '<tr><th>属性</th><th>值</th></tr>';
167-
let object = result[key];
168-
let fields = Object.keys(object);
167+
var object = result[key];
168+
var fields = Object.keys(object);
169169
fields.forEach((f) => {
170-
let item;
170+
var item;
171171
if (object[f] && typeof object[f] === 'object') {
172172
item = makeHtml(object[f]);
173173
} else {
143 KB
Loading
225 KB
Loading

0 commit comments

Comments
 (0)