# Some suggestion for the next realease verion of Map Suite Desktop Edition

**URL:** <https://community.thinkgeo.com/t/some-suggestion-for-the-next-realease-verion-of-map-suite-desktop-edition/774>\
**Category:** WinForms\
**Created:** [October 17, 2009, 4:26am UTC](https://community.thinkgeo.com/t/some-suggestion-for-the-next-realease-verion-of-map-suite-desktop-edition/774 "2009-10-17T04:26:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![icqnow](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/i/f9ae1b/32.png) [@icqnow](https://community.thinkgeo.com/u/icqnow)\
**Post date:** [October 17, 2009, 4:26am UTC](https://community.thinkgeo.com/t/some-suggestion-for-the-next-realease-verion-of-map-suite-desktop-edition/774/1 "2009-10-17T04:26:13Z")

</div>

Yale,  
  
&nbsp;&nbsp;&nbsp;I&nbsp;had&nbsp;be&nbsp;tolded&nbsp;that&nbsp;maybe&nbsp;the&nbsp;next&nbsp;verion&nbsp;of&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;Edition&nbsp;will&nbsp;be&nbsp;realesed&nbsp;in&nbsp;follwing&nbsp;week.  
  
there&nbsp;is&nbsp;some&nbsp;suggestion&nbsp;to&nbsp;improve&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;Edition:

1)&nbsp;I&nbsp;found&nbsp;the&nbsp;the&nbsp;current&nbsp;version&nbsp;of&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;Edition&nbsp;can't&nbsp;reproject&nbsp;and&nbsp;rotate&nbsp;the&nbsp;raster&nbsp;layer,I&nbsp;hope&nbsp;the&nbsp;next&nbsp;version&nbsp;can&nbsp;consider&nbsp;to&nbsp;add&nbsp;the&nbsp;two&nbsp;functions&nbsp;to&nbsp;the&nbsp;RasterLayer.I&nbsp;think&nbsp;the&nbsp;application&nbsp;of&nbsp;the&nbsp;satellite&nbsp;image&nbsp;is&nbsp;more&nbsp;and&nbsp;more.but&nbsp;the&nbsp;RasterLayer&nbsp;can't&nbsp;reproject&nbsp;and&nbsp;rotate,&nbsp;It&nbsp;is&nbsp;very&nbsp;regretful.

2)&nbsp;When&nbsp;I&nbsp;use&nbsp;the&nbsp;Wpf&nbsp;version&nbsp;of&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;Edition,I&nbsp;found&nbsp;that&nbsp;the&nbsp;size&nbsp;of&nbsp;Wpf&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;Edition&nbsp;can't&nbsp;to&nbsp;fill&nbsp;the&nbsp;window&nbsp;form.&nbsp;you&nbsp;have&nbsp;to&nbsp;set&nbsp;the&nbsp;Width&nbsp;and&nbsp;Height&nbsp;to&nbsp;a&nbsp;certain&nbsp;value,&nbsp;this&nbsp;make&nbsp;the&nbsp;size&nbsp;of&nbsp;&nbsp;Wpf&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;can't&nbsp;change&nbsp;with&nbsp;the&nbsp;Form.&nbsp;if&nbsp;you&nbsp;set&nbsp;the&nbsp;Width&nbsp;and&nbsp;Height&nbsp;to&nbsp;Auto,then&nbsp;you&nbsp;can&nbsp;see&nbsp;the&nbsp;map&nbsp;at&nbsp;all.&nbsp;But&nbsp;others&nbsp;window&nbsp;control&nbsp;like&nbsp;TextBox,if&nbsp;you&nbsp;set&nbsp;the&nbsp;Width&nbsp;and&nbsp;Height&nbsp;to&nbsp;Auto,then&nbsp;the&nbsp;TextBox&nbsp;will&nbsp;fill&nbsp;the&nbsp;window&nbsp;form.&nbsp;this&nbsp;is&nbsp;very&nbsp;like&nbsp;the&nbsp;"Dock"&nbsp;be&nbsp;seted&nbsp;into&nbsp;"Fill"&nbsp;in&nbsp;windows&nbsp;form.&nbsp;But&nbsp;the&nbsp;Wpf&nbsp;version&nbsp;of&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;Edition&nbsp;can't&nbsp;do&nbsp;this.On&nbsp;this&nbsp;,it&nbsp;makes&nbsp;the&nbsp;users&nbsp;very&nbsp;dissatisfied.&nbsp;So&nbsp;I&nbsp;hope&nbsp;the&nbsp;next&nbsp;version&nbsp;can&nbsp;consider&nbsp;to&nbsp;resolve&nbsp;the&nbsp;problem.

