AnsweredAssumed Answered

How to detect if a layer was draw completely?

Question asked by tobe81cwb on Apr 13, 2016
Latest reply on Apr 14, 2016 by tobe81cwb

I have a feature layer with many features, and when I load on map viewer (Portal for Arcgis), I receive a message that 'Layer did not draw completely'. This is ok, because this layer don't have any visible range configured and have many features.


But, when I try to use this feature layer on ArcGIS API for Javascript, the layer don't draw completely too, but I don't know how detect if this layer was draw completely or not (to show a message for the user).


I already tried the 'update-end' event of feature layer, but this event don't show any error, even when the layer was not draw completely.




var featureLayer = new FeatureLayer("http://server/acgis/rest/services/ServiceTest/FeatureServer/0", {
  mode: FeatureLayer.MODE_ONDEMAND,
  outFields: ["*"]

featureLayer.on("update-end", function(e) {