How to get all objects in a gameMap

Hi there.
I used this code before to get all objects in the map

game.partialMaps["mapId"].objects

but i’ll get undefined for now.
Did the way to get objects changed?
thanks for help!

This hasn’t changed. You’re probably just checking it before the objects have finished syncing from the server. await game.waitForInit() first, then check partialMaps