- Stores now update on their 'open' status at closing and opening time - Store markers and list entries update when 'open' status changes - The countdown to closing/opening in the infowindow updates on the minute, so updates are accurate to time - Clean up errant whitespace
Instead of looking up stores based on postal code, the PHP script now searches based on latitude/longitude. This allows results for every query, fixing the bug where no stores were returned because Google was returning only the postal code prefix. This change also allows returning more than just 5 stores in the future, but that is not implemented in this commit.
Infowindows now consume the #infopane node, which means they will change with the div without needing to redraw the infowindow itself. In practice this means the displayed time-until-closing will update accurately without causing a flicker as the infowindow is redrawn. Additionally, the logic for checking if a store is open was changed to account for stores closed all day.
This commit takes the infopane div from previous versions and displays it in an infowindow pointing to the relevant store when the store is selected. There are also minor fixes to disable the "find me" button when AJAX is being processed.
This commit adds a countdown until closing/opening for stores that are near closing/opening time. For the moment the countdown until closing begins 8 hours before the store closes, for testing purposes. The info pane is still not fully implemented - for the moment it is just a div with some info in it that has yet to be added to the map.
- Tie map and app views together in terms of markers and interactivity - Add colored markers, with colors corresponding to open/closed - Add drag-and-drop functionality for setting address to look around - Disable 'find me' button while AJAX is processed - Make logic for whether or not a store is open more readable - Begin implementing infopane functionality for selected store