We have a working application using the Desktop version 4.5. It pulls map data from our WMS Server. I was able to get Desktop version 6.0 and upgrade. With version 6.0, the markers do not display. Did something change between those 2 versions regarding the display of icon markers?
Are you receiving other data from your WMS server that displays properly?
If so you might verify that the request you are sending for your points is correct. We have a SendingWebRequest EventHandler on the TiledWmsOverlay that can let you check out the web request being sent to verify it is correct.
The map data from the WMS server is displaying properly. We are adding a TiledWMSOverlay to that WMS server data; so I am not suspect of the WMS server I did have to change the constructor call of the TiledWMSServer as indicated below:
//version 4.5 TiledWmsLayer tiledWmsLayer = new TiledWmsLayer(new Uri(WmsServer)); <==this threw an error in v6 to //version 6 Collection<System.Uri> onsiteServers = new Collection<Uri>(); onsiteServers.Add(new Uri(WmsServer)); TiledWmsLayer tiledWmsLayer = new TiledWmsLayer(onsiteServers);
Could this be the problem? WmsServer variable is a string that holds the url of the WMS server. Another note, with smaller set of marker data, the icons show initially; but if the map is zoomed or moved, we lose the markers. They never reappear.
You stated that the 'Markers' are not displaying? If you are using a TiledWMSLayer are these markers embedded in the tiles, or are you adding Markers on top off the TiledWMSLayer through something link an InMemoryMarkerOverlay?
I am just not clear if you mean markers as on 'points embedded in your WMSLayer' or if you have Markers (one of our object types) being added from a different source.
Could you perhaps provide a screenshot and some code showing how this is setup in your application so these distinctions are more clear?
For simplicity, I have attached a code file demonstrating how the layers are drawn, and 2 images demonstrating the map with the icons displaying, and after slightly moving the map.
I tried to simplify the sample code you provided, and it works on my side with version 6.0.152.0 in HowDoISamples. please have a try and make sure the wms layer and the markers are under the same map unit. If you still have problems, please provide more information.