Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13881] iOS: Map annotation crashes the application

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-10-18T12:39:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterParas Mishra
AssigneeEric Merriman
Created2013-05-16T11:20:44.000+0000
Updated2017-03-24T21:56:43.000+0000

Description

iOS: Map annotation crashes the application. This is a regression. Steps to reproduce: 1. Run the following app.
var win1 = Titanium.UI.createWindow({  
    title:'window 1',
    backgroundColor:'#fff'
});
var changeButton = Ti.UI.createButton({
		    title: 'change colour'
		});
		
		win1.rightNavButton = changeButton;
		 
		var map = Ti.Map.createView({
		    userLocation:false,
		    animate: true,
		    region: {
		        latitude:12,
		        longitude:12,
		        latitudeDelta:1,
		        longitudeDelta:1
		    }
		});
		 
		var annot = Ti.Map.createAnnotation({
		    latitude:12,
		    longitude:12,
		    image: 'blue.png'
		});
		 
		map.addAnnotation(annot);
		 
		win1.add(map);
	        win1.open({modal: true});
		 
		var isBlue = true;
		 
		changeButton.addEventListener('click', function(e){
		    annot.image = isBlue ? 'yellow.png' : 'blue.png';
		    isBlue = !isBlue;
		});
                win1.open();
Expected: App should run successfully showing blue pin on the screen Actual: App crashes on the execution.

Comments

  1. Hans Knöchel 2016-10-18

    Cannot reproduce this with recent versions of ti.map anymore. Thx!
  2. Lee Morris 2017-03-24

    Closing ticket as the issue cannot be reproduced.

JSON Source