laptop and a wrench

Erro

The Weather Underground widget sample fails to update accurately after saving and re-opening the view.

Última Publicação: April 8, 2019 ArcGIS Runtime SDK for WPF
Número de ID do Erro BUG-000082614
EnviadoOctober 15, 2014
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Runtime SDK for WPF
Versão encontrada10.2.3
Versão FixaQ1 2015
StatusFixed

Solução Provisória

The issue is specific to the call to webClient.DownloadStringAsync.Block the user interface (UI) thread and get the values synchronously, and the value is updated properly.Also, rewrite the UpdateWeather method to use the async await pattern, and the value is updated properly.For example:private async void UpdateWeather(){if (NoDeveloperKey) return;// Find the new center of the extent of the map in lat, long.client.Geometry.MapPoint centerPoint = _map.Extent.GetCenter();client.Geometry.MapPoint geographicPoint = Transform.WebMercatorToGeographic(centerPoint);// Get a new weather observation.WebClient webClient = new WebClient();//webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted);string x = await webClient.DownloadStringTaskAsync(new Uri(String.Format("{0}{1},{2}.json", _weatherServiceUrl, geographicPoint.Y, geographicPoint.X)));JavaScriptSerializer serializer = new JavaScriptSerializer();Response response = serializer.Deserialize<Response>(x);this.observation = response.current_observation;this.satelliteImage = response.satellite;}

Etapas para Reproduzir

ID do Erro: BUG-000082614

Software:

  • ArcGIS Runtime SDK for WPF

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download