/*
 * LLMAP RegionSearch
 * Written by Joshua M. Thompson, Benjamin J. Cool <joshua,ben@linguistlist.org>
 *
 * This object class encapsulates the LLMAP region search interface
 */

LINGUIST.LLMAP.RegionSearch = Ext.extend(Ext.Panel, {
    constructor: function(config) {
        config.layout = 'border';

        config.items  = [
            {
                region: 'center',
                layout: 'fit',
                items: {
                    xtype: 'map',
                    project_mode: true
                }
            }
        ];

        LINGUIST.LLMAP.RegionSearch.superclass.constructor.call(this, config);

        this.xy = [];
        this.map    = this.getComponent(0).getComponent(0);
    }
});

Ext.ComponentMgr.registerType('regionsearch', LINGUIST.LLMAP.RegionSearch);
