Skip to content

Commit ecab52a

Browse files
【示例网站】【侧边栏相关问题修改】【leaflet轨迹动画图控制台打印清除】
1 parent 5788935 commit ecab52a

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

src/leaflet/overlay/timedimension/leaflet.timedimension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export var TimeDimension = (L.Layer || L.Class).extend({
7676
}
7777
this._loadingTimeIndex = newIndex;
7878
var newTime = this._availableTimes[newIndex];
79-
console.log('INIT -- Current time: ' + new Date(newTime).toISOString());
79+
// console.log('INIT -- Current time: ' + new Date(newTime).toISOString());
8080
if (this._checkSyncedLayersReady(this._availableTimes[this._loadingTimeIndex])) {
8181
this._newTimeIndexLoaded();
8282
} else {
@@ -99,7 +99,7 @@ export var TimeDimension = (L.Layer || L.Class).extend({
9999
return;
100100
}
101101
var time = this._availableTimes[this._loadingTimeIndex];
102-
console.log('END -- Current time: ' + new Date(time).toISOString());
102+
// console.log('END -- Current time: ' + new Date(time).toISOString());
103103
this._currentTimeIndex = this._loadingTimeIndex;
104104
this.fire('timeload', {
105105
time: time

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
]
7272
],
7373
"hightlights": [[false, false, false]],
74-
"routes": [["/gallery/vue-cesium#raster", "/gallery/vue-mapboxgl#vue-layer", "/storybook/index.html"]]
74+
"routes": [["/gallery/vue-cesium#raster", "/gallery/vue-mapboxgl#vue-vector", "/storybook/index.html"]]
7575
},
7676
{
7777
"title": "开发API",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,17 +352,17 @@
352352
"childs": [
353353
{
354354
"name": "WMTS",
355-
"file": "wmts",
355+
"file": "arcgis-wmts",
356356
"diffcult": "2",
357357
"detail": "arcgis-ogc-wmts服务",
358358
"icon": "wmts.png",
359359
"update": "最后更新时间:2020-12-17"
360360
},
361361
{
362362
"name": "WMS",
363-
"file": "wms",
363+
"file": "arcgis-wms",
364364
"diffcult": "2",
365-
"detail": "ogc-wms服务",
365+
"detail": "arcgis-ogc-wms服务",
366366
"icon": "wms.png",
367367
"update": "最后更新时间:2020-11-27"
368368
},

website/src/views/layout/components/Sidebar/SidebarDemo.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,19 @@ export default {
7474
let href = window.location.href; // .split("/");
7575
let newHref = href.replace('/demo', '/gallery');
7676
const mapmode = this.$route.params.mapmode;
77-
const match = `/gallery/${mapmode}`;
78-
const matchIndex = newHref.indexOf(match);
79-
const baseUrl = newHref.slice(0, matchIndex + match.length);
77+
const first = this.$route.params.first;
78+
let match,matchIndex,baseUrl;
79+
if (this.$route.params.hasOwnProperty("second")){
80+
match = `/gallery/${mapmode}/${first}`;
81+
matchIndex = newHref.indexOf(match);
82+
match = `/gallery/${mapmode}#${first}`;
83+
baseUrl = newHref.slice(0,matchIndex);
84+
baseUrl = baseUrl + match;
85+
} else {
86+
match = `/gallery/${mapmode}`;
87+
matchIndex = newHref.indexOf(match);
88+
baseUrl = newHref.slice(0, matchIndex + match.length);
89+
}
8090
window.location.href = baseUrl + `#${key}`;
8191
return key;
8292
}

0 commit comments

Comments
 (0)