The map variable describes the current map. It is only available in the Reader designer and Topic template designer.
map contains the response body for the Get a map web service for the currently open document. It gives access to a map's metadata.
To see the content of the map variable in the browser console, enter the following in the JavaScript section of a Custom component, then select Run:
console.log(JSON.stringify(map, null, 2));