Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2777] Mapview Complete or Loading event do not fire on iOS in SDK 2.0.1GA2 and 2.0.2GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-07-19T16:47:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelscomplete, defect, event, ios, loading, mapview
ReporterAbhishek Tiwari
AssigneeFederico Casali
Created2012-06-22T09:04:17.000+0000
Updated2016-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(); 

Comments

  1. Carter Lathrop 2012-07-19

    Both of these event listeners are working as seen in the test code provided. Closing this ticket as a result and marking invalid.
  2. Abhishek Tiwari 2012-07-22

    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.

JSON Source