laptop and a wrench

Erro

The time slider of the Slider template in ArcGIS Instant Apps does not update the time extent to reflect the time updates occurring in an image service.

Portal for ArcGIS
Número de ID do Erro BUG-000164222
EnviadoJanuary 9, 2024
Última ModificaçãoAugust 28, 2025
Aplica-se àPortal for ArcGIS
Versão encontrada11.1
Sistema OperacionalWindows Server
Versão do Sistema Operacional2016 64 Bit
StatusKnown Limit

Informações Adicionais

The time extent is driven off the web map settings. It is not aware of changes made at the level of the service. Updating the time extent of the web map is required for this change.

Solução Provisória

There are two workarounds for the defect.

  • Saving the web map updates the time slider in the web map and the instant app.
  • Stopping and starting the image service from ArcGIS Server Manager or the ArcGIS Server admin endpoint and run the following Python script. Then, update the web map JSON script. The script updates the end time in the time slider of a web map. It can be customized for other workflows.

 

# import modules

import datetime

from arcgis.gis import GIS

 

# establish a connection to the Portal

gis = GIS("portal url", "username", "password")

 

# get the web map

web_map = gis.content.get("web map item id")

 

# access to the web map JSON

web_map_data = web_map.get_data()

 

# access to the time slider properties

time_slider_properties = web_map_data['widgets']['timeSlider']['properties']

 

# access time slider old end time

time_slider_end_time = time_slider_properties.get('endTime')

 

# input the new end time

# An example of answer for the input question: 2024-01-09-19-00-00

datetime_info = input("Specify the new end time in YYYY-MM-DD-HH-MM-SS format:")

 

# define the new end time based on 13-digit datetime format

year, month, day, hour, minute, second = map(int, datetime_info.split('-'))

new_end_time_info = datetime.datetime(year, month, day, hour, minute, second)

new_end_time = int(datetime.datetime.timestamp(new_end_time_info)*1000)

 

# assign the new value to the end time

end_time_dict = {'endTime':new_end_time}

 

# update the time slider properties

time_slider_properties.update(end_time_dict)

 

# define web map properties based on the update applied to the end time

web_map_properties = {"text": web_map_data}

 

# update the web map using web_map_properties variable

web_map.update(item_properties=web_map_properties)

Etapas para Reproduzir

ID do Erro: BUG-000164222

Software:

  • Portal for ArcGIS

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