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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.