laptop and a wrench

Bug

A feature layer created using a feature collection fails to run the 'load' event.

Last Published: January 27, 2017 ArcGIS API for JavaScript
Bug ID Number BUG-000099146
SubmittedSeptember 6, 2016
Last ModifiedDecember 1, 2020
Applies toArcGIS API for JavaScript
Version found3.17
Operating SystemWindows
Operating System Version7.0 64 Bit
StatusWill Not Be Addressed

Additional Information

FL created using feature collection loads immediately, i.e. the load event gets fired when the code inside the constructor is still executing. var layer = new FeatureLayer(…); console.log(layer.loaded); // this will print true. So, even before the “layer” object is ready, the load event has already happened. So, the event listener for “load” event will never be fired.

Steps to Reproduce

Bug ID: BUG-000099146

Software:

  • ArcGIS API for JavaScript

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic