Layer Refresh Problem

 Sanjay,


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


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



worldLayer.Open()


        Dim features = worldLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.NoColumns)


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



        Dim point1 = area1.GetCenterPoint()

        worldLayer.Close()


        WinformsMap1.CenterAt(point1)


 


Thanks,


James




FirstPoint2011-06-30_1004.zip (290 KB)
SecondPoint2011-06-30_1005.zip (312 KB)