3)&nbsp;I&nbsp;want&nbsp;to&nbsp;tilecache&nbsp;to&nbsp;&nbsp;improve&nbsp;the&nbsp;performance&nbsp;of&nbsp;my&nbsp;application,I&nbsp;pre-generate&nbsp;all&nbsp;tiles&nbsp;that&nbsp;the&nbsp;sacles&nbsp;I&nbsp;need.&nbsp;then&nbsp;I&nbsp;want&nbsp;to&nbsp;display&nbsp;my&nbsp;map&nbsp;use&nbsp;the&nbsp;TileCache&nbsp;.&nbsp;I&nbsp;found&nbsp;that&nbsp;it&nbsp;is&nbsp;impossible&nbsp;because&nbsp;of&nbsp;the&nbsp;double&nbsp;type&nbsp;scale.&nbsp;please&nbsp;reference&nbsp;the&nbsp;follwoing&nbsp;uri:&nbsp;[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6436/afv/topic/Default.aspx).&nbsp;I&nbsp;hope&nbsp;you&nbsp;can&nbsp;resolve&nbsp;the&nbsp;probelm&nbsp;as&nbsp;soon&nbsp;as&nbsp;possible,it&nbsp;is&nbsp;very&nbsp;help&nbsp;fiull&nbsp;to&nbsp;improve&nbsp;the&nbsp;performance&nbsp;.

4)I&nbsp;found&nbsp;that&nbsp;when&nbsp;I&nbsp;hide&nbsp;a&nbsp;layer,the&nbsp;files&nbsp;of&nbsp;tilecache&nbsp;directory&nbsp;will&nbsp;be&nbsp;cleaned,I&nbsp;found&nbsp;this&nbsp;is&nbsp;not&nbsp;very&nbsp;reasonable.&nbsp;Why&nbsp;need&nbsp;to&nbsp;clean&nbsp;the&nbsp;files.,you&nbsp;can&nbsp;not&nbsp;read&nbsp;the&nbsp;files&nbsp;of&nbsp;tilecache&nbsp;directory,no&nbsp;need&nbsp;to&nbsp;delete&nbsp;the&nbsp;files&nbsp;.

