ThinkGeo.com    |     Documentation    |     Premium Support

Map.RestrictedExtent

I was wondering if there was a map.RestrictedExtent property in the desktop component like there is in the Web Edition? This would be very useful to me in terms of trying to create a locus map behavior and nullify the panning behavior that normally takes place on the control since no panning is desired. I suppose a AllowPanning = False property would suffice as well but will need to be coupled with a AllowZooming sort of property.


 


I was envisioning being able to apply a restricted extent = to the envelope of an Overlay (also doesnt' seem built-in?) and then setting min and max scale to current scale to acheive this.



I actually have a routine that can convert the screen coord of a click event on the locus and use it as the point to center in on on the map viewer that works without affecting the main maps current scale or zoom. If there was a way to encorporate a MouseDrag event that can be used when panning is turned off, this would probably get me to where I want to be as far as "Dragging the extent box". Just an idea. Thanks guys.



Nelson,  
  
 RestrictedExtent is a useful property, I will report it to the development team and I think we can add it in the future release. For the current edition (3.0.199), the default operations (like panning, hit Shift for track ZoomIn) cannot be turned off so I’m afraid you can not customize many operations with this version; in the next version though, we will consider more over this part based on all kinds of user’s scenarios. Thanks for your suggestions and we will have a careful consideration on them. 
  
 Thanks, 
  
 Ben

Nelson, 
  
 We have added RestrictedExtent to map like what it has in Web edition, please get the latest verison at customer portal.  
  
 Please let me know if you have comments. 
  
 Thanks 
 James 


James, 
  
 In which version was it added?  I’ve downloaded the latest production daily build (4.5.0.24), and it does not seem to contain a RestrictedExtent property on the WinformsMap class. 
  
 Thanks, 
 Nicole

Nicole, 
  
 We have added in version 4.5.24.0 which is development build, however our daily build fail for this version, sorry for inconvenience, you can get the 4.5.26.0. The reason why you can not find it at 4.5.0.24 which is production build is that  
 The production builds are based on the source code branch from the last major release. These builds will not contain any new features or functionality; they will only include bug fixes.  
 The development builds, meanwhile, are the result of our active development towards the next major release as outlined on our road map. These builds contain many new GIS features and functionality, but they lack the regression testing of a major release build. While development builds are great for testing out new features, you should be aware that their APIs and functionality are subject to change throughout the development cycle.  
 This issue is that add a new API RestrictedExtent property, so it only exist at development build. 
  
 Please let me know if you have questions. 
  
 Thanks 
  
 James