ThinkGeo.com    |     Documentation    |     Premium Support

Minimum Scale default on map control

Hi,


I just spent a good amount of time trying to understand why I couldn't set the current extent of the map control to the extent of a layer I wanted to show.  It is a boundary of a farm field, so fairly small extent and the CurrentExtent just would not change.  It had me very confused on what could be wrong and I found some dicussions about zooming and the current scale and noticed the default value (I assume it is because I just created a WinformsMap object) seems to be 500.


For some reason with the Minimum Scale set at 500, it would not set the extent I wanted, so I changed it to 0 and then I could.  Just wanted to bring it up as a suggestion to set that minimum to 0 so any extent can be set by default.


Thanks

Brian



Brian, 
  
 We have set the Minimum Scale to 500 because in the version (3.0.199), there will have precision problems when the current scale is very low. We have made a large improvements on that and in the upcoming version, we will set the default value to 100. You can always set it to a lower value yourself but the smaller the current scale is (especially below 3), the more possible it will have the precision problems. Anyway, I think 100 is small enough for most cases. 
  
 Thanks, 
  
 Ben