laptop and a wrench

Bug

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

Last Published: June 20, 2017 ArcGIS API for JavaScript
Bug ID Number BUG-000104613
SubmittedApril 20, 2017
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.3
Operating SystemN/A
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

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 = ...;

Steps to Reproduce

Bug ID: BUG-000104613

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options