Hi Guys,I'm trying to refresh a map view loaded in a WPF application, based on a timer.I have tried to refresh the Dynamic Layers using the Layer.Refresh() on the timer's interval, but it does not refresh the map view. Only when a pan or zoom event is done on the map viewer, then the view refreshes.My code:Window Load:DispatcherTimer localTimer = new DispatcherTimer();
localTimer.Tick += new EventHandler(localTimer_Tick);
localTimer.Interval = new TimeSpan(0, 0, 30);
Method to refresh the layers:private void localTimer_Tick(object sender, EventArgs e)
{
foreach (Layer layer in MyMap.Layers)
if ((layer is DynamicLayer) && (layer.Visible == true))
{
(layer as DynamicLayer).Refresh();
}
}
Any suggestions??