The dynamic service URL is defined in the c# code according to users' selection. The graphics are also added dynamically using the code.
I can clear the graphics in the graphiclayer, how can I clear the dynamic map service before reassigning a new url or should I redraw the whole map. Any suggestion to improve caching problems with many services to be visualized. Thanks.
It is working now I am not sure what could be wrong. Thanks anyway. One more question. The zoom functionality is working using the wheel, I don't get the pan working using the mouse. Any idea?
sorry for the late reply. Yes, I have also seen another case in the forum and the scrollview is the cause. However I have added a navigator on the map so somehow I solved the problem.
When I started this thread I had three layers. Now users can select either a cached or dynamic layer from a list of Layers. So either one between SelectedDynamicService or SelectedCachedService would be displayed.
If I set the map layers as above I get problems at run time when either one url is not assigned. Is there a way I can set a generic Layer at design time and then assign a dynamic or cached url at run time?