[TIMOB-13881] iOS: Map annotation crashes the application
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2016-10-18T12:39:00.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Paras Mishra |
| Assignee | Eric Merriman |
| Created | 2013-05-16T11:20:44.000+0000 |
| Updated | 2017-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.
Cannot reproduce this with recent versions of ti.map anymore. Thx!
Closing ticket as the issue cannot be reproduced.