Skip to content

Commit

Permalink
Hide objects instead of deleting
Browse files Browse the repository at this point in the history
Prevents #272 at a cost of a memory leak

For demonstration purpose only
  • Loading branch information
landswellsong committed Oct 21, 2018
1 parent 1869722 commit a21a8a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/app/components/CesiumMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ export default class CesiumContainer extends Component {

clearShape(shape) {
if(defined(shape))
this.viewer.entities.remove(shape);
shape.show = false; // TODO: very ugly, fix scheduled in #272
//this.viewer.entities.remove(shape);
}

/* distance between latlon and cartesian */
Expand Down

0 comments on commit a21a8a7

Please sign in to comment.