laptop and a wrench

Error

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 publicación: July 20, 2016 ArcGIS API for JavaScript
Número de ID del error BUG-000097737
EnviadoJuly 13, 2016
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.0
Sistema operativoN/A
Versión de sistema operativoN/A
Versión corregida4.1
EstadoFixed

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000097737

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga