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
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);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.