Guest User

Untitled

a guest
Aug 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protected function getbusinessesBtn_clickHandler(event:MouseEvent):void
  2.             {
  3.                 getBusinessResult.token = businessService.getBusiness(business);
  4.             }
  5.            
  6.             protected function getBusiness_resultHandler(event:ResultEvent):void
  7.             {
  8.                 var businesslist:ArrayCollection = event.result as ArrayCollection;
  9.                 for(var i:int=0; i<businesslist.length; i++)
  10.                 {
  11.                     var businessMarker:Marker = new Marker(new LatLng(businesslist[i].latitude, businesslist[i].longitude));
  12.                     Map.addOverlay(businessMarker);
  13.                 }
  14.             }
Add Comment
Please, Sign In to add comment