How do you refresh the map from a script call?

I tried $Game_Map.refresh, but it said that $Game_Map was undefined...  I tried looking at the rpg_objects.js file to get a hint (it's worked for me in the past) and I'm lost....


Any help would be helpful thanks
Try with:

Code:
$gameMap.refresh()
Try with:



$gameMap.refresh()

That works, thanks

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-refresh-the-map-from-a-script-call.63645/