File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ define(['backbone',
5555
5656 this . listenTo ( Communicator . mediator , "map:center" , this . centerMap ) ;
5757 this . listenTo ( Communicator . mediator , "map:layer:change" , this . changeLayer ) ;
58+ this . listenTo ( Communicator . mediator , 'map:set:extent' , this . onSetExtent ) ;
5859 this . listenTo ( Communicator . mediator , "productCollection:sortUpdated" , this . onSortProducts ) ;
5960 this . listenTo ( Communicator . mediator , "productCollection:updateOpacity" , this . onUpdateOpacity ) ;
6061 this . listenTo ( Communicator . mediator , "selection:activated" , this . onSelectionActivated ) ;
@@ -342,6 +343,11 @@ define(['backbone',
342343 return this . map . getExtent ( ) ;
343344 } ,
344345
346+ onSetExtent : function ( bbox ) {
347+ this . map . zoomToExtent ( bbox ) ;
348+
349+ } ,
350+
345351 onGetGeoJSON : function ( ) {
346352 return this . geojson . write ( this . vectorLayer . features , true ) ;
347353 }
Original file line number Diff line number Diff line change 4141 var TimeSliderView = Backbone . Marionette . ItemView . extend ( {
4242 id : 'timeslider' ,
4343 events : {
44- 'selectionChanged' : 'onChangeTime'
44+ 'selectionChanged' : 'onChangeTime' ,
45+ 'coverageselected' : 'onCoverageSelected'
4546 } ,
4647 initialize : function ( options ) {
4748 this . options = options ;
You can’t perform that action at this time.
0 commit comments