if (dataTable.containsKey("ovMap"))
setTimeout(updateOverviewExtent, 4000);
private function setOverviewExtent(event:ExtentEvent):void { ovGraphic.geometry = map.extent; if (overviewMode == "dynamic"){ ovMap.extent = map.extent.expand(3); } try{ var ac:ArrayCollection = new ArrayCollection([]); var bmpDat:BitmapData = ImageSnapshot.captureBitmapData(ovMap); ac.addItem(bmpDat); addSharedData("ovMap",ac); } catch(err:Error){ } } private function updateOverviewExtent():void { ovGraphic.geometry = map.extent; if (overviewMode == "dynamic"){ ovMap.extent = map.extent.expand(3); } try{ var ac:ArrayCollection = new ArrayCollection([]); var bmpDat:BitmapData = ImageSnapshot.captureBitmapData(ovMap); ac.addItem(bmpDat); addSharedData("ovMap",ac); } catch(err:Error){ } }