Skip to content

Commit

Permalink
maybe I don't need it for clear_layer #137
Browse files Browse the repository at this point in the history
  • Loading branch information
SymbolixAU committed May 27, 2019
1 parent 06f03c2 commit b5ab712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/htmlwidgets/mapdeck_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ function md_clear_layer( map_id, layer_id ) {
}

// ## issue 137
var vs = window[ map_id + 'map'].viewState;
//var vs = window[ map_id + 'map'].viewState;

window[map_id + 'map'].setProps({
layers: [...window[map_id + 'layers'] ],
viewState: vs
layers: [...window[map_id + 'layers'] ]
//viewState: vs
});
}

Expand Down

0 comments on commit b5ab712

Please sign in to comment.