From 85b8b10015641011a81ccaec3f0461ee1d722f16 Mon Sep 17 00:00:00 2001 From: Andy Gup Date: Wed, 24 Aug 2016 15:35:17 -0600 Subject: [PATCH 1/2] updated old class name to new class name --- doc/howtousetiles.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/howtousetiles.md b/doc/howtousetiles.md index a0f3bd31..af463fd9 100644 --- a/doc/howtousetiles.md +++ b/doc/howtousetiles.md @@ -146,13 +146,13 @@ This approach is best if you have requirements for restarting or reloading your }); ``` -**Step 2** Create a new instance of `OfflineTileEnablerLayer`. Note, when you instantiate the `Map` leave off the `basemap` property because we are adding a customer tile layer as our basemap. `OfflineTileEnablerLayer` has three properties in the constructor. The first is the REST endpoint of the basemap you want to use, the second is the callback and the last is an optional parameter to preset the layer as online or offline. This will help with with drawing tiles correctly during offline restarts or reloads. +**Step 2** Create a new instance of `OfflineTileAdvanced`. Note, when you instantiate the `Map` leave off the `basemap` property because we are adding a customer tile layer as our basemap. `OfflineTileAdvanced` has four parameters in the [constructor](https://github.com/Esri/offline-editor-js/blob/master/doc/offlinetilesadvanced.md#constructor). The first is the REST endpoint of the basemap you want to use, the second is the callback, the third is a state property to preset the layer as online or offline, and the fourth is an optional parameter to set a custom object store. This will help with with drawing tiles correctly during offline restarts or reloads. -IMPORTANT: If you are trying to use a non-CORS-enabled Feature Service you will need to explicity declare your `proxyPath`. We've set `proxyPath` to `null` here just as an illustration. You don't need to do that since its default is `null`. +IMPORTANT: If you are trying to use a non-CORS-enabled Feature Service you will need to explicity declare your `proxyPath`. We've set `proxyPath` to `null` here just as an illustration, but it's not required. ```js - tileLayer = new O.esri.Tiles.OfflineTileEnablerLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",function(evt){ + tileLayer = new O.esri.Tiles.OfflineTilesAdvanced("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",function(evt){ console.log("Tile Layer Loaded."); // All non-CORS-enabled Feature Services require a proxy. // You can set the property here if needed. @@ -171,7 +171,7 @@ IMPORTANT: If you are trying to use a non-CORS-enabled Feature Service you will ``` -All map events will continue to work normally. Although some methods that are typically available will now have to be accessed through `OfflineTileEnablerLayer` such as `getLevel()`, `getMaxZoom()`, and `getMinZoom()`. +All map events will continue to work normally. Although some methods that are typically available will now have to be accessed through `OfflineTilesAdvanced` such as `getLevel()`, `getMaxZoom()`, and `getMinZoom()`. To get the current extent you will need to monitor the `zoom-end` and `pan-end` events like this: From e268a3ac7ccb1b3a0dec9efeb7905e1ef84a273f Mon Sep 17 00:00:00 2001 From: Andy Gup Date: Wed, 24 Aug 2016 15:38:38 -0600 Subject: [PATCH 2/2] v3.3.2 --- CHANGELOG.md | 7 +++++++ package.json | 2 +- samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dad95b2e..b9e6b4c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # offline-editor-js - Changelog +## Version 3.3.2 - August 24, 2016 + +No breaking changes. + +**Enhancements** +* Updated old class names in howtousetiles.md. + ## Version 3.3.1 - June 12, 2016 No breaking changes. diff --git a/package.json b/package.json index ba5bc250..0e59a8b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "esri-offline-maps", - "version": "3.3.0", + "version": "3.3.2", "description": "Lightweight set of libraries for working offline with map tiles and editing with ArcGIS feature services", "author": "Andy Gup (http://blog.andygup.net)", "license": "Apache 2.0", diff --git a/samples/package.json b/samples/package.json index 942db50c..c9ffcdcc 100644 --- a/samples/package.json +++ b/samples/package.json @@ -9,7 +9,7 @@ "appHomePage": "appcache-tiles.html", "optimizedApiURL": "../samples/jsolib", "arcGISBaseURL": "http://js.arcgis.com/3.14", - "version": "3.3.0", + "version": "3.3.2", "private": true, "description": "manifest generator project", "repository": {