# Difference between the background and the dynamic layer

**URL:** <https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124>\
**Category:** WinForms\
**Created:** [March 30, 2010, 3:19am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124 "2010-03-30T03:19:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre-Antoine](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/pierre-antoine/32/24983_2.png) [@Pierre-Antoine](https://community.thinkgeo.com/u/Pierre-Antoine)\
**Post date:** [March 30, 2010, 3:19am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/1 "2010-03-30T03:19:57Z")

</div>

Hello,

I&nbsp;have&nbsp;a&nbsp;difference&nbsp;between&nbsp;the&nbsp;background&nbsp;and&nbsp;the&nbsp;dynamic&nbsp;layer.&nbsp;My&nbsp;background&nbsp;is&nbsp;a&nbsp;VirtualEarthLayer&nbsp;and&nbsp;I&nbsp;use&nbsp;InMemoryFeatureLayer&nbsp;for&nbsp;the&nbsp;dynamic&nbsp;layer.

When&nbsp;I&nbsp;draw&nbsp;some&nbsp;features&nbsp;and&nbsp;I&nbsp;try&nbsp;to&nbsp;navigate&nbsp;or&nbsp;zoom&nbsp;in&nbsp;the&nbsp;map,&nbsp;the&nbsp;features&nbsp;didn't&nbsp;move&nbsp;in&nbsp;the&nbsp;same&nbsp;way.&nbsp;It's&nbsp;like&nbsp;there&nbsp;is&nbsp;2&nbsp;different&nbsp;projection&nbsp;for&nbsp;the&nbsp;layers.

I&nbsp;use&nbsp;the&nbsp;same&nbsp;configuration&nbsp;in&nbsp;a&nbsp;prototype&nbsp;and&nbsp;I&nbsp;don't&nbsp;have&nbsp;this&nbsp;problem.  
  
Do&nbsp;you&nbsp;have&nbsp;any&nbsp;ideas&nbsp;?

Thanks.

---

<div class="post-metadata">

**Author:** ![Pierre-Antoine](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/pierre-antoine/32/24983_2.png) [@Pierre-Antoine](https://community.thinkgeo.com/u/Pierre-Antoine)\
**Post date:** [March 30, 2010, 7:43am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/2 "2010-03-30T07:43:08Z")

</div>

I&nbsp;have&nbsp;another&nbsp;clue&nbsp;about&nbsp;my&nbsp;problem.&nbsp;This&nbsp;comes&nbsp;from&nbsp;VirtualEarth.  
  
  
  
When&nbsp;I&nbsp;put&nbsp;my&nbsp;&nbsp;mouse&nbsp;on&nbsp;a&nbsp;recognizable&nbsp;item&nbsp;(eg&nbsp;a&nbsp;tree)&nbsp;and&nbsp;I&nbsp;will&nbsp;move&nbsp;the&nbsp;map,&nbsp;&nbsp;when&nbsp;I&nbsp;release&nbsp;the&nbsp;button&nbsp;of&nbsp;my&nbsp;mouse,&nbsp;this&nbsp;item&nbsp;is&nbsp;no&nbsp;longer&nbsp;aligned&nbsp;&nbsp;with&nbsp;the&nbsp;mouse.

---

<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:** [March 31, 2010, 2:41am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/3 "2010-03-31T02:41:09Z")

</div>

Pierre-Antoine,&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;I&nbsp;am&nbsp;not&nbsp;misunderstanding&nbsp;anything,&nbsp;I&nbsp;think&nbsp;your&nbsp;problem&nbsp;may&nbsp;lies&nbsp;in&nbsp;the&nbsp;data&nbsp;for&nbsp;your&nbsp;InmemoryFeatureLayer&nbsp;is&nbsp;not&nbsp;in&nbsp;the&nbsp;same&nbsp;projection&nbsp;with&nbsp;VE&nbsp;which&nbsp;is&nbsp;900913.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;discussion&nbsp;would&nbsp;be&nbsp;appricated.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![Pierre-Antoine](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/pierre-antoine/32/24983_2.png) [@Pierre-Antoine](https://community.thinkgeo.com/u/Pierre-Antoine)\
**Post date:** [March 31, 2010, 3:48am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/4 "2010-03-31T03:48:30Z")

</div>

Hello&nbsp;Yale,

Thanks&nbsp;for&nbsp;your&nbsp;answer&nbsp;but&nbsp;I've&nbsp;already&nbsp;think&nbsp;about&nbsp;that&nbsp;and&nbsp;it's&nbsp;not&nbsp;this&nbsp;problem.&nbsp;  
  
I&nbsp;have&nbsp;the&nbsp;same&nbsp;problem&nbsp;when&nbsp;I've&nbsp;only&nbsp;the&nbsp;VirtualEarth&nbsp;layer.

---

<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:** [March 31, 2010, 8:00pm UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/5 "2010-03-31T20:00:36Z")

</div>

Pierre-Antoine,&nbsp;

Thanks&nbsp;for&nbsp;your&nbsp;reply&nbsp;and&nbsp;let&nbsp;me&nbsp;know&nbsp;your&nbsp;status,&nbsp;which&nbsp;will&nbsp;save&nbsp;me&nbsp;quite&nbsp;a&nbsp;time&nbsp;to&nbsp;think&nbsp;about&nbsp;itJ.&nbsp;Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Pierre-Antoine](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/pierre-antoine/32/24983_2.png) [@Pierre-Antoine](https://community.thinkgeo.com/u/Pierre-Antoine)\
**Post date:** [April 1, 2010, 3:16am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/6 "2010-04-01T03:16:33Z")

</div>

Hello&nbsp;Yale,

To&nbsp;be&nbsp;clear,&nbsp;I've&nbsp;got&nbsp;the&nbsp;same&nbsp;problem&nbsp;as&nbsp;this&nbsp;post&nbsp;:&nbsp;[gis.thinkgeo.com/tabid/143/aff/12/a...fault.aspx](http://gis.thinkgeo.com/tabid/143/aff/12/afv/topic/aft/5620/Default.aspx)

This&nbsp;post&nbsp;raises&nbsp;some&nbsp;problem&nbsp;on&nbsp;the&nbsp;web&nbsp;version&nbsp;but&nbsp;I'm&nbsp;on&nbsp;the&nbsp;desktop&nbsp;version.

---

<div class="post-metadata">

**Author:** ![Pierre-Antoine](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/pierre-antoine/32/24983_2.png) [@Pierre-Antoine](https://community.thinkgeo.com/u/Pierre-Antoine)\
**Post date:** [April 1, 2010, 9:42am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/7 "2010-04-01T09:42:15Z")

</div>

FYI&nbsp;:&nbsp;I&nbsp;take&nbsp;a&nbsp;look&nbsp;on&nbsp;my&nbsp;prototype&nbsp;and&nbsp;I&nbsp;have&nbsp;a&nbsp;shift&nbsp;too.&nbsp;A&nbsp;little&nbsp;one&nbsp;but&nbsp;it's&nbsp;here.

&nbsp;

I&nbsp;draw&nbsp;this&nbsp;feature&nbsp;:

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

&nbsp;

When&nbsp;I&nbsp;zoom&nbsp;on&nbsp;it&nbsp;:

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

I&nbsp;have&nbsp;to&nbsp;zoom&nbsp;once&nbsp;again&nbsp;to&nbsp;have&nbsp;the&nbsp;good&nbsp;match.

&nbsp;

When&nbsp;I&nbsp;pan&nbsp;the&nbsp;map&nbsp;:

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

---

<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:** [April 1, 2010, 9:27pm UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/8 "2010-04-01T21:27:07Z")

</div>

[Pierre-Antoine](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/afv/profile/uid/32302/Default.aspx),

I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;say&nbsp;that&nbsp;I&nbsp;could&nbsp;not&nbsp;recreate&nbsp;your&nbsp;problem.&nbsp;I&nbsp;tested&nbsp;by&nbsp;change&nbsp;the&nbsp;HowDoI&nbsp;sample&nbsp;TrackAndEditShape&nbsp;sample;&nbsp;the&nbsp;following&nbsp;code&nbsp;is&nbsp;its&nbsp;loading&nbsp;code&nbsp;with&nbsp;accound&nbsp;and&nbsp;password&nbsp;needed.  
&nbsp;  
winformsMap1.MapUnit&nbsp;=&nbsp;GeographyUnit.Meter;  
winformsMap1.BackgroundOverlay.BackgroundBrush&nbsp;=&nbsp;new&nbsp;GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);  
`string accountId = " ****";string password = "****";string clientIpAddress = "66.249.71.109";string cacheDirectory = @"c:\temp\";VirtualEarthLayer velayer = new VirtualEarthLayer(accountId, password, clientIpAddress, cacheDirectory);velayer.MapType = VirtualEarthMapType.AerialWithLabels; LayerOverlay layerOverlay = new LayerOverlay();layerOverlay.Layers.Add(velayer); winformsMap1.Overlays.Add(layerOverlay); winformsMap1.CurrentExtent = new RectangleShape(-143.4, 109.3, 116.7, -76.3);winformsMap1.Refresh();`  
  
&nbsp;  
&nbsp;  
Following&nbsp;is&nbsp;three&nbsp;screenshot&nbsp;with&nbsp;zoomin&nbsp;and&nbsp;zoomout.  
&nbsp;  
So,&nbsp;in&nbsp;your&nbsp;case,&nbsp;just&nbsp;make&nbsp;sure&nbsp;2&nbsp;things:  
1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Did&nbsp;you&nbsp;turn&nbsp;off&nbsp;the&nbsp;ZoomLevelSnappingMode&nbsp;from&nbsp;default&nbsp;to&nbsp;none?  
2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;How&nbsp;did&nbsp;you&nbsp;generate&nbsp;your&nbsp;inmemoryLayer&nbsp;data,&nbsp;I&nbsp;means&nbsp;the&nbsp;polygon&nbsp;in&nbsp;your&nbsp;screenshot?&nbsp;I&nbsp;did&nbsp;by&nbsp;track&nbsp;a&nbsp;shape&nbsp;along&nbsp;some&nbsp;building,&nbsp;in&nbsp;this&nbsp;way,&nbsp;the&nbsp;tracked&nbsp;out&nbsp;polygon&nbsp;should&nbsp;be&nbsp;in&nbsp;the&nbsp;same&nbsp;projection&nbsp;with&nbsp;the&nbsp;VE.&nbsp;I&nbsp;am&nbsp;not&nbsp;sure&nbsp;your&nbsp;data&nbsp;source&nbsp;from,&nbsp;so&nbsp;I&nbsp;cannot&nbsp;make&nbsp;sure&nbsp;about&nbsp;this&nbsp;point.  
&nbsp;  
If&nbsp;you&nbsp;still&nbsp;have&nbsp;problem&nbsp;it&nbsp;would&nbsp;be&nbsp;nice&nbsp;and&nbsp;helpful&nbsp;if&nbsp;you&nbsp;could&nbsp;make&nbsp;a&nbsp;small&nbsp;sample&nbsp;application&nbsp;for&nbsp;me.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<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:** [April 1, 2010, 9:34pm UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/9 "2010-04-01T21:34:38Z")

</div>

[Pierre-Antoine](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/afv/profile/uid/32302/Default.aspx),

Sorry&nbsp;for&nbsp;missing&nbsp;the&nbsp;screenshots,&nbsp;see&nbsp;following&nbsp;attachments.  
&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/2X/0/08baac3454c05b485a8c4db5708b28ea46fc6886.png)  
 ![](https://community.thinkgeo.com/uploads/default/original/2X/e/e53b0276ab24278d49dc2388b11241d0a704c066.png)  
 ![](https://community.thinkgeo.com/uploads/default/original/2X/0/0ac69462d67fc5b293b290cf15137c5bb1c5fce8.png)  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Pierre-Antoine](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/pierre-antoine/32/24983_2.png) [@Pierre-Antoine](https://community.thinkgeo.com/u/Pierre-Antoine)\
**Post date:** [April 2, 2010, 2:48am UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/10 "2010-04-02T02:48:28Z")

</div>

``

`1)      Did you turn off the ZoomLevelSnappingMode from default to none?`

`
`

Yes

``

`2)      How did you generate your inmemoryLayer data, I means the polygon in your screenshot? I did by track a shape along some building, in this way, the tracked out polygon should be in the same projection with the VE. I am not sure your data source from, so I cannot make sure about this point.`

`
`  

&nbsp;

The&nbsp;polygon&nbsp;was&nbsp;created&nbsp;by&nbsp;tracking&nbsp;a&nbsp;shape&nbsp;in&nbsp;the&nbsp;trackshapelayer.

---

<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:** [April 5, 2010, 8:21pm UTC](https://community.thinkgeo.com/t/difference-between-the-background-and-the-dynamic-layer/1124/11 "2010-04-05T20:21:32Z")

</div>

Pierre-Antoine,

Thanks&nbsp;for&nbsp;your&nbsp;reply.  
&nbsp;  
I&nbsp;think&nbsp;the&nbsp;problem&nbsp;is&nbsp;probably&nbsp;that&nbsp;you&nbsp;turn&nbsp;off&nbsp;the&nbsp;ZoomLevelSnapping&nbsp;Mode&nbsp;.&nbsp;I&nbsp;think&nbsp;up&nbsp;to&nbsp;now&nbsp;the&nbsp;VirtualEarthLayer&nbsp;(or&nbsp;Overlay)&nbsp;and&nbsp;the&nbsp;GoogleLayer(&nbsp;or&nbsp;GoogleOverlay)&nbsp;cannot&nbsp;support&nbsp;&nbsp;those&nbsp;non-preset&nbsp;zoomlevels.&nbsp;The&nbsp;reason&nbsp;is&nbsp;that&nbsp;these&nbsp;images&nbsp;retrieved&nbsp;from&nbsp;Google&nbsp;server&nbsp;or&nbsp;VE&nbsp;server&nbsp;is&nbsp;just&nbsp;tiled&nbsp;images,&nbsp;it&nbsp;did&nbsp;not&nbsp;support&nbsp;non-preset&nbsp;scales&nbsp;image&nbsp;fetching.  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale
