Really long post , regarding the meaning of Maya!
Maya (/ˈmɑːjə/; Devanagari: माया, IAST: māyā), literally "illusion" or "magic", has multiple meanings in Indian philosophies depending on the context. In ancient Vedic literature, Māyā literally implies extraordinary power and wisdom. In later Vedic texts and modern literature dedicated to Indian traditions, Māyā connotes a "magic show, an illusion where things appear to be present but are not what they seem". Māyā is also a spiritual concept connoting "that which exists, but is constantly changing and thus is spiritually unreal", and the "power or the principle that conceals the true character of spiritual reality".
In Buddhism, Maya is the name of Gautama Buddha's mother. In Hinduism, Maya is also an epithet for goddess, and the name of a manifestation of Lakshmi, the goddess of "wealth, prosperity and love". Maya is also a name for girls.
Māyā (Sanskrit: माया) is a word with unclear etymology, probably comes from the root mā which means "to measure".
According to Monier Williams, māyā meant "wisdom and extraordinary power" in an earlier older language, but from the Vedic period onwards, the word came to mean "illusion, unreality, deception, fraud, trick, sorcery, witchcraft and magic". However, P. D. Shastri states that the Monier Williams' list is a "loose definition, misleading generalization", and not accurate in interpreting ancient Vedic and medieval era Sanskrit texts; instead, he suggests a more accurate meaning of māyā is "appearance, not mere illusion". According to William Mahony, the root of the word may be man- or "to think", implying the role of imagination in the creation of the world. In early Vedic usage, the term implies, states Mahony, "the wondrous and mysterious power to turn an idea into a physical reality".
In Sikhism, the world is regarded as both transitory and relatively real. God is viewed as the only reality, but within God exist both conscious souls and nonconscious objects; these created objects are also real. Natural phenomena are real but the effects they generate are unreal. māyā is as the events are real yet māyā is not as the effects are unreal. Sikhism believes that people are trapped in the world because of five vices: lust, anger, greed, attachment, and ego. Maya enables these five vices and makes a person think the physical world is "real," whereas, the goal of Sikhism is to rid the self of them. Consider the following example: In the moonless night, a rope lying on the ground may be mistaken for a snake. We know that the rope alone is real, not the snake. However, the failure to perceive the rope gives rise to the false perception of the snake. Once the darkness is removed, the rope alone remains; the snake disappears.
The Soul is imagined first, then the particularity of objects,
https://carljungdepthpsychologysite.blo ... H71nrixVPZ
External and internal, as one knows so one remembers.
As a rope, not perceived distinctly in dark, is erroneously imagined,
As snake, as a streak of water, so is the Soul (Atman) erroneously imagined.
As when the rope is distinctly perceived, and the erroneous imagination withdrawn,
Only the rope remains, without a second, so when distinctly perceived, the Atman.
When he as Pranas (living beings), as all the diverse objects appears to us,
Then it is all mere Maya, with which the Brahman (Supreme Soul) deceives himself.
— Gaudapada, Māṇḍukya Kārikā 2.16-19 
In the Samkhya philosophy Prakrti dances Maya to the god, repeating the process of the great illusion innumerable times so that he can understand himself in all his infinite aspects.
https://jenniferlilla.wordpress.com/201 ... ng-factor/
Thus the veil of Maya is a sort of private theater in which the god can see all aspects of himself and so become conscious.
The only chance for the creator god to know himself is when Prakrti is performing for him.
And this is despite the fact that it is his illusion, that it is Maya and should be dissolved because illusion means suffering and suffering should be dispelled.
One might say, “Stop your illusion as soon as possible, your illusion will make you suffer.”
“She is the great illusionist, the seductress who draws him into life with her Maya-and not only into life’s reasonable and useful aspects, but into its frightful paradoxes and ambivalences where good and evil, success and ruin, hop and despair, counterbalance one another. Because she is greatest danger she demands from a man his greatest, and if has it in him she will receive it.” (CW 9ii, para. 24)
https://en.m.wikisource.org/wiki/The_Co ... nd_Freedom
We are all like this in the world. A legend tells how once Nârada said to Krishna, "Lord, show me Maya." A few days passed away, and Krishna asked Narada to make a trip with him towards a desert, and after walking for several miles, Krishna said, "Narada, I am thirsty; can you fetch some water for me?" "I will go at once, sir, and get you water." So Narada went. At a little distance there was a village; he entered the village in search of water and knocked at a door, which was opened by a most beautiful young girl. At the sight of her he immediately forgot that his Master was waiting for water, perhaps dying for the want of it. He forgot everything and began to talk with the girl. All that day he did not return to his Master. The next day, he was again at the house, talking to the girl. That talk ripened into love; he asked the father for the daughter, and they were married and lived there and had children. Thus twelve years passed. His father-in-law died, he inherited his property. He lived, as he seemed to think, a very happy life with his wife and children, his fields and his cattle and so forth. Then came a flood. One night the river rose until it overflowed its banks and flooded the whole village. Houses fell, men and animals were swept away and drowned, and everything was floating in the rush of the stream. Narada had to escape. With one hand be held his wife, and with the other two of his children; another child was on his shoulders, and he was trying to ford this tremendous flood. After a few steps he found the current was too strong, and the child on his shoulders fell and was borne away. A cry of despair came from Narada. In trying to save that child, he lost his grasp upon one of the others, and it also was lost. At last his wife, whom he clasped with all his might, was torn away by the current, and he was thrown on the bank, weeping and wailing in bitter lamentation. Behind him there came a gentle voice, "My child, where is the water? You went to fetch a pitcher of water, and I am waiting for you; you have been gone for quite half an hour." "Half an hour! " Narada exclaimed. Twelve whole years had passed through his mind, and all these scenes had happened in half an hour! And this is Maya.
Two videos that I found quite explanatory :
(This one from ancient Greece )
and a last one i forgot to add