Grid State
Constructors
Types
Functions
The tile grid service is called each time the location changes. It checks if the location has moved away from the center of the current tile grid and if it has calculates a new grid.
processGridState is now called from within the single thread that can access the tile grid. This makes it somewhat performance critical. However, by doing this it allows us to disconnect and reconnect the tile grid
Forces the next locationUpdate() to recompute the grid from scratch, even if the location hasn't left the current central area. Used when the on-disk offline map extracts have changed (new download published, or an extract deleted) so the change is picked up on the very next location fix instead of waiting for the user to walk outside the current grid.