How to use the panel.hide function in panel

To help you get started, we’ve selected a few panel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pmlrsg / GISportal / src / js / API.js View on Github external
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){