Including Additional Map Features in iShare Lite - pre v5.4.0

You need to pass a layers parameter to the JavaScript function that loads the map, where you specify the extra layers you wish to be displayed when the map is loaded.

These layers must be defined within iShare Studio and you may display as many layers as you wish by separating each Layer name with a comma as shown below. 

Example
Astun.JS.IncludeJS('lite',function(){
         $('atMap').map = new Astun.JS.Map('atMap',{
            layers:'PARISH,WARD'
         });
});

The above code will display the map at its default zoom level and to the full extents as defined in iShare Studio as we have not supplied a view parameter.

You may also pass a view and/or mapsource parameter along with the layers parameter. If you wish to do this then the parameters must be separated by a comma as shown below.

Example
Astun.JS.IncludeJS('lite',function(){
         $('atMap').map = new Astun.JS.Map('atMap',{
                    layers:'PARISH,WARD',
                    view:{easting:495553, northing:175654, zoom:2000},
                    mapSource:’Workshop/AllMaps’
          });
});