I have blacked out on my code, don't know what I've been doing wrong to not get any annotations to show on my mapview when reading them from a json file.
Any suggestions on what I've been doing wrong?
I get the info from the json file in the debug console, but don't appear to show in the simulator or on the device.
just looking at your code, I think you need to create the mapView after you have the annotations created or add the annotations at the end of your for loop… see snippet below
Ti.API.debug("Adding annotation for " + annotation.latitude + " " + annotation.longitude ); mapview .addAnnotation (annotation) aAnnotations.push(annotation);