1 Reply Latest reply: Jul 6, 2012 6:08 AM by Surendra Masupalli RSS

    Problem regarding maps

      Hi,
      This is regarding map reports. We have used fusion maps for map reports. In that java script has been used.

      The problem is that when I press resize button in the report, the frame of the report is being maximised, instead I want the map to be resized with out maximising the frame of it.
      Pls Can any one help me regarding this.

       

      The scirpt is like this.

       

      function ResizeMap() {


      //x = document.body.innerHTML;
      //document.body.innerText = x;

      var MC = document.getElementById('MainContainer');
      var MD = document.getElementById('mapdiv');

      while (MD.parentNode != MC)
      {
      MD = MD.parentNode;

      }
      //alert(MD);


          Qva.Resize.Frame = MD;
          var objectMgr = Qva.Resize.Frame.AvqMgr;

          if (objectMgr) {        objectMgr.Set(Qva.Resize.Frame.ObjectId, "resize", 'br:750:380', true);    }
          else {
                var binder = Qva.GetBinder(Qva.Resize.Frame.binderid);     binder.Set   (Qva.Resize.Frame.Name, "resize", 'br:750:380', true);   
        }   
          Qva.Resize.Frame = true;   
         Qva.Select.Active = true;


      }


      function MaximiseMap() {


      //x = document.body.innerHTML;
      //document.body.innerText = x;

      var MC = document.getElementById('MainContainer');
      var MD = document.getElementById('mapdiv');

      while (MD.parentNode != MC)
      {
      MD = MD.parentNode;

      }
      //alert(MD);


          Qva.Resize.Frame = MD;
          var objectMgr = Qva.Resize.Frame.AvqMgr;

          if (objectMgr) {        objectMgr.Set(Qva.Resize.Frame.ObjectId, "resize", 'br:750:480', true);    }
          else {
                var binder = Qva.GetBinder(Qva.Resize.Frame.binderid);     binder.Set   (Qva.Resize.Frame.Name, "resize", 'br:750:480', true);   
        }   
          Qva.Resize.Frame = true;   
         Qva.Select.Active = true;
      }

       

      Many Thanks
      Surendra