Adds proxyPath support to OfflineEditBasic

This commit is contained in:
Andy Gup 2016-05-11 11:51:32 -06:00
parent 1291c932b0
commit 13fad4fcbf

View File

@ -947,8 +947,11 @@ define([
}
}
// Respect the proxyPath if one has been set (Added at v3.2.0)
var url = this.proxyPath ? this.proxyPath + "?" + layer.url : layer.url;
var req = new XMLHttpRequest();
req.open("POST", layer.url + "/applyEdits", true);
req.open("POST", url + "/applyEdits", true);
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
req.onload = function()
{