ThinkGeo.com    |     Documentation    |     Premium Support

FullExtent property

Hi,


I saw the FullExtent button on Map Suite Explorer 3.0, but I did not find the FullExtent property in WinformMaps class. How to implement the same feature as what the "FullExtent" button does in Map Suite Explorer 3.0? In ver 2.0, just set the map current extent to FullExtent will do the job.


Thx


Rose



Rose, 
  
 The main reason is that in 2.0, as we only support shape file and it is very efficient to get the boundingbox of a shape file layer, the FullExtent property will always return quickly. However in 3.0, as we support multi types of data source (include customized data source users create themselves), we are not sure if all the source can get the full extent quickly so instead of the FullExtent property we add the GetBoundingBox() method (as method is expected to take longer time) to both Layer and Overlay. We didn’t add it to map because we don’t see many users are using it, as in most scenarios there is a background Overlay(layer) as well as some other Overlays showing places of interest, usually people just want to focus on the interest areas and set map’s CurrentExtent to the bounding box of those POI Overlays(Layers). Anyway, if you want to get the full extent of all the layers, you can simply get the bounding box of all the overlays, merge them together and set it to the map’s current extent. 
  
 Thanks, 
  
 Ben