I&nbsp;hope&nbsp;my&nbsp;suggestion&nbsp;will&nbsp;be&nbsp;helpfull&nbsp;to&nbsp;you&nbsp;!&nbsp;  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [October 19, 2009, 4:42am UTC](https://community.thinkgeo.com/t/some-suggestion-for-the-next-realease-verion-of-map-suite-desktop-edition/774/2 "2009-10-19T04:42:13Z")

</div>

&nbsp;

Senlin,  
&nbsp;  
Thanks&nbsp;very&nbsp;much&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;great&nbsp;suggestions.&nbsp;We&nbsp;will&nbsp;have&nbsp;a&nbsp;public&nbsp;release&nbsp;probably&nbsp;in&nbsp;next&nbsp;2&nbsp;or&nbsp;3&nbsp;days.&nbsp;Just&nbsp;want&nbsp;to&nbsp;let&nbsp;you&nbsp;the&nbsp;status&nbsp;of&nbsp;our&nbsp;schedule.  
&nbsp;  
1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;About&nbsp;the&nbsp;rotation&nbsp;of&nbsp;raster&nbsp;layer.&nbsp;I&nbsp;do&nbsp;not&nbsp;think&nbsp;it&nbsp;can&nbsp;be&nbsp;achieved&nbsp;by&nbsp;using&nbsp;the&nbsp;rotation&nbsp;projection,&nbsp;it&nbsp;probably&nbsp;need&nbsp;completely&nbsp;different&nbsp;logic&nbsp;with&nbsp;FeatureLayer&nbsp;rotation.&nbsp;I&nbsp;have&nbsp;added&nbsp;this&nbsp;item&nbsp;to&nbsp;our&nbsp;working&nbsp;track&nbsp;system&nbsp;while&nbsp;I&nbsp;am&nbsp;afraid&nbsp;we&nbsp;do&nbsp;not&nbsp;have&nbsp;chance&nbsp;to&nbsp;include&nbsp;it&nbsp;in&nbsp;this&nbsp;release.  
2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We&nbsp;have&nbsp;tried&nbsp;your&nbsp;way&nbsp;to&nbsp;set&nbsp;the&nbsp;Map&nbsp;Control&nbsp;width&nbsp;and&nbsp;height&nbsp;to&nbsp;auto&nbsp;while&nbsp;it&nbsp;failed&nbsp;to&nbsp;work,&nbsp;the&nbsp;reason&nbsp;for&nbsp;this&nbsp;is&nbsp;that&nbsp;we&nbsp;need&nbsp;to&nbsp;calculate&nbsp;a&nbsp;default&nbsp;scale&nbsp;based&nbsp;on&nbsp;the&nbsp;given&nbsp;width&nbsp;and&nbsp;height,&nbsp;if&nbsp;I&nbsp;set&nbsp;it&nbsp;to&nbsp;auto,&nbsp;it&nbsp;will&nbsp;throw&nbsp;exception.&nbsp;We&nbsp;will&nbsp;do&nbsp;more&nbsp;investigation&nbsp;based&nbsp;on&nbsp;it.&nbsp;&nbsp;And&nbsp;one&nbsp;way&nbsp;to&nbsp;go&nbsp;around&nbsp;this&nbsp;problem&nbsp;we&nbsp;have&nbsp;discussed&nbsp;is&nbsp;in&nbsp;following&nbsp;post:  
[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5952/afv/topic/Default.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5952/afv/topic/Default.aspx)  
3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;problem&nbsp;talked&nbsp;about&nbsp;in&nbsp;following&nbsp;post&nbsp;have&nbsp;been&nbsp;fixed&nbsp;and&nbsp;will&nbsp;be&nbsp;included&nbsp;in&nbsp;this&nbsp;public&nbsp;release.  
[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6436/afv/topic/Default.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6436/afv/topic/Default.aspx)  
&nbsp;  
4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;last&nbsp;one&nbsp;I&nbsp;think&nbsp;the&nbsp;current&nbsp;version&nbsp;should&nbsp;work&nbsp;correctly,&nbsp;the&nbsp;core&nbsp;thing&nbsp;is&nbsp;that&nbsp;the&nbsp;tile&nbsp;cache&nbsp;is&nbsp;only&nbsp;cleared&nbsp;when&nbsp;you&nbsp;want&nbsp;to&nbsp;call&nbsp;the&nbsp;refresh&nbsp;and&nbsp;passing&nbsp;in&nbsp;the&nbsp;target&nbsp;overlay.  
Try&nbsp;the&nbsp;following&nbsp;code:  
`        FileBitmapTileCache fileBitmapTileCache;         public HideOrShowAFeatureLayer()        {            InitializeComponent();            fileBitmapTileCache = new FileBitmapTileCache(@"C:\temp", string.Empty);        }         private void ShowHideLayer_Load(object sender, EventArgs e)        {            winformsMap1.MapUnit = GeographyUnit.DecimalDegree;            winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);             ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"..\..\SampleData\Data\Countries02.shp");            worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.FromArgb(100, GeoColor.SimpleColors.Green));            worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;             //WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay();            //winformsMap1.Overlays.Add(worldMapKitDesktopOverlay);             LayerOverlay staticOverlay = new LayerOverlay();            staticOverlay.Layers.Add("WorldLayer", worldLayer);             staticOverlay.TileCache = fileBitmapTileCache;           winformsMap1.Overlays.Add("WorldOverlay", staticOverlay);             winformsMap1.CurrentExtent = new RectangleShape(-139.2, 92.4, 120.9, -93.2);            winformsMap1.Refresh();        }         private void cbkShowLayer_CheckedChanged(object sender, EventArgs e)        {            winformsMap1.FindFeatureLayer("WorldLayer").IsVisible = cbkShowLayer.Checked;            if (cbkShowLayer.Checked)            {                winformsMap1.Overlays["WorldOverlay"].IsVisible = true;                winformsMap1.Overlays["WorldOverlay"].TileCache = fileBitmapTileCache;            }            else            {                winformsMap1.Overlays["WorldOverlay"].IsVisible = false;                winformsMap1.Overlays["WorldOverlay"].TileCache = null;            }             winformsMap1.Refresh();                    }`  
&nbsp;  
&nbsp;  
  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale
