how to know agsmapview draw complete

694
1
08-14-2012 07:59 PM
XiaoJing
New Contributor
I tried to use "- mapViewDidLoad:" in AGSMapViewLayerDelegate,but map did not show when the method called.
Is there a method like "mapViewDidDraw" or another way to know mapview is draw complete?

Thanks.
0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
The mapViewDidLoad fires when first layer is added to the map and map is being initialized with spatial reference and envelope. If you want to know when all layers are loaded then you should use mapView:didLoadLayerForLayerView: for each layer you are adding to the map. You can check when all layers are loaded (not drawn) and then do your further work. There is no mechanism to check whether layer is finished drawing in the map.

Hope this helps!

Regards,
Nimesh
0 Kudos