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 );
    }
);
This entry was posted in   .
Bookmark the   permalink.

Matt Barrett has written 1 article

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>