Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@

# allow displaying the live location of workers on the map
MAP_WORKERS = True
# show details like IV and Moves in Map
MAP_SHOW_DETAILS = True
# filter these Pokemon from the map to reduce traffic and browser load
#MAP_FILTER_IDS = [161, 165, 16, 19, 167]

Expand Down
2 changes: 2 additions & 0 deletions monocle/sanitized.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
'MAP_FILTER_IDS': sequence,
'MAP_PROVIDER_ATTRIBUTION': str,
'MAP_PROVIDER_URL': str,
'MAP_SHOW_DETAILS': bool,
'MAP_START': sequence,
'MAP_WORKERS': bool,
'MAX_CAPTCHAS': int,
Expand Down Expand Up @@ -176,6 +177,7 @@
'MAP_FILTER_IDS': None,
'MAP_PROVIDER_URL': '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'MAP_PROVIDER_ATTRIBUTION': '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
'MAP_SHOW_DETAILS': True,
'MAP_WORKERS': True,
'MAX_CAPTCHAS': 0,
'MAX_RETRIES': 3,
Expand Down
2 changes: 1 addition & 1 deletion monocle/web_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def sighting_to_marker(pokemon, names=POKEMON, moves=MOVES, damage=DAMAGE):
'expires_at': pokemon.expire_timestamp,
}
move1 = pokemon.move_1
if pokemon.move_1:
if conf.MAP_SHOW_DETAILS and move1:
move2 = pokemon.move_2
marker['atk'] = pokemon.atk_iv
marker['def'] = pokemon.def_iv
Expand Down