﻿// JScript File

Parts.MapFrame = function(id){
    Parts.MapFrame.initializeBase(this, [id]);
    //this.initialize();
}

Parts.MapFrame.prototype.initialize = function(bResizable, rSettings){
    //create resizable component and hook up to MapClient iframe.
    //alert(resizeSettings[1]);
    if(bResizable){
        var resize = $create(Utils.Resize, {id:"ResizableMapFrame"});
        //iframe, mapApi, offsetWidth, offsetHeight, minWidth,  minHeight, maxWidth, maxHeight)
        resize.init($get("mapFrame"), MapApi, rSettings[0], rSettings[1], rSettings[2], 
            rSettings[3], rSettings[4], rSettings[5]);
    }
}
Parts.MapFrame.registerClass('Parts.MapFrame', Parts.Part, Sys.IDisposable);
