# Setting CurrentExtent and aspect ratio

**URL:** <https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472>\
**Category:** WinForms\
**Created:** [October 26, 2010, 12:27am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472 "2010-10-26T00:27:30Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul2](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/paul2/32/24982_2.png) [@Paul2](https://community.thinkgeo.com/u/Paul2)\
**Post date:** [October 26, 2010, 12:27am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/1 "2010-10-26T00:27:30Z")

</div>

We&nbsp;are&nbsp;seeing&nbsp;strange&nbsp;behavior&nbsp;when&nbsp;setting&nbsp;the&nbsp;current&nbsp;extent&nbsp;for&nbsp;the&nbsp;map&nbsp;display.&nbsp;Our&nbsp;map&nbsp;control&nbsp;is&nbsp;displayed&nbsp;as&nbsp;a&nbsp;square,&nbsp;475&nbsp;X&nbsp;475.&nbsp;We&nbsp;have&nbsp;some&nbsp;code&nbsp;that&nbsp;takes&nbsp;in&nbsp;a&nbsp;top&nbsp;left&nbsp;and&nbsp;bottom&nbsp;right&nbsp;points&nbsp;and&nbsp;sets&nbsp;the&nbsp;current&nbsp;extent&nbsp;of&nbsp;the&nbsp;map&nbsp;display:

&nbsp;

` Dim rect = New RectangleShape(topLeft.ToThinkGeoPointShape(), bottomRight.ToThinkGeoPointShape())Me.CurrentExtent = rectMe.Refresh()`(.ToThinkGeoPointShape()&nbsp;is&nbsp;an&nbsp;extension&nbsp;method&nbsp;on&nbsp;our&nbsp;internal&nbsp;LatLong&nbsp;struct)

The&nbsp;visible&nbsp;boundaries&nbsp;of&nbsp;the&nbsp;map&nbsp;is&nbsp;not&nbsp;always&nbsp;set&nbsp;as&nbsp;we&nbsp;have&nbsp;specified.&nbsp;For&nbsp;example,&nbsp;if&nbsp;we&nbsp;set&nbsp;the&nbsp;top&nbsp;left&nbsp;and&nbsp;bottom&nbsp;right&nbsp;corners&nbsp;to&nbsp;47.78/-124.4&nbsp;and&nbsp;40.0899/-116.7043,&nbsp;the&nbsp;visible&nbsp;map&nbsp;is&nbsp;set&nbsp;correctly.&nbsp;But&nbsp;if&nbsp;we&nbsp;specify&nbsp;the&nbsp;top&nbsp;left&nbsp;and&nbsp;bottom&nbsp;right&nbsp;as&nbsp;46.5036/-124.11524&nbsp;and&nbsp;41.372696/-116.98986,&nbsp;the&nbsp;visible&nbsp;boundary&nbsp;corners&nbsp;are&nbsp;actually&nbsp;47.5/-124.055&nbsp;and&nbsp;40.43546/-117.0198.&nbsp;The&nbsp;aspect&nbsp;ratio&nbsp;of&nbsp;the&nbsp;display&nbsp;is&nbsp;also&nbsp;skewed.&nbsp;The&nbsp;difference&nbsp;is&nbsp;the&nbsp;first&nbsp;set&nbsp;of&nbsp;coordinates&nbsp;has&nbsp;a&nbsp;height/width&nbsp;ratio&nbsp;of&nbsp;roughly&nbsp;1,&nbsp;whereas&nbsp;the&nbsp;second&nbsp;set&nbsp;of&nbsp;coordinates&nbsp;has&nbsp;a&nbsp;height/width&nbsp;ratio&nbsp;of&nbsp;.72,&nbsp;which&nbsp;is&nbsp;COS(Latitude).

Can&nbsp;you&nbsp;shed&nbsp;some&nbsp;light&nbsp;on&nbsp;what&nbsp;happens&nbsp;when&nbsp;the&nbsp;CurrentExtent&nbsp;is&nbsp;set?&nbsp;Or&nbsp;more&nbsp;specifically,&nbsp;under&nbsp;what&nbsp;circumstance&nbsp;would&nbsp;the&nbsp;CurrentExtent&nbsp;be&nbsp;changed&nbsp;and&nbsp;what&nbsp;is&nbsp;the&nbsp;algorithm&nbsp;for&nbsp;computing&nbsp;the&nbsp;change?

Thanks,

pk

---

<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 26, 2010, 9:13am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/2 "2010-10-26T09:13:15Z")

</div>

Paul,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;questions.  
&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;am&nbsp;not&nbsp;sure&nbsp;you&nbsp;which&nbsp;snapping&nbsp;mode&nbsp;are&nbsp;using&nbsp;against?&nbsp;Snapped&nbsp;or&nbsp;none?&nbsp;There&nbsp;is&nbsp;a&nbsp;bit&nbsp;difference&nbsp;between&nbsp;them.&nbsp;When&nbsp;it&nbsp;is&nbsp;snapped,&nbsp;we&nbsp;will&nbsp;adjust&nbsp;the&nbsp;extent&nbsp;to&nbsp;some&nbsp;adjacent&nbsp;extent&nbsp;according&nbsp;to&nbsp;the&nbsp;preset&nbsp;20&nbsp;zoom&nbsp;level&nbsp;scales.&nbsp;After&nbsp;this&nbsp;step,&nbsp;the&nbsp;rest&nbsp;is&nbsp;exactly&nbsp;the&nbsp;same&nbsp;for&nbsp;both&nbsp;snapping&nbsp;modes.  
&nbsp;&nbsp;&nbsp;Then&nbsp;what&nbsp;we&nbsp;are&nbsp;trying&nbsp;to&nbsp;do&nbsp;is&nbsp;to&nbsp;adjust&nbsp;the&nbsp;extent&nbsp;according&nbsp;to&nbsp;the&nbsp;height&nbsp;/&nbsp;width&nbsp;ratio&nbsp;of&nbsp;the&nbsp;Map&nbsp;Control,&nbsp;also&nbsp;will&nbsp;keep&nbsp;the&nbsp;center&nbsp;of&nbsp;the&nbsp;extent&nbsp;not&nbsp;changed.&nbsp;Based&nbsp;on&nbsp;these&nbsp;conditions,&nbsp;we&nbsp;calculate&nbsp;out&nbsp;a&nbsp;new&nbsp;extent&nbsp;with&nbsp;exactly&nbsp;the&nbsp;same&nbsp;ratio&nbsp;of&nbsp;Map&nbsp;control&nbsp;also&nbsp;with&nbsp;the&nbsp;same&nbsp;center.&nbsp;Following&nbsp;is&nbsp;the&nbsp;code&nbsp;snippet&nbsp;used&nbsp;to&nbsp;adjust&nbsp;according&nbsp;to&nbsp;the&nbsp;height&nbsp;/&nbsp;width&nbsp;ration,&nbsp;take&nbsp;a&nbsp;look&nbsp;if&nbsp;you&nbsp;are&nbsp;interestd.  
`double screenRatio = screenHeight / screenWidth;double extentRatio = worldExtent.Height / worldExtent.Width; double newWidth = 0;double newHeight = 0; if (extentRatio > screenRatio){      newHeight = worldExtent.Height;      newWidth = newHeight / screenRatio;}else{      newWidth = worldExtent.Width;      newHeight = newWidth * screenRatio;} PointShape centerPoint = worldExtent.GetCenterPoint();PointShape upperLeftPoint = new PointShape(centerPoint.X - newWidth * 0.5, centerPoint.Y + newHeight * 0.5);PointShape lowerRightPoint = new PointShape(centerPoint.X + newWidth * 0.5, centerPoint.Y - newHeight * 0.5); return new RectangleShape(upperLeftPoint, lowerRightPoint);`  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
Thanks.  
Yale

---

<div class="post-metadata">

**Author:** ![Paul2](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/paul2/32/24982_2.png) [@Paul2](https://community.thinkgeo.com/u/Paul2)\
**Post date:** [November 1, 2010, 2:42pm UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/3 "2010-11-01T14:42:02Z")

</div>

Thanks&nbsp;Yale&nbsp;for&nbsp;the&nbsp;prompt&nbsp;reply.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Our&nbsp;map&nbsp;data&nbsp;is&nbsp;in&nbsp;decimal&nbsp;degrees,&nbsp;and&nbsp;when&nbsp;we&nbsp;set&nbsp;the&nbsp;current&nbsp;extent,&nbsp;we&nbsp;are&nbsp;defining&nbsp;the&nbsp;rectangle&nbsp;in&nbsp;decimal&nbsp;degrees&nbsp;as&nbsp;well.&nbsp;It&nbsp;seems&nbsp;that&nbsp;your&nbsp;internal&nbsp;computations&nbsp;are&nbsp;attempting&nbsp;to&nbsp;take&nbsp;a&nbsp;linear&nbsp;dimension&nbsp;(screen&nbsp;pixels)&nbsp;and&nbsp;map&nbsp;a&nbsp;non-linear&nbsp;dimension&nbsp;(the&nbsp;rectangle&nbsp;in&nbsp;decimal&nbsp;degrees)&nbsp;onto&nbsp;it.&nbsp;I&nbsp;believe&nbsp;this&nbsp;is&nbsp;why&nbsp;the&nbsp;aspect&nbsp;ratio&nbsp;of&nbsp;our&nbsp;map&nbsp;is&nbsp;being&nbsp;streched&nbsp;-&nbsp;it&nbsp;doesn’t&nbsp;stretch&nbsp;at&nbsp;the&nbsp;equator,&nbsp;but&nbsp;the&nbsp;further&nbsp;from&nbsp;the&nbsp;equator&nbsp;it&nbsp;gets&nbsp;the&nbsp;more&nbsp;streching&nbsp;occurs.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Is&nbsp;there&nbsp;a&nbsp;method&nbsp;to&nbsp;set&nbsp;the&nbsp;current&nbsp;extent&nbsp;without&nbsp;doing&nbsp;any&nbsp;of&nbsp;the&nbsp;adjustments&nbsp;to&nbsp;the&nbsp;ratio?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;pk

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [November 1, 2010, 3:41pm UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/4 "2010-11-01T15:41:38Z")

</div>

&nbsp;To&nbsp;be&nbsp;a&nbsp;little&nbsp;bit&nbsp;more&nbsp;illustrative,&nbsp;I&nbsp;will&nbsp;complete&nbsp;Yale's&nbsp;explantion&nbsp;with&nbsp;some&nbsp;pictures&nbsp;that&nbsp;I&nbsp;hope&nbsp;will&nbsp;clarify&nbsp;things.&nbsp;In&nbsp;green&nbsp;is&nbsp;the&nbsp;extent&nbsp;that&nbsp;you&nbsp;set&nbsp;for&nbsp;your&nbsp;map&nbsp;and&nbsp;you&nbsp;can&nbsp;see&nbsp;how&nbsp;the&nbsp;resulting&nbsp;extent&nbsp;of&nbsp;the&nbsp;map&nbsp;gets&nbsp;ajusted&nbsp;based&nbsp;on&nbsp;the&nbsp;width/height&nbsp;ratios&nbsp;of&nbsp;the&nbsp;extent&nbsp;set&nbsp;and&nbsp;of&nbsp;the&nbsp;map.&nbsp;You&nbsp;can&nbsp;also&nbsp;see&nbsp;the&nbsp;code&nbsp;I&nbsp;used&nbsp;for&nbsp;this&nbsp;illustration.

Note&nbsp;that&nbsp;the&nbsp;unit&nbsp;of&nbsp;the&nbsp;map&nbsp;used&nbsp;should&nbsp;not&nbsp;matter&nbsp;whether&nbsp;it&nbsp;is&nbsp;in&nbsp;decimal&nbsp;degrees,&nbsp;meters&nbsp;or&nbsp;feet,&nbsp;we&nbsp;simply&nbsp;fit&nbsp;the&nbsp;extent&nbsp;according&nbsp;to&nbsp;those&nbsp;ratios&nbsp;as&nbsp;you&nbsp;can&nbsp;see&nbsp;in&nbsp;the&nbsp;pictures.&nbsp;No&nbsp;"stretching"&nbsp;is&nbsp;happening.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/8/853a94a7439b2787d8ccec7b4a8ae9cc49b81511.jpg)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/f/ffdfea2a75cec3ce339a2ec7fc480e7497275598.jpg)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/1/1bd7873b2bc06a668a80280fd300ada3749c2f20.jpg)

&nbsp;

`    winformsMap1.MapUnit = GeographyUnit.DecimalDegree;    winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);    //We set the ZoomLevelSnapping property to None to see the extent adjustment happening.    winformsMap1.ZoomLevelSnapping = ZoomLevelSnappingMode.None;    WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay();    winformsMap1.Overlays.Add(worldMapKitDesktopOverlay);    InMemoryFeatureLayer inMemoryFeatureLayer = new InMemoryFeatureLayer();    inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.StandardColors.Transparent,                                GeoColor.StandardColors.Green, 3);    inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;    //Width/Height ratio of Map and Extent are equal. (w/h = 1 in both cases)    RectangleShape rectangleShape1 = new RectangleShape(-124.4, 47.78, -116.7043, 40.0899);    //Width/Height ratio of Map and Extent are unequal. (w/h > 1 for the extent)    RectangleShape rectangleShape2 = new RectangleShape(-124.11524, 46.5036, -116.98986, 41.372696);    //Width/Height ratio of Map and Extent are unequal. (w/h < 1 for the extent)    RectangleShape rectangleShape3 = new RectangleShape(-123.09,47.15,-118.29,40.79);     inMemoryFeatureLayer.Open();    inMemoryFeatureLayer.InternalFeatures.Add(new Feature(rectangleShape3));    inMemoryFeatureLayer.Close();    LayerOverlay layerOverlay = new LayerOverlay();    layerOverlay.Layers.Add(inMemoryFeatureLayer);    winformsMap1.Overlays.Add(layerOverlay);    winformsMap1.CurrentExtent = rectangleShape3;    winformsMap1.Refresh();`

---

<div class="post-metadata">

**Author:** ![Paul2](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/paul2/32/24982_2.png) [@Paul2](https://community.thinkgeo.com/u/Paul2)\
**Post date:** [November 1, 2010, 7:25pm UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/5 "2010-11-01T19:25:05Z")

</div>

Thanks&nbsp;for&nbsp;the&nbsp;help,&nbsp;Val.&nbsp;I&nbsp;think&nbsp;the&nbsp;issue&nbsp;lies&nbsp;in&nbsp;the&nbsp;assumption&nbsp;that&nbsp;1&nbsp;degree&nbsp;of&nbsp;latitude&nbsp;=&nbsp;1&nbsp;degree&nbsp;of&nbsp;longitude&nbsp;when&nbsp;calculating&nbsp;the&nbsp;aspect&nbsp;ratio&nbsp;of&nbsp;the&nbsp;extent.&nbsp;I&nbsp;believe&nbsp;the&nbsp;aspect&nbsp;ratio&nbsp;should&nbsp;be&nbsp;COS(centerPointLatitude).

A&nbsp;colleague&nbsp;of&nbsp;mine&nbsp;has&nbsp;produced&nbsp;the&nbsp;attached&nbsp;image&nbsp;from&nbsp;Google&nbsp;Earth.&nbsp;It&nbsp;is&nbsp;adjusted&nbsp;to&nbsp;a&nbsp;square&nbsp;display&nbsp;(width/height&nbsp;=&nbsp;1&nbsp;for&nbsp;map)&nbsp;and&nbsp;then&nbsp;zoomed&nbsp;to&nbsp;Oregon.&nbsp;Note&nbsp;the&nbsp;aspect&nbsp;ratio&nbsp;of&nbsp;the&nbsp;attached&nbsp;image&nbsp;to&nbsp;yours.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/3/34e0e87d9066a4149a7e5c0396d577767a255b0f.jpg)

Using&nbsp;the&nbsp;cursor&nbsp;to&nbsp;get&nbsp;approximate&nbsp;Lat/Lon&nbsp;of&nbsp;the&nbsp;four&nbsp;corners&nbsp;of&nbsp;the&nbsp;display,&nbsp;it&nbsp;shows&nbsp;a&nbsp;ratio&nbsp;close&nbsp;to&nbsp;COS(centerPointLatitude)&nbsp;as&nbsp;it&nbsp;should.&nbsp;Thoughts?

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [November 2, 2010, 10:15am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/6 "2010-11-02T10:15:42Z")

</div>

I&nbsp;see&nbsp;what&nbsp;you&nbsp;are&nbsp;showing&nbsp;but&nbsp;you&nbsp;cannot&nbsp;compare&nbsp;Google&nbsp;Earth&nbsp;with&nbsp;World&nbsp;Map&nbsp;Kit&nbsp;as&nbsp;the&nbsp;projections&nbsp;are&nbsp;different.&nbsp;While&nbsp;World&nbsp;Map&nbsp;Kit&nbsp;is&nbsp;in&nbsp;straight&nbsp;WGS84,&nbsp;Google&nbsp;Earth&nbsp;applies&nbsp;some&nbsp;other&nbsp;projection&nbsp;tricks&nbsp;to&nbsp;get&nbsp;the&nbsp;earth&nbsp;as&nbsp;a&nbsp;globe.&nbsp;[earth.google.com/support/bin/static.py](http://earth.google.com/support/bin/static.py?hl=en&page=guide.cs&guide=22373&topic=23750&answer=148111)

&nbsp;You&nbsp;can&nbsp;set&nbsp;for&nbsp;example&nbsp;the&nbsp;World&nbsp;Map&nbsp;Kit&nbsp;to&nbsp;another&nbsp;projection&nbsp;such&nbsp;as&nbsp;Spherical&nbsp;Mercator&nbsp;(or&nbsp;commonly&nbsp;known&nbsp;as&nbsp;Google&nbsp;projection&nbsp;used&nbsp;by&nbsp;Google&nbsp;Map,&nbsp;Bing&nbsp;Map&nbsp;etc)&nbsp;with&nbsp;unit&nbsp;in&nbsp;meters&nbsp;and&nbsp;have&nbsp;the&nbsp;coordinates&nbsp;in&nbsp;Longitude/Latitude&nbsp;and&nbsp;you&nbsp;will&nbsp;see&nbsp;that&nbsp;the&nbsp;way&nbsp;the&nbsp;x&nbsp;(longitude)&nbsp;and&nbsp;y&nbsp;(latitude)&nbsp;are&nbsp;changing&nbsp;is&nbsp;not&nbsp;uniform&nbsp;but&nbsp;according&nbsp;to&nbsp;the&nbsp;projection&nbsp;used.&nbsp;There&nbsp;is&nbsp;a&nbsp;good&nbsp;Code&nbsp;Community&nbsp;project&nbsp;that&nbsp;shows&nbsp;that.&nbsp;I&nbsp;recommend&nbsp;you&nbsp;take&nbsp;a&nbsp;look&nbsp;at&nbsp;_Graticule&nbsp;with&nbsp;Projection&nbsp;_[wiki.thinkgeo.com/wiki/Map\_Suite\_Wp...on\_Samples](http://wiki.thinkgeo.com/wiki/Map_Suite_Wpf_Desktop_Edition_Projection_Samples).&nbsp;You&nbsp;even&nbsp;see&nbsp;the&nbsp;graticule&nbsp;for&nbsp;meridians&nbsp;and&nbsp;parallels&nbsp;and&nbsp;you&nbsp;can&nbsp;clearly&nbsp;see&nbsp;that&nbsp;the&nbsp;degree&nbsp;long/lat&nbsp;ratio&nbsp;varies&nbsp;according&nbsp;to&nbsp;the&nbsp;latitude.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/3/3c093767ecc2ea85dbda27c2aaa6228f868cf50f.jpg)

---

<div class="post-metadata">

**Author:** ![Paul2](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/paul2/32/24982_2.png) [@Paul2](https://community.thinkgeo.com/u/Paul2)\
**Post date:** [November 4, 2010, 10:53am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/7 "2010-11-04T10:53:08Z")

</div>

The&nbsp;application&nbsp;always&nbsp;displays&nbsp;the&nbsp;map&nbsp;in&nbsp;a&nbsp;square&nbsp;frame,&nbsp;on&nbsp;screen&nbsp;and&nbsp;also&nbsp;in&nbsp;printed&nbsp;format.&nbsp;&nbsp;We&nbsp;have&nbsp;several&nbsp;sizes&nbsp;of&nbsp;frames,&nbsp;all&nbsp;square,&nbsp;in&nbsp;which&nbsp;we&nbsp;want&nbsp;to&nbsp;display&nbsp;the&nbsp;same&nbsp;world&nbsp;map&nbsp;extents.&nbsp;&nbsp;So,&nbsp;the&nbsp;scale&nbsp;factor&nbsp;is&nbsp;different&nbsp;in&nbsp;each&nbsp;frame&nbsp;but&nbsp;the&nbsp;world&nbsp;extents&nbsp;are&nbsp;the&nbsp;same.&nbsp;&nbsp;We&nbsp;are&nbsp;having&nbsp;a&nbsp;problem&nbsp;defining&nbsp;the&nbsp;displayed&nbsp;world&nbsp;extents&nbsp;in&nbsp;either&nbsp;degrees&nbsp;or&nbsp;meters&nbsp;such&nbsp;that&nbsp;the&nbsp;world&nbsp;distance,&nbsp;in&nbsp;meters,&nbsp;is&nbsp;approximately&nbsp;the&nbsp;same&nbsp;both&nbsp;horizontally&nbsp;and&nbsp;vertically.

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [November 4, 2010, 11:41am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/8 "2010-11-04T11:41:56Z")

</div>

&nbsp;I&nbsp;don't&nbsp;know&nbsp;what&nbsp;you&nbsp;are&nbsp;trying&nbsp;to&nbsp;accomplish&nbsp;exactely&nbsp;but&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;raise&nbsp;some&nbsp;awareness&nbsp;about&nbsp;some&nbsp;realities&nbsp;with&nbsp;working&nbsp;with&nbsp;maps&nbsp;in&nbsp;different&nbsp;projections&nbsp;and&nbsp;units.&nbsp;In&nbsp;the&nbsp;picture&nbsp;below,&nbsp;you&nbsp;can&nbsp;see&nbsp;that&nbsp;if&nbsp;you&nbsp;draw&nbsp;a&nbsp;rectangle&nbsp;of&nbsp;5&nbsp;degrees&nbsp;of&nbsp;longitude&nbsp;and&nbsp;longitude,&nbsp;it&nbsp;is&nbsp;going&nbsp;to&nbsp;be&nbsp;an&nbsp;elongated&nbsp;rectangle&nbsp;with&nbsp;the&nbsp;map&nbsp;in&nbsp;meters&nbsp;(Spherical&nbsp;Mercator&nbsp;projection)&nbsp;while&nbsp;it&nbsp;is&nbsp;going&nbsp;to&nbsp;be&nbsp;a&nbsp;perfect&nbsp;square&nbsp;in&nbsp;the&nbsp;map&nbsp;in&nbsp;decimal&nbsp;degrees&nbsp;(Geodetic).&nbsp;It&nbsp;is&nbsp;just&nbsp;we&nbsp;way&nbsp;it&nbsp;is.&nbsp;Projection&nbsp;applies&nbsp;distortions,&nbsp;change&nbsp;in&nbsp;scale&nbsp;etc&nbsp;that&nbsp;you&nbsp;have&nbsp;to&nbsp;work&nbsp;with&nbsp;and&nbsp;understand&nbsp;those&nbsp;limitations.&nbsp;For&nbsp;more&nbsp;info&nbsp;on&nbsp;that&nbsp;subject:

[en.wikipedia.org/wiki/Map\_projection](http://en.wikipedia.org/wiki/Map_projection)&nbsp;for&nbsp;info&nbsp;on&nbsp;projections&nbsp;in&nbsp;general

[en.wikipedia.org/wiki/Latitude](http://en.wikipedia.org/wiki/Latitude)&nbsp;to&nbsp;understand&nbsp;Degree&nbsp;length

&nbsp;

-5&nbsp;x&nbsp;5&nbsp;of&nbsp;degrees&nbsp;with&nbsp;map&nbsp;in&nbsp;Spherical&nbsp;Mercator&nbsp;(meters)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/3/3fbc953e588553910506d90573bddb294ca4bd83.jpg)

&nbsp;

5&nbsp;x&nbsp;5&nbsp;of&nbsp;degrees&nbsp;with&nbsp;map&nbsp;in&nbsp;Geodetic&nbsp;&nbsp;(decimal&nbsp;degrees)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/b/b1027c6e2180a5e39f787a5e49725967999184d8.jpg)

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [November 4, 2010, 9:34pm UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/9 "2010-11-04T21:34:38Z")

</div>

What&nbsp;we&nbsp;need&nbsp;are&nbsp;ThinkGeo&nbsp;Wiki&nbsp;articles&nbsp;that&nbsp;are&nbsp;that&nbsp;comprehensive&nbsp;on&nbsp;Extents.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;having&nbsp;similar&nbsp;problems&nbsp;to&nbsp;Paul&nbsp;(except&nbsp;my&nbsp;problem&nbsp;is&nbsp;with&nbsp;the&nbsp;data&nbsp;rather&nbsp;than&nbsp;the&nbsp;display)&nbsp;-&nbsp;is&nbsp;there&nbsp;any&nbsp;comprehensive&nbsp;information&nbsp;available&nbsp;anywhere&nbsp;here&nbsp;on&nbsp;extents&nbsp;and&nbsp;how&nbsp;they&nbsp;fit&nbsp;in&nbsp;with&nbsp;map&nbsp;control&nbsp;size&nbsp;as&nbsp;well&nbsp;as&nbsp;scale,&nbsp;projection,&nbsp;geography&nbsp;units,&nbsp;etc.?

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [November 5, 2010, 11:31am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/10 "2010-11-05T11:31:18Z")

</div>

&nbsp;We&nbsp;recently&nbsp;set&nbsp;up&nbsp;ThinkGeo&nbsp;Wiki&nbsp;with&nbsp;the&nbsp;goal&nbsp;of&nbsp;providing&nbsp;comprehensive&nbsp;support&nbsp;and&nbsp;high&nbsp;level&nbsp;explanations&nbsp;on&nbsp;various&nbsp;concepts.&nbsp;We&nbsp;are&nbsp;still&nbsp;short&nbsp;of&nbsp;that&nbsp;goal&nbsp;but&nbsp;working&nbsp;on&nbsp;it.&nbsp;In&nbsp;the&nbsp;meantime,&nbsp;reading&nbsp;the&nbsp;article&nbsp;from&nbsp;Wiki&nbsp;on&nbsp;general&nbsp;concepts&nbsp;of&nbsp;map&nbsp;projections&nbsp;helps&nbsp;understanding&nbsp;how&nbsp;this&nbsp;is&nbsp;applied&nbsp;with&nbsp;our&nbsp;map&nbsp;controls&nbsp;and&nbsp;you&nbsp;can&nbsp;see&nbsp;all&nbsp;the&nbsp;various&nbsp;Code&nbsp;Community&nbsp;samples&nbsp;touching&nbsp;projection:&nbsp;[wiki.thinkgeo.com/wiki/Map\_Suite\_De...on\_Samples](http://wiki.thinkgeo.com/wiki/Map_Suite_Desktop_Edition_Projection_Samples)  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [November 5, 2010, 12:48pm UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/11 "2010-11-05T12:48:44Z")

</div>

Looking&nbsp;forward&nbsp;to&nbsp;something&nbsp;like&nbsp;a&nbsp;Wiki&nbsp;explanation&nbsp;as&nbsp;Wikipedia&nbsp;has&nbsp;done.&nbsp;Projections&nbsp;&&nbsp;scales&nbsp;I&nbsp;have&nbsp;no&nbsp;problems&nbsp;with&nbsp;-&nbsp;been&nbsp;using&nbsp;them&nbsp;for&nbsp;getting&nbsp;on&nbsp;for&nbsp;20&nbsp;years&nbsp;working&nbsp;as&nbsp;programmer&nbsp;for&nbsp;various&nbsp;hydrographic&nbsp;survey&nbsp;companies.&nbsp;Extents&nbsp;are&nbsp;another&nbsp;matter&nbsp;-&nbsp;they&nbsp;seem&nbsp;overly&nbsp;complicated&nbsp;to&nbsp;the&nbsp;‘newbies’&nbsp;judging&nbsp;from&nbsp;the&nbsp;amount&nbsp;of&nbsp;questions&nbsp;you&nbsp;get&nbsp;in&nbsp;this&nbsp;forum&nbsp;on&nbsp;the&nbsp;subject.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Using&nbsp;examples&nbsp;is&nbsp;not&nbsp;so&nbsp;intuitive&nbsp;&&nbsp;takes&nbsp;a&nbsp;lot&nbsp;longer,&nbsp;while&nbsp;only&nbsp;giving&nbsp;a&nbsp;snapshot&nbsp;of&nbsp;the&nbsp;information&nbsp;required.&nbsp;I&nbsp;use&nbsp;VB2010&nbsp;but&nbsp;I&nbsp;do&nbsp;have&nbsp;VS2010&nbsp;and&nbsp;so&nbsp;can&nbsp;view&nbsp;the&nbsp;code&nbsp;samples&nbsp;in&nbsp;VC.&nbsp;However,&nbsp;most&nbsp;of&nbsp;them&nbsp;first&nbsp;require&nbsp;converting&nbsp;to&nbsp;the&nbsp;newer&nbsp;version,&nbsp;then&nbsp;invariably&nbsp;the&nbsp;references&nbsp;have&nbsp;to&nbsp;be&nbsp;changed,&nbsp;then&nbsp;other&nbsp;errors&nbsp;need&nbsp;to&nbsp;be&nbsp;fixed&nbsp;-&nbsp;just&nbsp;doing&nbsp;ZoomToFullExtent&nbsp;now&nbsp;and&nbsp;had&nbsp;the&nbsp;first&nbsp;2&nbsp;items&nbsp;above&nbsp;&&nbsp;now&nbsp;the&nbsp;following&nbsp;to&nbsp;sort&nbsp;out:&nbsp;  
&nbsp;Error 1 The&nbsp;type&nbsp;‘System.Collections.Specialized.INotifyCollectionChanged’&nbsp;is&nbsp;defined&nbsp;in&nbsp;an&nbsp;assembly&nbsp;that&nbsp;is&nbsp;not&nbsp;referenced.&nbsp;You&nbsp;must&nbsp;add&nbsp;a&nbsp;reference&nbsp;to&nbsp;assembly&nbsp;‘WindowsBase,&nbsp;Version=3.0.0.0,&nbsp;Culture=neutral,&nbsp;PublicKeyToken=31bf3856ad364e35’. C:\Users\User\Documents\Visual&nbsp;Studio&nbsp;2010\Projects\ThinkGeo&nbsp;Examples\VC\ServicesEditionSample\_ZoomToFullExtent\_CS\_100415\ZoomToFullExtent\TestForm.cs 47 32 ZoomToFullExtent&nbsp;  
&nbsp;&nbsp;  
&nbsp;When&nbsp;I&nbsp;get&nbsp;all&nbsp;that&nbsp;sorted&nbsp;out&nbsp;I&nbsp;have&nbsp;a&nbsp;working&nbsp;VC&nbsp;application&nbsp;which&nbsp;I&nbsp;can&nbsp;sort&nbsp;of&nbsp;understand&nbsp;but&nbsp;then&nbsp;I&nbsp;may&nbsp;have&nbsp;to&nbsp;convert&nbsp;to&nbsp;VB.&nbsp;So,&nbsp;it&nbsp;will&nbsp;be&nbsp;a&nbsp;4&nbsp;step&nbsp;process&nbsp;before&nbsp;I&nbsp;get&nbsp;some&nbsp;code&nbsp;sample&nbsp;which&nbsp;may&nbsp;add&nbsp;a&nbsp;little&nbsp;more&nbsp;to&nbsp;my&nbsp;knowledge.&nbsp;Definitely&nbsp;a&nbsp;Wiki&nbsp;page&nbsp;which&nbsp;told&nbsp;me&nbsp;everything&nbsp;I&nbsp;needed&nbsp;to&nbsp;know&nbsp;about&nbsp;Extents&nbsp;would&nbsp;be&nbsp;much&nbsp;better.&nbsp;Not&nbsp;sure&nbsp;if&nbsp;your&nbsp;development&nbsp;team&nbsp;have&nbsp;access&nbsp;to&nbsp;MapInfo&nbsp;&&nbsp;MapBasic&nbsp;reference&nbsp;manuals&nbsp;but&nbsp;they&nbsp;really&nbsp;set&nbsp;a&nbsp;good&nbsp;standard&nbsp;for&nbsp;how&nbsp;to&nbsp;explain&nbsp;concepts&nbsp;right&nbsp;down&nbsp;to&nbsp;every&nbsp;parameter&nbsp;of&nbsp;each&nbsp;command.&nbsp;  
&nbsp;&nbsp;  
&nbsp;So,&nbsp;my&nbsp;vote&nbsp;is&nbsp;for&nbsp;your&nbsp;first&nbsp;in-depth&nbsp;Wiki&nbsp;article&nbsp;to&nbsp;be&nbsp;on&nbsp;Extents!&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:** [November 8, 2010, 7:03am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/12 "2010-11-08T07:03:03Z")

</div>

David,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;feedback.  
Yes,&nbsp;the&nbsp;error&nbsp;'System.Collections.Specialized.INotifyCollectionChanged'&nbsp;is&nbsp;caused&nbsp;because&nbsp;we&nbsp;added&nbsp;the&nbsp;implementations&nbsp;of&nbsp;INotifyCollectionChanged,&nbsp;INotifyPropertyChanged&nbsp;interfaces&nbsp;in&nbsp;the&nbsp;class&nbsp;GeoCollection&nbsp;since&nbsp;last&nbsp;public&nbsp;release,&nbsp;so&nbsp;every&nbsp;time&nbsp;we&nbsp;reference&nbsp;the&nbsp;MapSuite&nbsp;dll&nbsp;set&nbsp;we&nbsp;may&nbsp;need&nbsp;to&nbsp;reference&nbsp;the&nbsp;WindowsBase&nbsp;DLL&nbsp;as&nbsp;what&nbsp;you&nbsp;have&nbsp;done.  
&nbsp;  
I&nbsp;agree&nbsp;with&nbsp;you&nbsp;sometime&nbsp;to&nbsp;transfer&nbsp;from&nbsp;C#&nbsp;to&nbsp;VB&nbsp;or&nbsp;VB&nbsp;to&nbsp;C#&nbsp;is&nbsp;very&nbsp;troublesome,&nbsp;so&nbsp;we&nbsp;are&nbsp;trying&nbsp;to&nbsp;make&nbsp;the&nbsp;samples&nbsp;into&nbsp;both&nbsp;versions&nbsp;,&nbsp;while&nbsp;some&nbsp;samples&nbsp;published&nbsp;long&nbsp;time&nbsp;ago&nbsp;may&nbsp;ignore&nbsp;this&nbsp;issue,&nbsp;so&nbsp;sorry&nbsp;for&nbsp;the&nbsp;inconvenience&nbsp;for&nbsp;now.  
&nbsp;  
We&nbsp;are&nbsp;now&nbsp;lunching&nbsp;our&nbsp;Wiki&nbsp;and&nbsp;many&nbsp;topics&nbsp;are&nbsp;being&nbsp;added&nbsp;or&nbsp;enhanced&nbsp;every&nbsp;day,&nbsp;we&nbsp;will&nbsp;keep&nbsp;an&nbsp;eye&nbsp;on&nbsp;the&nbsp;customer&nbsp;requirement&nbsp;and&nbsp;definitely&nbsp;make&nbsp;the&nbsp;wiki&nbsp;readable&nbsp;and&nbsp;comprehensive&nbsp;in&nbsp;the&nbsp;near&nbsp;future.  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Paul2](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/paul2/32/24982_2.png) [@Paul2](https://community.thinkgeo.com/u/Paul2)\
**Post date:** [November 8, 2010, 5:35pm UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/13 "2010-11-08T17:35:04Z")

</div>

Thanks&nbsp;Yale.&nbsp;I&nbsp;am&nbsp;looking&nbsp;forward&nbsp;to&nbsp;the&nbsp;Wiki&nbsp;library&nbsp;continuing&nbsp;to&nbsp;be&nbsp;developed.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I’ll&nbsp;add&nbsp;a&nbsp;+1&nbsp;to&nbsp;David’s&nbsp;request&nbsp;-&nbsp;examples&nbsp;are&nbsp;great&nbsp;to&nbsp;show&nbsp;a&nbsp;tiny&nbsp;sliver&nbsp;of&nbsp;how&nbsp;to&nbsp;implement&nbsp;something,&nbsp;but&nbsp;they&nbsp;don’t&nbsp;work&nbsp;so&nbsp;well&nbsp;to&nbsp;explain&nbsp;the&nbsp;why&nbsp;and&nbsp;how&nbsp;things&nbsp;work.&nbsp;I&nbsp;frequently&nbsp;find&nbsp;myself&nbsp;looking&nbsp;at&nbsp;several&nbsp;examples&nbsp;to&nbsp;pick&nbsp;different&nbsp;pieces&nbsp;up&nbsp;to&nbsp;figure&nbsp;out&nbsp;how&nbsp;to&nbsp;accomplish&nbsp;something&nbsp;in&nbsp;ThinkGeo.&nbsp;Providing&nbsp;some&nbsp;articles&nbsp;to&nbsp;users&nbsp;that&nbsp;explain&nbsp;how&nbsp;things&nbsp;work&nbsp;and&nbsp;covering&nbsp;different&nbsp;subjects&nbsp;would&nbsp;be&nbsp;a&nbsp;huge&nbsp;help.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;pk

---

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [November 8, 2010, 5:56pm UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/14 "2010-11-08T17:56:55Z")

</div>

I&nbsp;think&nbsp;there&nbsp;are&nbsp;many&nbsp;developers&nbsp;that&nbsp;are&nbsp;beyond&nbsp;needing&nbsp;more&nbsp;code&nbsp;samples.&nbsp;&nbsp;&nbsp;I&nbsp;think&nbsp;we&nbsp;need&nbsp;a&nbsp;Wiki&nbsp;section&nbsp;called&nbsp;Overviews,&nbsp;with&nbsp;topics&nbsp;that&nbsp;tell&nbsp;us&nbsp;what&nbsp;is&nbsp;happening&nbsp;under&nbsp;the&nbsp;hood&nbsp;inside&nbsp;the&nbsp;ThinkGeo&nbsp;components.&nbsp;&nbsp;&nbsp;Examples&nbsp;I&nbsp;might&nbsp;suggest:

  
&nbsp;&nbsp;&nbsp;&nbsp;- Extensions,&nbsp;as&nbsp;has&nbsp;been&nbsp;suggested.&nbsp;&nbsp;&nbsp;How&nbsp;are&nbsp;they&nbsp;used&nbsp;inside&nbsp;of&nbsp;the&nbsp;map.Draw&nbsp;event?&nbsp;&nbsp;&nbsp;And&nbsp;when&nbsp;I&nbsp;do&nbsp;a&nbsp;map.DrawToBitmap&nbsp;(or&nbsp;whatever&nbsp;it&nbsp;is),&nbsp;how&nbsp;the&nbsp;extent&nbsp;of&nbsp;the&nbsp;current&nbsp;map&nbsp;is&nbsp;used&nbsp;to&nbsp;determine&nbsp;what&nbsp;gets&nbsp;rendered&nbsp;onto&nbsp;a&nbsp;bitmap&nbsp;with&nbsp;a&nbsp;different&nbsp;aspect&nbsp;ratio.&nbsp;&nbsp;&nbsp;&nbsp;How&nbsp;do&nbsp;the&nbsp;ThinkGeo&nbsp;extent&nbsp;definitions&nbsp;map&nbsp;to&nbsp;more&nbsp;common&nbsp;GIS&nbsp;terms&nbsp;such&nbsp;as&nbsp;viewport&nbsp;extent&nbsp;vs&nbsp;worldextent,&nbsp;etc.
  
&nbsp;&nbsp;&nbsp;&nbsp;- Draw&nbsp;--&nbsp;I&nbsp;would&nbsp;love&nbsp;to&nbsp;see&nbsp;a&nbsp;flow-chart&nbsp;that&nbsp;tells&nbsp;me&nbsp;what&nbsp;happens&nbsp;on&nbsp;a&nbsp;Map.Draw.&nbsp;&nbsp;&nbsp;And,&nbsp;within&nbsp;a&nbsp;layer,&nbsp;can&nbsp;we&nbsp;see&nbsp;exactly&nbsp;what&nbsp;the&nbsp;drawing&nbsp;internal&nbsp;call&nbsp;sequence&nbsp;is,&nbsp;in&nbsp;the&nbsp;abscence&nbsp;of&nbsp;any&nbsp;overridden&nbsp;layer&nbsp;or&nbsp;feature&nbsp;source&nbsp;methods.&nbsp;&nbsp;&nbsp;Within&nbsp;the&nbsp;default&nbsp;DrawCore,&nbsp;are&nbsp;you&nbsp;iterating&nbsp;the&nbsp;styles,&nbsp;and&nbsp;calling&nbsp;the&nbsp;Draw&nbsp;method&nbsp;of&nbsp;each&nbsp;style?&nbsp;&nbsp;&nbsp;Or&nbsp;are&nbsp;you&nbsp;drawing&nbsp;each&nbsp;feature,&nbsp;iterating&nbsp;the&nbsp;styles?
  
&nbsp;&nbsp;&nbsp;&nbsp;- Explain&nbsp;the&nbsp;use&nbsp;of&nbsp;the&nbsp;drawing&nbsp;level&nbsp;within&nbsp;the&nbsp;above&nbsp;context&nbsp;of&nbsp;drawing&nbsp;multiple&nbsp;layers.&nbsp;&nbsp;&nbsp;I&nbsp;have&nbsp;places&nbsp;where&nbsp;the&nbsp;labels&nbsp;of&nbsp;a&nbsp;layer&nbsp;drawn&nbsp;on&nbsp;the&nbsp;bottom&nbsp;of&nbsp;the&nbsp;map&nbsp;still&nbsp;show&nbsp;up&nbsp;above&nbsp;the&nbsp;features&nbsp;higher&nbsp;layers.&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;need&nbsp;to&nbsp;understand&nbsp;exactly&nbsp;how&nbsp;the&nbsp;drawing&nbsp;level&nbsp;plays&nbsp;into&nbsp;multi-layer&nbsp;draws.
  
&nbsp;&nbsp;&nbsp;&nbsp;- Refreshing&nbsp;overlays:&nbsp;&nbsp;&nbsp;I&nbsp;have&nbsp;places&nbsp;where&nbsp;I&nbsp;refresh&nbsp;a&nbsp;single&nbsp;overlay,&nbsp;and&nbsp;it&nbsp;causes&nbsp;my&nbsp;DrawCore&nbsp;method&nbsp;to&nbsp;be&nbsp;executed&nbsp;on&nbsp;other&nbsp;layers&nbsp;that&nbsp;are&nbsp;drawn&nbsp;"below"&nbsp;the&nbsp;overlay&nbsp;being&nbsp;refreshed.&nbsp;&nbsp;I&nbsp;would&nbsp;like&nbsp;to&nbsp;understand&nbsp;exactly&nbsp;what&nbsp;actions&nbsp;cause&nbsp;these&nbsp;lower&nbsp;layers&nbsp;to&nbsp;be&nbsp;drawn&nbsp;so&nbsp;that&nbsp;I&nbsp;can&nbsp;optimized&nbsp;my&nbsp;"refresh"&nbsp;drawing&nbsp;performance&nbsp;on&nbsp;layers&nbsp;that&nbsp;change.
  
&nbsp;&nbsp;&nbsp;&nbsp;- Projections.&nbsp;&nbsp;&nbsp;I'm&nbsp;not&nbsp;sure&nbsp;what&nbsp;is&nbsp;available&nbsp;on&nbsp;the&nbsp;Wiki&nbsp;for&nbsp;projections,&nbsp;and&nbsp;I&nbsp;really&nbsp;don't&nbsp;care.&nbsp;&nbsp;&nbsp;I&nbsp;have&nbsp;them&nbsp;working&nbsp;just&nbsp;fine,&nbsp;but&nbsp;it&nbsp;seems&nbsp;to&nbsp;be&nbsp;a&nbsp;source&nbsp;of&nbsp;constant&nbsp;forum&nbsp;activity.&nbsp;&nbsp;&nbsp;I&nbsp;think&nbsp;that&nbsp;is&nbsp;because&nbsp;ThinkGeo&nbsp;doesn't&nbsp;have&nbsp;the&nbsp;concept&nbsp;of&nbsp;a&nbsp;map&nbsp;projection&nbsp;that&nbsp;becomes&nbsp;the&nbsp;implicit&nbsp;"to"&nbsp;component&nbsp;of&nbsp;all&nbsp;layer&nbsp;projections.&nbsp;&nbsp;
  
&nbsp;&nbsp;&nbsp;&nbsp;- ScaleSets&nbsp;and&nbsp;how&nbsp;they&nbsp;apply...&nbsp;like&nbsp;the&nbsp;recent&nbsp;Active/InActive&nbsp;discussion.&nbsp;&nbsp;
  
&nbsp;&nbsp;&nbsp;&nbsp;- It&nbsp;would&nbsp;be&nbsp;great&nbsp;to&nbsp;have&nbsp;a&nbsp;Wiki&nbsp;topic&nbsp;dedicated&nbsp;to&nbsp;styles.&nbsp;&nbsp;&nbsp;Not&nbsp;code&nbsp;samples,&nbsp;but&nbsp;a&nbsp;styles&nbsp;overview.&nbsp;&nbsp;&nbsp;Like,&nbsp;the&nbsp;rules&nbsp;that&nbsp;if&nbsp;you&nbsp;apply&nbsp;a&nbsp;custom&nbsp;style,&nbsp;you&nbsp;loose&nbsp;the&nbsp;default&nbsp;styles,&nbsp;but&nbsp;if&nbsp;you&nbsp;set&nbsp;the&nbsp;custom&nbsp;style&nbsp;to&nbsp;null,&nbsp;your&nbsp;program&nbsp;breaks.&nbsp;&nbsp;&nbsp;And&nbsp;LOTS&nbsp;of&nbsp;details&nbsp;about&nbsp;what&nbsp;the&nbsp;various&nbsp;style&nbsp;properties&nbsp;really&nbsp;mean.
  

  

I'm&nbsp;sure&nbsp;that&nbsp;I&nbsp;have&nbsp;thought&nbsp;of&nbsp;other&nbsp;topics&nbsp;at&nbsp;various&nbsp;early&nbsp;morning&nbsp;hours...&nbsp;but&nbsp;this&nbsp;might&nbsp;serve&nbsp;as&nbsp;a&nbsp;starter&nbsp;for&nbsp;what&nbsp;a&nbsp;developer&nbsp;that&nbsp;is&nbsp;someone&nbsp;experience&nbsp;with&nbsp;MapSuite&nbsp;would&nbsp;like&nbsp;to&nbsp;see,&nbsp;rather&nbsp;than&nbsp;some&nbsp;of&nbsp;the&nbsp;programming&nbsp;101&nbsp;stuff&nbsp;that&nbsp;tends&nbsp;to&nbsp;consume&nbsp;so&nbsp;much&nbsp;forum&nbsp;time.&nbsp;&nbsp;&nbsp;&nbsp;Just&nbsp;my&nbsp;2&nbsp;cents.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [November 10, 2010, 9:16am UTC](https://community.thinkgeo.com/t/setting-currentextent-and-aspect-ratio/1472/15 "2010-11-10T09:16:12Z")

</div>

Ted,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;I&nbsp;know&nbsp;that&nbsp;we&nbsp;have&nbsp;in&nbsp;plan&nbsp;to&nbsp;write&nbsp;articles&nbsp;on&nbsp;some&nbsp;high&nbsp;level&nbsp;concepts.&nbsp;Going&nbsp;to&nbsp;such&nbsp;a&nbsp;low&nbsp;level&nbsp;of&nbsp;explanation&nbsp;like&nbsp;explaining&nbsp;the&nbsp;drawing&nbsp;internal&nbsp;call&nbsp;sequences,&nbsp;althought&nbsp;not&nbsp;directely&nbsp;useful&nbsp;for&nbsp;the&nbsp;developer,&nbsp;helps&nbsp;giving&nbsp;&nbsp;a&nbsp;perspective&nbsp;on&nbsp;what&nbsp;is&nbsp;going&nbsp;on&nbsp;behind&nbsp;the&nbsp;hood&nbsp;and&nbsp;therefore&nbsp;helps&nbsp;writing&nbsp;better&nbsp;and&nbsp;more&nbsp;efficient&nbsp;code.&nbsp;Thank&nbsp;you&nbsp;for&nbsp;those&nbsp;ideas.&nbsp;I&nbsp;passed&nbsp;them&nbsp;to&nbsp;the&nbsp;team&nbsp;responsible&nbsp;for&nbsp;maintaining&nbsp;and&nbsp;expanding&nbsp;ThinkGeo&nbsp;Wiki.
