laptop and a wrench

Bug

In ArcGIS JavaScript API v4.24, the new WebTileLayer is rendered only after zooming or moving the map.

Last Published: October 27, 2022 ArcGIS API for JavaScript
Bug ID Number BUG-000153231
SubmittedOctober 25, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.24
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

This is not a supported workflow. Changing any layer URL or urlTemplate once the layer is loaded is not supported. Add two WebTileLayers for this use case and swap them. The following JS Bin application shows how to add the two WebTileLayers into a GroupLayer and set the GroupLayer.visibilityMode =exclusive to show only one web tile layer at a time. Refer to https://jsbin.com/daponenafe/edit?html,output for more information.

Steps to Reproduce

Bug ID: BUG-000153231

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