Merge pull request #245 from andygup/fix_gh-pages

v2.1.1
This commit is contained in:
Andy 2014-09-22 19:11:25 -06:00
commit 74091c61fa
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,8 @@
# offline-editor-js - Changelog
## Version 2.1.1 - Sep 22, 2014
- Closes #244 - broken attachements-editor sample gh-pages
## Version 2.1 - Sep 18, 2014
- Closes #236 - Minor typo in How to use TPKLayer doc
- Closes #237 - Completely rebuilt gh-pages. Now we have an online demo app page.

View File

@ -96,7 +96,7 @@
// a proxy page is required to upload attachments
// refer to "Using the Proxy Page" for more information: https://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html
//esriConfig.defaults.io.proxyUrl = "../lib/proxy.php";
esriConfig.defaults.io.proxyUrl = window.proxyPath;
esriConfig.defaults.io.proxyUrl = null; //can be set to null when using a CORS-enabled server
var offlineFeaturesManager = new O.esri.Edit.OfflineFeaturesManager();
offlineFeaturesManager.initAttachments(function(success)
@ -109,8 +109,8 @@
map = new Map("map", {
basemap: "streets",
center: [-122.427, 37.769],
zoom: 15
center: [-88.1,41.7],
zoom: 11
});
map.on("load", mapLoaded);
@ -123,7 +123,7 @@
function mapLoaded()
{
featureLayer = new FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0",{
featureLayer = new FeatureLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",{
mode: FeatureLayer.MODE_ONDEMAND
//mode: FeatureLayer.MODE_SNAPSHOT
});