[2.0] Map and zoom functionality
Posted: Mon Oct 21, 2024 8:46 pm
It seems that major changes were made to how the map and zoom setting are now set and applied.
Zoom mods used to rely on player.zoom_to_world, player.open_map and player.close_map. These no longer exist and it is not at all clear how to convert such mods to use the player.setcontroller function.
What is the equivalent of these functions in 2.0?
How is zoom level set now in remote view?
I can call player.setcontroller with type = defines.controllers.remote and it enters a new map mode, but I can't find an elegant way to exit this map mode.
Can we please get some clarity on how to re-implement zoom and map features that used to work just fine in 1.0?
Zoom mods used to rely on player.zoom_to_world, player.open_map and player.close_map. These no longer exist and it is not at all clear how to convert such mods to use the player.setcontroller function.
What is the equivalent of these functions in 2.0?
How is zoom level set now in remote view?
I can call player.setcontroller with type = defines.controllers.remote and it enters a new map mode, but I can't find an elegant way to exit this map mode.
Can we please get some clarity on how to re-implement zoom and map features that used to work just fine in 1.0?