Changed the formatting of the TileUtil.js a bit.  Also added some connectivity listeners to the app.  When the app goes online, make the wms layers visible. When the app goes offline, make the wms layers invisible.  Also added a map listener for when layers get added to the TileUtil.js.  This doesn’t do anything right now, but it will override the layers getURL.  Need to make sure this doesn’t conflict with the OOM_Workaround.js overrideGetURL
Fixed a bug where the wfs layers don’t always get drawn properly after load.

Also added a flag to the openlayers wms layer’s metadata to specify whether or not the layer has had it’s getURL overridden by the OOM_Workaround
Moved the metadata logic in the OOM_Workaround to it’s own function and changed the way the layers getURL gets overridden, so it’s not the prototypes getURL.  TileUtil isn’t overriding the prototype so if the OOM_Workaround overrides the getURL after TileUtil, we don’t want to call the prototypes getURL
Wired up the location button, moved the logic, executing functions that wait for Arbiter to initialize, into the Arbiter.Init callback
Added a little “warning” view to the map layout to notify the user they need to set the project’s area of interest.
Fixed a bug which prevented the “add layers” and “creating project” from being dismissed
Made several updates:

If the area of interest hasn’t been set, use the open layers layers original getURL method instead of the overridden one from the TileUtil.  Also, don’t download features for a layer if the area of interest hasn’t been set yet.

Updated the SyncHelper for caching tiles.

The cordova file api doesn’t have the option to create parent directories as necessary, so we have to explicitly create the directories for the tile sets before caching the tiles.

Made more modifications to the TileUtil to be used with this version of Arbiter.  Things are working now, but in the future we should refactor a lot of it.

Added a method to Util.java for quick access to show an alert dialog.

Moved the logic for toggling the dialog and buttons related to incomplete projects to the MapChangeHelper

Made some updates to show the sync percentage in the sync progress dialog.  This currently doesn’t include vector data syncing in it’s calculation.

Added a confirmation dialog to confirm the user wan’t to change their area of interest.