/**
* @fileOverview
* Copyright (c) 2013 Regione Autonoma della Sardegna
* Published under the GPL license.
* See https://sardegnageoportale.it/webgis/license.txt
* for the full text of the license.
* @version 0.1
*/
/**
* @namespace framework.plugins
*/
Ext.namespace("framework.form");
/**
* Combo to select the active layer of the map.
* This implementation, by default, place a comboBox on the center of the map.
* The component shoult be put inside a panel to customize position inside the map.
* @name_ LayersComboBox
* @class Creates a Combo to select the active layer of the map.
* @constructor
@extends Ext.form.ComboBox
*/
framework.form.LayersComboBox = Ext.extend(Ext.form.ComboBox,
/**
* @lends framework.form.LayersComboBox.prototype
*/
{
/** private: property[groupName]
* group name filter,
* @public
* @type String
*/
groupName: null,
/** private: property[layers]
* layers object that populate the comboBox ,
* @public
* @type [object] array of layers
*/
layers: null,
/** private: property[order]
* Groups order on comboBox,
* @public
* @type [String]
*/
order: null,
/** private: property[tpl]
* template result search.
* @private
* @type Ext.XTemplate
*/
tpl: new Ext.XTemplate(
'