Is it possible to split these two functions into 2 Variables, rather then one?
drawingInMap = false; Enables or disables the ability to place markers and draw lines in map. Default: true (since Arma 3 1.63+).
could be
drawingInMap and markersOnMap.