Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if(options.describeOnly){
return 'Layer hidden - '+ data.layerName;
}
if(options.selectorOnly){
return '.js-toggleVisibility[data-id="' + id + '"]';
}
if(options.highlight){
collaboration.highlightElement($('.js-toggleVisibility[data-id="' + id + '"]'));
}
gisportal.indicatorsPanel.hideLayer(id);
};
/*
'data' does not need to contain anything.
*/
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){