Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UF - Change getFeature GET request to POST #452

Merged
merged 4 commits into from
Apr 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions addons/cadastrapp/js/selectFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,9 @@ GEOR.Addons.Cadastre.searchUFbyParcelle= function(idParcelle, geometry){
callback: function (response) {
var geojson_format = new OpenLayers.Format.GeoJSON();
var result = geojson_format.read(response.responseText);
//read the response from GeoServer
console.log("POST REQUEST");
console.log(result);
console.log("POST REQUEST END");
// do what you want with the features returned...

// If no result display message erreur, no UF at this point

// Else display UF and launch new windows
Ext.each(result, function(feature, index) {
if (feature) {
Expand All @@ -320,11 +318,11 @@ GEOR.Addons.Cadastre.searchUFbyParcelle= function(idParcelle, geometry){
GEOR.Addons.Cadastre.onClickDisplayFIUF(idParcelle);
},
failure: function (response) {
console.log("wrong request!");
console.log("Error ", response.responseText);
pierrejego marked this conversation as resolved.
Show resolved Hide resolved
}
});

Ext.Ajax.request({
/*Ext.Ajax.request({
async : false,
url : GEOR.Addons.Cadastre.UF.WFSLayerSetting.wfsUrl,
method : 'GET',
pierrejego marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -368,7 +366,7 @@ GEOR.Addons.Cadastre.searchUFbyParcelle= function(idParcelle, geometry){

GEOR.Addons.Cadastre.onClickDisplayFIUF(idParcelle);
}
});
});*/

}

Expand Down