请问:在状态管理里面
SaveState
public override void SaveState()
{
    SaveZoomCenterState(map);
}
为什么把我放在页面上的鹰眼图保存来和主图一样的
zoom和center呢???????

解决方案 »

  1.   

    mapxtreme 2008
    这个是什么?第一次听说撒
    和部署有关??
      

  2.   

    我自己想的办法,把中点和放大用session保存下来,然后在恢复。public override void SaveState()
    {
         HttpContext.Current.Session[map.Alias+"CENTER"] = map.Center;
         HttpContext.Current.Session[map.Alias + "ZOOM"] = map.Zoom;
    }
    public override void RestoreState()
    {
          HttpContext.Current.Session[map.Alias + "CENTER"] = map.Center;
          HttpContext.Current.Session[map.Alias + "ZOOM"] = map.Zoom;
    }