Skip to content

Commit 56f79b6

Browse files
GregwarReaver01
authored andcommitted
Adding lure info on pokestop (#157)
1 parent 6ba5609 commit 56f79b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

image/forts/img_pokestop_lure.png

4.84 KB
Loading

js/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,14 @@ var mapView = {
891891
infowindow.open(map, marker);
892892
};
893893
})(self.forts[fort.id], contentString, self.info_windows[fort.id]));
894+
} else {
895+
if (fort.type == 1) {
896+
if ('lure_info' in fort) {
897+
self.forts[fort.id].setIcon('image/forts/img_pokestop_lure.png');
898+
} else {
899+
self.forts[fort.id].setIcon('image/forts/img_pokestop.png');
900+
}
901+
}
894902
}
895903
}
896904
}

0 commit comments

Comments
 (0)