public void AddWMSMapLayer(string sURL, string sMapID, string sProxyURL) { WmsLayer WMSLayer = new WmsLayer() { Url = sURL }; WMSLayer.Initialized += new EventHandler<EventArgs>(WMSLayer_Initialized); WMSLayer.Initialize(); } void WMSLayer_Initialized(object sender, EventArgs e) { WmsLayer WMSLayer = (WmsLayer)sender; WMSLayer.Layers = new string[] { "Natural2007" }; mapLayers.Insert(0, WMSLayer); }
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.