[request] how to refresh the shadowmap?

hi there..


So, the situation is, that i swap tiles on the map via

$game_map.data[x,y,l] = new_IDWorks well, but gives me a problem.
The autoshadow of the Tiles is not updated when swapping tiles.


So my question:


How to update the autoshadow layer?


Ps.: Don´t forget my other request: How to refresh the Map?

Original thread: https://forums.rpgmakerweb.com/threads/request-how-to-refresh-the-shadowmap.21831/