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 Aug 21, 2017
1 parent 3ba7b0e commit a8562ce
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 a8562ce

Please sign in to comment.