This is not a regression.
||SDK||MAP MODULE||RESULT||
|3.5.0.v20141219075715|2.2.0|Fail
|3.4.1|2.0.6|Fail
|3.5.0.v20141219075715|2.0.6|Fail
|3.4.1|2.2.0|Fail
Description:
1. Replace the app.js of your app with the code below:
var MapModule = require('ti.map');
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var annotations = [];
var annotation = MapModule.createAnnotation({
latitude : 37.390749,
longitude : -122.08165,
title : "Annotation Test",
pincolor : MapModule.ANNOTATION_RED,
animate : true
});
annotations.push(annotation);
var map = MapModule.createView({
mapType : MapModule.NORMAL_TYPE,
region : {
latitude : 37.390749,
longitude : -122.08165,
latitudeDelta : 0.5,
longitudeDelta : 0.5
},
animate : false,
regionFit : true,
annotations : annotations
});
map.addEventListener('click', function(e) {
alert("Click Source: "+e.clicksource);
});
win.add(map);
win.open();
2. Run on IOS device.
3. Launch the application.
4. Click on the annotation pin.
Actual Results:
1. You will see the annotation popup with an alert clicksource: pin.
2. Close the alert.
3. With the annotation showing click anywhere on the map.
4. You will see the annotation goes away & we get an alert clicksource: annotation.
Expected Result:
1. We should not get any alert with clicksource:annotation when clicked anywhere on the map but the annotation.
Using Ti.Map 2.8.0 and Titanium SDK 5.5.1.GA / 6.0.0 Beta / 6.1.0 master, I cannot reproduce this behavior anymore. When I click on the annotation, the source is "pin", when I click outside, the source is "map" as expected.
Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.