laptop and a wrench

Error

Setting layerDefinitions for IdentifyParameters results in error, “TypeError: identifyParams.layerDefinitions is null.”

Última publicación: August 25, 2014 ArcGIS API for JavaScript
Número de ID del error NIM072828
EnviadoSeptember 16, 2011
Última modificaciónDecember 1, 2020
Relacionado conArcGIS API for JavaScript
Versión encontrada2.4
Lenguaje del programaJavaScript
Sistema operativoWindows
Versión de sistema operativoXP
EstadoIn Product Plan

Solución alternativa

identifyParameters.layerDefinitions needs to be created manually as it is an optional parameter. This code does not produce the error reported: // create an array to hold layer definitions // each array item corresponds to a single layer def identifyParams.layerDefinitions = []; // populate the array identifyParams.layerDefinitions[2] = "PSTLADDRESS= '4686 Brightmore Rd'";The documentation will be updated to be more explicit.

Pasos para reproducir

ID del error: NIM072828

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