ThinkGeo.com    |     Documentation    |     Premium Support

ZoomToPreviousExtent is not working in RC2 v415

I have implemented functionality for zoom to previous and zoom to next extent.  It was working on the previous versions.  The code attached is happening when the user clicks a button on the toolbar:


 


 


 case "PreviousExtent": // ButtonTool
                    nextExtent.Push(winformsMap1.CurrentExtent);
                    winformsMap1.ZoomToPreviousExtent();
                    
                    winformsMap1.Refresh();
                    break;

                case "NextExtent": // ButtonTool
                    // Place code here
                    if (nextExtent.Count > 0)
                    {
                        winformsMap1.CurrentExtent = nextExtent.Pop();
                        winformsMap1.Refresh();
                    }
                    break;



ToggleMapExtents() does not work either in this new release.


 


Rose



Ed, 
  
 Thanks for your reporting, this is a bug in single threaded mode. I have added this item to our work tracking system. 
  
 Please respond back to keep the thread alive so that we can let you know at the first time when this issue is fixed. 
  
 Any more questions please feel free to let me know. 
  
 Thanks. 
  
 Yale 


Thanks Yale,  
  
 I also had an outstanding issue with DeepClone that is on the fix list. 
  
 Ed

Ed & Rose,


The issue of DeepClone talked about in following post has been fixed:
gis.thinkgeo.com/Support/Dis...fault.aspx
 
And the problem of ZoomToPreviousExtent and ToggleMapExtents APIs has been fixed.
 
Thanks for your reporting!
 
Yale

Yale:


Can I get the build with the bug fixed?


Thanks


Rose


 



Rose, 
  
 We are planning a new build with some bug fixes as well as the WMSLayer enhancement recently, if you are not in a hurry, you can wait for that next public release, otherwise we can arrange a temporary version for you as soon as possible. 
  
 Any more questions please feel free to let me know. 
  
 Thanks. 
  
 Yale