![]() |
How to Refresh a layer |
Post Reply
|
| Author | |
aeshaq
Visitor
Joined: November 20 2009 Location: Saudi Arabia Online Status: Offline Posts: 2 |
Post Options
Quote Reply
Topic: How to Refresh a layerPosted: November 20 2009 at 6:33am |
|
Hi everybody , I want to Refresh a layer programmatically during run time I’m using IinformationTree to find the layer , and GetLayer Method to get That Layer that i want to refresh Here is the code var ItemID = IInformationTree.FindItem ("mylayername");
if(IInformationTree.IsLayer(ItemID)) { var mylayer; mylayer = IInformationTree.GetLayer(ItemID); mylayer.Refresh(); } BUT when I run this code , I get a message that the object does not support this property or methode Can someone help me ? Thanks and best regards |
|
![]() |
|
Eylon
Skyline Admin Group
Joined: May 05 2003 Location: Israel Online Status: Offline Posts: 216 |
Post Options
Quote Reply
Posted: November 30 2009 at 9:46am |
|
aeshaq, your code works for me. Check what line the error refers to and check the variable values. Here is my full code:
|
|
|
Eylon
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |