File tree Expand file tree Collapse file tree 4 files changed +19
-9
lines changed
src/leaflet/overlay/timedimension
public/static/demo/config Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments