Set My Maps Panels as Open by Default

Overview

If you want to have all the panels in My Maps open by default this can be achieved by modifying the E:\iShareData\LIVE\Config\web\mycouncil.aspx file to add the following to the <div id=”atContainer>

Step-by-step guide

  1. Open E:\iShareData\LIVE\Config\web\mycouncil.aspx in a text editor such as Notepad++

  2. Add the following to the section shown below.

// By default display all My Maps panels var panelsCollapseStatus = localStorage.getItem('astun-isharemaps//:panelsCollapseStatus'); if (panelsCollapseStatus == null) { localStorage.setItem('astun-isharemaps//:panelsCollapseStatus', 'all panels open'); }

 

3. Test the behaviour on your My Maps site. Rather than panels being closed by default as shown below.

 

they are open with everything expanded.

You may not see your changes being served due to file caching. In this case you can work around this by doing the following:

  1. Open a Command Prompt as an Administrator

  2. Change to the WebApps\Web folder, delete the link file and recreate it.
    For example to recreate the WebApps\Web\mycouncil.aspx link file:

cd /d D:\Astun\iShare\TEST\WebApps\Web del mycouncil.aspx mklink mycouncil.aspx E:\iShareData\TEST\Config\web\mycouncil.aspx