/
Set My Maps Panels as Open by Default

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

 

Related content

Use HTML in Attributes
Use HTML in Attributes
Read with this
Hiding Map Categories panel on loading your Solo Map
Hiding Map Categories panel on loading your Solo Map
More like this
My Maps
Read with this
Enable iShare Maps Permalink Plugin
Enable iShare Maps Permalink Plugin
More like this
My Maps - How-To Articles List
My Maps - How-To Articles List
Read with this
Change the iShare Maps tab text
Change the iShare Maps tab text
More like this