Unable to set the visibility of a map layer


When using displayLayers to turn additional layers on, the layers do not appear on the map and no error is generated.


The map layers are not available at the given extent. For instance, when viewing the entire United States, the ZIP code layers will not be available.

Solution or Workaround

Determine which layers are available for a given map.

In v2006 and v2006.1, use the getMaps method with the parameter returnLayers=true.

In v2, use the method getLayerInfoForExtent.

    Article ID:000006399

    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic