HI Guys.I would like to use a WMS in my SL app. I am use to working with REST so WMS is a little new to me. The url is this:http://njwebmap.state.nj.us/njimagery?I am able to connect to it with this bit of code which is what the Initialized event of WMSLayer is pointed at: 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); }
What I would like to do is somehow embed the URL so I dont have to specify the "Natural2007" sublayer name in the Layers property. So something like "http://njwebmap.state.nj.us/njimagery?Sublayer=Natural2007".is that possible with WMS?ThanksErnie