[AC-2777] Mapview Complete or Loading event do not fire on iOS in SDK 2.0.1GA2 and 2.0.2GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-19T16:47:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | complete, defect, event, ios, loading, mapview |
Reporter | Abhishek Tiwari |
Assignee | Federico Casali |
Created | 2012-06-22T09:04:17.000+0000 |
Updated | 2016-03-08T07:47:41.000+0000 |
Description
The Complete or Loading events do not fire on Mapview. Hence no action can be taken apart from applying annotations. This seemed to be working in earlier versions of the SDK...
Please address this asap.
Example of working behaviour
var win1 = Ti.UI.createWindow({
backgroundColor : '#fff',
exitOnClose : true,
navBarHidden : true,
//layout : 'vertical'
});
var viewbot = Ti.UI.createView({
});
win1.add(viewbot);
var map1 = Ti.Map.createView({
mapType : Ti.Map.STANDARD_TYPE,
animate : true,
region : {
latitude : 37.423156,
longitude : -122.084917,
latitudeDelta : 0.01,
longitudeDelta : 0.01
},
regionFit : true,
annotations : [Ti.Map.createAnnotation({
latitude : 37.423156,
longitude : -122.084917,
image : '/images/MapPin.png'
})],
userLocation : true,
height : Ti.UI.Fill
});
viewbot.add(map1);
map1.addEventListener('loading', function(e){
alert('loading');
});
map1.addEventListener('complete', function(e){
alert('complete');
});
var square1 = Ti.UI.createView({
height : 20,
width : 20,
backgroundColor : 'red',
bottom : 10,
left : 10,
//zIndex: 1
});
viewbot.add(square1);
win1.open();
Both of these event listeners are working as seen in the test code provided. Closing this ticket as a result and marking invalid.
These still dont work on 2.0.1 and 2.0.2. I recently tried them on 2.1.0 and again they dont seem to be working.