Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: JavaScript  |  size: 0.48 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Ti.App.addEventListener('app:shoppingFilialen', function(e){
  2.         var shopping = globals.shoppingFilialen;
  3.        
  4.         for( filiaal in shopping ){
  5.                 Ti.API.info('in de forloop ' + shopping[filiaal].filLat);
  6.                
  7.                 var shoppingFiliaal = Ti.Map.createAnnotation({
  8.                         title: shopping[filiaal].filName,
  9.                         latitude: shopping[filiaal].filLat,
  10.                         longitude: shopping[filiaal].filLng,
  11.                         pincolor : Titanium.Map.ANNOTATION_GREEN,
  12.                 animate : true
  13.                 });
  14.        
  15.                 shoppingFilialen.push( shoppingFiliaal );      
  16.         }
  17. });