This would allow users to write custom extensions/userscripts to directly interact with the map.
Currently, this isn't possible without either manually using dev tools to get the map and make it global, implementing a custom proxy to modify the script or by modifying the script within the mod.