{"name":"ctrlMapPosition","operator":null,"title":"ctrlMapPosition","type":"command","url":"https://community.bistudio.com/wiki/ctrlMapPosition","revid":377802,"updated":"2026-01-03T04:03:42Z","groups":["GUI Control - Map"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.08"}],"since":{"game":"arma3","name":"Arma 3","version":"2.08"},"arma3_since":"2.08","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"A getter for ctrlMapSetPosition. Returns map position in format [x, y, w, h]. If map is inside a Controls Group, the x and y position is relative to the Controls Group top left corner.","syntaxes":[{"syntax":"ctrlMapPosition map","since":null,"effect":null,"exec":null,"params":[{"name":"map","type":"Control","optional":false,"default":null,"description":"Map control","types":["Control"],"since":null,"text":"map: Control - Map control"}],"returns":{"type":"Array with [x, y, w, h]","types":["Array"],"description":"x: Number - position in x - y: Number - position in y - w: Number - width of the map control - h: Number - height of the map control","text":"Array with [x, y, w, h]\n- x: Number - position in x\n- y: Number - position in y\n- w: Number - width of the map control\n- h: Number - height of the map control"},"form":"unary","operator":null,"left":null,"right":{"text":"map","types":["Control"]}}],"examples":[{"text":"```sqf\nctrlMapPosition _map;\n```","code":["ctrlMapPosition _map;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlMapSetPosition","ctrlCreate"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Map","Introduced with Arma 3 version 2.08","Scripting Commands"]}