changed postGeoObject function to postMarkerto be more accurate with the api endpoints

This commit is contained in:
Valmo Trindade
2024-08-19 04:46:48 -03:00
parent 3017e1bcf1
commit 733b01b69e
4 changed files with 5 additions and 31 deletions

View File

@@ -1,12 +0,0 @@
params["_unit"];
private _uid_string = "armatak" callExtension ["ManageGeoObject/postGeoObject",[_unit] call armatak_fnc_extract_info];
private _uid_string = _uid_string select 0;
if (_uid_string != "") then {
_uid_string = (_uid_string splitString '"') select 3;
_unit setVariable ["_atak_uid",_uid_string, true];
};
_uid_string

View File

@@ -0,0 +1,3 @@
params["_unit"];
"armatak" callExtension ["post_marker", _unit call armatak_fnc_extract_info];

View File

@@ -1,14 +0,0 @@
params["_unit"];
private _result = "armatak" callExtension ["ManageGeoObject/putGeoObject",[_unit] call armatak_fnc_extract_info];
private _uid_string = _result select 0;
if (_uid_string != "") then {
_uid_string = (_uid_string splitString '"') select 3;
_unit setVariable ["_atak_uid",_uid_string, true];
} else {
_uid_string = "ERROR: " + _result joinString " | ";
};
_uid_string