This commit is contained in:
Andy Gup 2014-11-26 14:14:07 -07:00
parent 0a6ae22df3
commit b2e497f65d
7 changed files with 28 additions and 14 deletions

View File

@ -1,5 +1,18 @@
# offline-editor-js - Changelog
## Version 2.4 - Nov 26, 2014
- Closes #274 phantom symbols not working correctly
- Updated offlineFeaturesManager.js
- Updated API docs to reflect new functionality.
- Updated appcache-features.html sample to incorporate new functionality.
New functionality:
- Added setPhantomLayerGraphics() - for use with offline browser restarts. Allows you to restore the phantom graphics layer. This layer is used to highlight any points that have been modified while offline.
- Added getPhantomLayerGraphics() - for use with offline browser restarts. Allows you to get a JSON copy of the current phantom graphics layers so that you can save it to a local database such as localStorage.
Breaking changes: none
## Version 2.3.1.2 - Oct 21, 2014
- Closes #267 can't host markdown on gh-pages

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3.1 - 2014-10-14
/*! offline-editor-js - v2.4 - 2014-11-26
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
@ -444,21 +444,22 @@ define([
break;
}
}
}
};
/**
* Sets the phantom layer with a new features.
* @param graphicsArray an array of Graphics
*/
layer.setPhantomLayerGraphics = function(graphicsArray){
//layer._phantomLayer.graphics = graphicsArray;
var length = graphicsArray.length;
for(var i=0; i < length; i++){
var graphic = new Graphic(graphicsArray[i]);
this._phantomLayer.add(graphic);
if(length > 0){
for(var i=0; i < length; i++){
var graphic = new Graphic(graphicsArray[i]);
this._phantomLayer.add(graphic);
}
}
}
};
/**
* Returns the array of graphics from the phantom graphics layer.
@ -480,7 +481,7 @@ define([
break;
}
}
}
};
/**
* Create a featureDefinition

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3.1 - 2014-10-14
/*! offline-editor-js - v2.4 - 2014-11-26
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
define([

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3.1 - 2014-10-14
/*! offline-editor-js - v2.4 - 2014-11-26
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
define([

View File

@ -1,4 +1,4 @@
/*! offline-editor-js - v2.3.1 - 2014-10-14
/*! offline-editor-js - v2.4 - 2014-11-26
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
/**

View File

@ -1,6 +1,6 @@
{
"name": "offline-editor-js",
"version": "2.3.1",
"version": "2.4",
"description": "Lightweight set of libraries for working offline with map tiles and ArcGIS feature services",
"author": "Andy Gup <agup@esri.com> (http://blog.andygup.net)",
"license": "Apache 2",