Skip to content

Commit

Permalink
removed viewState when udpating layer for #286
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed Apr 4, 2020
1 parent ce4e0ac commit ba8e434
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 @@ -193,10 +193,10 @@ 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 // issue 239 & 286
});
}

Expand Down

0 comments on commit ba8e434

Please sign in to comment.