I'd probably do it after you insert it into your map. Are you trying to insert the layer at a specific place in your layer order? Otherwise you can just use MyMap.Add(mylayer);
Do I have to initialize after inserting the layer to the map or before ? ArcGISDynamicMapServiceLayer mylayer = new ArcGISDynamicMapServiceLayer();mylayer.DisableClientCaching = true;//recommended mylayer.Url = DynamicUrl ;mylayer.ID = "CURRENTLAYER"; mylayer.Initialized += new EventHandler<EventArgs>(mylayer_Initialized); int totlayers = this.MyMap1.Layers.Count;this.MyMap1.Layers.Insert(totlayers, mylayer);mylayer.Initialize() ; Please help.. thanks a lot
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.