From 8d7ef26efcdf69efdf4810853861b6fa5b6ea67b Mon Sep 17 00:00:00 2001 From: Javier Abadia Date: Tue, 18 Feb 2014 00:16:10 +0100 Subject: [PATCH] renamed offlineEnabler to offlineTilesEnabler --- README.md | 14 +++++++------- .../{offlineEnabler.js => offlineTilesEnabler.js} | 0 samples/tiles-indexed-db.html | 6 +++--- ...es.html => SpecRunner.offlineTilesEnabler.html} | 10 +++++----- ...neEnablerSpec.js => offlineTilesEnablerSpec.js} | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) rename lib/tiles/{offlineEnabler.js => offlineTilesEnabler.js} (100%) rename test/{SpecRunner.tiles.html => SpecRunner.offlineTilesEnabler.html} (92%) rename test/spec/{offlineEnablerSpec.js => offlineTilesEnablerSpec.js} (98%) diff --git a/README.md b/README.md index 95766c1..fbb6054 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This repo contains two sets of libraries: * `offlineFeaturesManager` - Extends and overrides a feature layer. * `editsStore` - Provides static helper methods for working with the offline data store. - `/tiles`: stores portions of tiled maps client-side and uses the cached tiles when device is offline - * `offlineEnabler` Extends and overrides a tiled map service. + * `offlineTilesEnabler` Extends and overrides a tiled map service. ##Workflows Supported (v1) The following workflow is currently supported for both both features and tiles: @@ -77,7 +77,7 @@ Methods | Returns | Description `getLocalStorageSizeBytes()` | Number | Returns the total size of all items in bytes for local storage cached using the current domain name. -##offlineEnabler +##offlineTilesEnabler Extends and overrides a tiled map service. ###Methods @@ -123,12 +123,12 @@ The `tiles` library allows a developer to extend a tiled layer with offline supp ``` -**Step 2** Include the `tiles/offlineEnabler` library in your app. +**Step 2** Include the `tiles/offlineTilesEnabler` library in your app. ```js require([ "esri/map", - "tiles/offlineEnabler"], - function(Map,offlineEnabler) + "tiles/offlineTilesEnabler"], + function(Map,offlineTilesEnabler) { ... }); @@ -136,7 +136,7 @@ The `tiles` library allows a developer to extend a tiled layer with offline supp **Step 3** Once your map is created (either using new Map() or using esriUtils.createMap(webmapid,...), you extend the basemap layer with the offline functionality ```js var basemapLayer = map.getLayer( map.layerIds[0] ); - offlineEnabler.extend(basemapLayer,function(success) + offlineTilesEnabler.extend(basemapLayer,function(success) { if(success) { // Now we can use offline functionality on this layer @@ -223,7 +223,7 @@ It calculates the geographic boundary of each of the tiles stored in the indexed The `edit` library allows a developer to extend a feature layer with offline editing support. -**Step 1** Include `offline.min.js` and `tiles/offlineEnabler` in your app. +**Step 1** Include `offline.min.js` and `tiles/offlineTilesEnabler` in your app. ```html - +