Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  this.mapToolbarService.isDarkModeActive$
  2.       .pipe(takeUntil(this.unsubscriber.done))
  3.       .subscribe((isDarkModeActive: boolean) => {
  4.         this.changeTheAgCircleColor(isDarkModeActive);
  5.         ComponentChangeUtils.detectChanges(this.changeRef);
  6.       });
  7.   }
  8. //------------------------------------------------------------
  9.   changeTheAgCircleColor(isDarkModeActive: boolean) {
  10.     if (isDarkModeActive) {
  11.       this.pickupClusterPoints.forEach((point) => {
  12.         point.fillColor = '#FFCF4D';
  13.         point.strokeColor = '#FFEB3B';
  14.       });
  15.     } else {
  16.       console.log('light mode', isDarkModeActive);
  17.       // this.pickupClusterPoints.forEach((point) => {
  18.       //   point.fillColor = '#FFCF4D';
  19.       //   point.strokeColor = '#333';
  20.       // });
  21.     }
  22.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement