# Layer Refresh Problem

**URL:** <https://community.thinkgeo.com/t/layer-refresh-problem/1713>\
**Category:** WinForms\
**Created:** [May 25, 2011, 1:42am UTC](https://community.thinkgeo.com/t/layer-refresh-problem/1713 "2011-05-25T01:42:28Z")\
**Posts on this page:** 1\
**Page:** 3

<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:** [June 30, 2011, 10:12am UTC](https://community.thinkgeo.com/t/layer-refresh-problem/1713/41 "2011-06-30T10:12:22Z")

</div>

&nbsp;Sanjay,

I&nbsp;try&nbsp;to&nbsp;use&nbsp;shift&nbsp;key&nbsp;track&nbsp;zoom&nbsp;in&nbsp;to&nbsp;either&nbsp;of&nbsp;two&nbsp;points,&nbsp;they&nbsp;both&nbsp;work.&nbsp;After&nbsp;track&nbsp;zoom&nbsp;in&nbsp;to&nbsp;any&nbsp;one&nbsp;point,&nbsp;the&nbsp;point&nbsp;is&nbsp;displayed&nbsp;on&nbsp;the&nbsp;center&nbsp;of&nbsp;map,&nbsp;I&nbsp;have&nbsp;taken&nbsp;two&nbsp;video&nbsp;to&nbsp;show&nbsp;my&nbsp;testing.

If&nbsp;you&nbsp;have&nbsp;area&nbsp;based&nbsp;tab&nbsp;file&nbsp;and&nbsp;you&nbsp;want&nbsp;to&nbsp;center&nbsp;of&nbsp;some&nbsp;one,&nbsp;you&nbsp;can&nbsp;center&nbsp;at&nbsp;center&nbsp;point&nbsp;of&nbsp;the&nbsp;area.

worldLayer.Open()

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;features&nbsp;=&nbsp;worldLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.NoColumns)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;area1&nbsp;=&nbsp;CType(features(0).GetShape(),&nbsp;AreaBaseShape)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;point1&nbsp;=&nbsp;area1.GetCenterPoint()

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;worldLayer.Close()

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WinformsMap1.CenterAt(point1)

&nbsp;

Thanks,

James

[FirstPoint2011-06-30\_1004.zip](https://community.thinkgeo.com/uploads/default/original/2X/5/533e72f04116af35949a727b4f2881b650f43d4f.zip) (290 KB)  
[SecondPoint2011-06-30\_1005.zip](https://community.thinkgeo.com/uploads/default/original/2X/b/bbda27defeacb221e6bc0a27ae9d1e4ca958a847.zip) (312 KB)

[Previous page](https://community.thinkgeo.com/t/layer-refresh-problem/1713.md?page=2)
