Trying to use: https://developers.google.com/apps-script/articles/maps_tutorial?hl=en I receive the map correctly. However, I would like for the map to remain on one tab. The bottom of the code reads:
SpreadsheetApp.getActiveSpreadsheet().show(ui);
And I think I should change it to
SpreadsheetApp.getActiveSpreadsheet().getSheetByName('restaurants').show(ui);
so that the map remains on one tab. But it gives me an error message. What can I do?