@@ -475,6 +475,9 @@ function initSidebar() {
475
475
$ ( '#spawnpoints-switch' ) . prop ( 'checked' , Store . get ( 'showSpawnpoints' ) )
476
476
$ ( '#ranges-switch' ) . prop ( 'checked' , Store . get ( 'showRanges' ) )
477
477
$ ( '#notify-perfection-wrapper' ) . toggle ( Store . get ( 'showPokemonStats' ) )
478
+ $ ( '#hideunnotified-switch' ) . prop ( 'checked' , Store . get ( 'hideNotNotified' ) )
479
+ $ ( '#popups-switch' ) . prop ( 'checked' , Store . get ( 'showPopups' ) )
480
+ $ ( '#bounce-switch' ) . prop ( 'checked' , Store . get ( 'isBounceDisabled' ) )
478
481
$ ( '#sound-switch' ) . prop ( 'checked' , Store . get ( 'playSound' ) )
479
482
$ ( '#pokemoncries' ) . toggle ( Store . get ( 'playSound' ) )
480
483
$ ( '#cries-switch' ) . prop ( 'checked' , Store . get ( 'playCries' ) )
@@ -1677,17 +1680,17 @@ function processPokemon(item) {
1677
1680
1678
1681
if ( ! ( item [ 'encounter_id' ] in mapData . pokemons ) &&
1679
1682
! isPokeExcluded && ! isRarityExcluded && isPokeAlive ) {
1680
- // Add marker to map and item to dict.
1681
- if ( ! item . hidden ) {
1683
+ // Add marker to map and item to dict.
1684
+ const isNotifyPkmn = isNotifyPoke ( item )
1685
+ if ( ! item . hidden && ( ! Store . get ( 'hideNotNotified' ) || isNotifyPkmn ) ) {
1682
1686
const isBounceDisabled = Store . get ( 'isBounceDisabled' )
1683
1687
const scaleByRarity = Store . get ( 'scaleByRarity' )
1684
- const isNotifyPkmn = isNotifyPoke ( item )
1685
1688
1686
1689
if ( item . marker ) {
1687
1690
updatePokemonMarker ( item . marker , map , scaleByRarity , isNotifyPkmn )
1688
1691
} else {
1689
1692
newMarker = setupPokemonMarker ( item , map , isBounceDisabled , scaleByRarity , isNotifyPkmn )
1690
- customizePokemonMarker ( newMarker , item )
1693
+ customizePokemonMarker ( newMarker , item , ! Store . get ( 'showPopups' ) )
1691
1694
item . marker = newMarker
1692
1695
}
1693
1696
@@ -2529,11 +2532,11 @@ $(function () {
2529
2532
$switchActiveRaidGymsOnly . on ( 'change' , function ( ) {
2530
2533
Store . set ( 'showActiveRaidsOnly' , this . checked )
2531
2534
lastgyms = false
2535
+
2532
2536
updateMap ( )
2533
2537
} )
2534
2538
2535
2539
$switchRaidMinLevel = $ ( '#raid-min-level-only-switch' )
2536
-
2537
2540
$switchRaidMinLevel . select2 ( {
2538
2541
placeholder : 'Minimum raid level' ,
2539
2542
minimumResultsForSearch : Infinity
@@ -3019,6 +3022,21 @@ $(function () {
3019
3022
}
3020
3023
} )
3021
3024
3025
+ $ ( '#bounce-switch' ) . change ( function ( ) {
3026
+ Store . set ( 'isBounceDisabled' , this . checked )
3027
+ location . reload ( )
3028
+ } )
3029
+
3030
+ $ ( '#hideunnotified-switch' ) . change ( function ( ) {
3031
+ Store . set ( 'hideNotNotified' , this . checked )
3032
+ location . reload ( )
3033
+ } )
3034
+
3035
+ $ ( '#popups-switch' ) . change ( function ( ) {
3036
+ Store . set ( 'showPopups' , this . checked )
3037
+ location . reload ( )
3038
+ } )
3039
+
3022
3040
$ ( '#cries-switch' ) . change ( function ( ) {
3023
3041
Store . set ( 'playCries' , this . checked )
3024
3042
} )
0 commit comments