laptop and a wrench

Error

The maxScale and minScale Property are always 0 for MapImageLayer sublayers on ArcGIS API for JavaScript 4.1 and above.

Última publicación: June 20, 2017 ArcGIS API for JavaScript
Número de ID del error BUG-000104613
EnviadoApril 20, 2017
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.3
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoWill Not Be Addressed

Información adicional

Since the sublayers are manually set and only visible and id are specified, the rest of the properties use default values (0,0) If you want to keep the minScale/maxScale of the sublayers, you can either do new MapImageLayer({ sublayers: [{ id: ..., visible:..., minScale: ..., maxScale }] }) or var layer = new MapImageLayer({url: ...}); layer.sublayers.getItemAt(...).visible = ...;

Pasos para reproducir

ID del error: BUG-000104613

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