laptop and a wrench

Erro

The visibility of a FeatureLayer cannot be toggled in the MapView when the 'visible' property is initially set to 'false' in ArcGIS API for JavaScript 4.0.

Última Publicação: July 20, 2016 ArcGIS API for JavaScript
Número de ID do Erro BUG-000097737
EnviadoJuly 13, 2016
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.0
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
Versão Fixa4.1
StatusFixed

Solução Provisória

1. In the sample application at https://jsfiddle.net/gkj4hhrv/, change the 'visible' property of the FeatureLayer to 'true' at Line 37. 2. In the HTML section at Line 6, after the 'id' attribute for 'checkbox', add the following attribute: checked="true", and the toggling works as expected.

Etapas para Reproduzir

ID do Erro: BUG-000097737

Software:

  • ArcGIS API for JavaScript

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