Select to view content in your preferred language

What event fires when layers/layer get fully loaded on map?

735
2
08-01-2013 12:21 PM
tonylife
Occasional Contributor
I want to calculate the number of features in feature layer in current extent at the time everything is loaded.
Is there a event I can capture?

I tried following events, all of them get fired BEFORE layer graphics of current extent get loaded. That results in incorrect number of features.

Map:
onLayersAddResult
onZoomEnd
onPanEnd

Layer:
update-end

Thanks,
Tony
0 Kudos
2 Replies
DianaBenedict
Frequent Contributor
have you tried map "onUpdateEnd"?

Though the layer "onUpdateEnd" should theoretically work
https://developers.arcgis.com/en/javascript/jsapi/arcgisdynamicmapservicelayer.html#onupdateend
0 Kudos
SteveCole
Honored Contributor
0 Kudos