ThinkGeo.com    |     Documentation    |     Premium Support

MapUnit set to GeographyUnit.Meter does not work

Hi:


I have a GeoTif file and world map in World Mercator projection, I set the map unit to GeographyUnit.Meter, but the map won't be displayed. Further check the mouse move event, the world coordinate of the mouse is in decimal degrees instead of meters. But my program  worked very well with World Mercator projection in MapSuite ver 2.0.


Changed my program to use GeographyUnit.DecimalDegree map unit, I could open the sample data which comes with the Map Suite 3.0 trial version.


Also tried to change the map unit to meter in one of the samples in  "VB Winforms How Do I Samples", my maps could not be displayed either.


Has anybody tried to use the meter map unit?


Rose


 



Hi:


I have found shy my maps were not displayed, I did not set the CurrentExtent of the map. Once I set the extent, it works.


BTW, in ver 2.0, I don't need to set the Map current extent.


thx


 



Rose, 
  
 Yes, we have some changes on the CurrentExtent. In 2.0, whenever you set the CurrentExtent, the map will refresh automatically; while in 3.0, it is just a normal property and setting it will not bring any more events. In 2.0, by default the CurrentExtent is set to FullExtent, while in 3.0 it’s not. That’s because as we support multi types of data source, we are not sure if all the source can get the full extent quickly so maybe that default operation(get full extent) will take much more time than we thought. 
  
 Hope that make sense, let me know if you have any queries. 
  
 Thanks, 
  
 Ben