require(['hji-common/getArea'],
    function(getArea)
    {        
        var modelOptions = {
            market:    'armls',          // MLS market
            target:    '#search-by-area',// HTML wrapper selector where component's markup will be placed
        },

        /**
         * @area - array of polygons and HJI polygon pointers.
         * @area array can be passed as a value of the polygon filter of Slipstream API
         * @data - raw data for the polygons and custom drawn shapes
         */
        customCallback = function(area, data)
        {
            /* do something with the area data */
        };

        // Instantiate model and pass our options and callback

        new getArea(modelOptions, customCallback );
    }
);

Max Chirkov has written 1 article