1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
function SendCometCalc(circ) {
var v = JSON.stringify(circ.center);
cent = JSON.parse(v);
var dat = {}
$.ajax({
url: '/Ajax/CalcCircleChange',
type: 'GET',
dataType: 'json',
data: { cle_uid: circ.cle_uid, rs: circ.rs, lat: cent.lat, lng: cent.lng, radius: circ.radius },
success: function (data, statut) {
//console.log(data);
dat = {
"cle_uid": data.cle_uid,
"rs": data.rs,
"radius": Number(data.radius),
"cnt": Number(data.cnt),
"center": { "lat": Number(data.lat), "lng": Number(data.lng) }
}
UpdateDatas(dat);
MycirclesCnt2 += 1;
AffDet(dat);
updateMagicBox();
AddMyCnt();
}
});
return dat;
} |
Partager