Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*/
gisportal.api['panel.hide'] = function(data, options){
options = options || {};
if(options.describeOnly){
return "Panel Hidden";
}
if(options.selectorOnly){
return '.js-hide-panel';
}
$('.js-hide-panel').trigger('click');
};
/*
'data' does not need to contain anything.
*/
gisportal.api['panel.show'] = function(data, options){
options = options || {};
if(options.describeOnly){
return "Panel Shown";
}
if(options.selectorOnly){
return '.js-show-tools';
}
$('.js-show-tools').trigger('click');
};
/*
'data' must contain the following:
id: The id of the layer to be removed
layerName: The name of the layer to be removed
*/